<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.dotnetzone.gr:443/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET MVC</title><link>https://www.dotnetzone.gr:443/cs/forums/169/ShowForum.aspx</link><description>Θέματα για web εφαρμογές, βασισμένα σε ASP.NET MVC</description><dc:language>el</dc:language><generator>CommunityServer 2.1 SP3 (Build: 20423.1)</generator><item><title>Θεματάκι με WebGrid</title><link>https://www.dotnetzone.gr:443/cs/forums/thread/72172.aspx</link><pubDate>Wed, 20 Feb 2013 21:37:56 GMT</pubDate><guid isPermaLink="false">2622095e-976c-431a-859e-16783ec7ecd7:72172</guid><dc:creator>DaltonGR</dc:creator><slash:comments>0</slash:comments><comments>https://www.dotnetzone.gr:443/cs/forums/thread/72172.aspx</comments><wfw:commentRss>https://www.dotnetzone.gr:443/cs/forums/commentrss.aspx?SectionID=169&amp;PostID=72172</wfw:commentRss><description>Καλημέρα,&lt;div&gt;Σε ένα View έχω ενα webgrid, το οποίο εμφανίζει διευθύνσεις επιλεγμένου πελάτη, σε αυτό το webgrid έχω 2 κουμπιά, ένα διαγραφή(το οποίο δουλευει) και ένα αλλαγή. Όταν πατήσει ο χρήστης το κουμπί αλλαγή, εμφανίζειται ένα div, το οποίο φπρτώνεται απο partialView. Όταν ο χρήστης πατήσει αποθήκευση καλείται controller action το οποίο αποθηκεύει τις αλλαγές και επιτρέφει JSONresult. Το πρόβλημα είναι ότι στην γραμμή&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;span style="color:Black;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;@&lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;using&lt;/span&gt; (Ajax.BeginForm(&lt;span style="color:#666666;background-color:#e4e4e4;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"updateAddress"&lt;/span&gt;, &lt;span style="color:#666666;background-color:#e4e4e4;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"Customer"&lt;/span&gt;, &lt;span style="color:Blue;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;new&lt;/span&gt; AjaxOptions
        {
            InsertionMode &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; InsertionMode.Replace, 
            HttpMethod &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:#666666;background-color:#e4e4e4;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"POST"&lt;/span&gt;,
            OnSuccess &lt;span style="color:Red;background-color:Transparent;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;=&lt;/span&gt; &lt;span style="color:#666666;background-color:#e4e4e4;font-family:Courier New;font-size:11px;font-weight:normal;"&gt;"updateSuccess"&lt;/span&gt;
        }))
    {&lt;/span&gt;&lt;/pre&gt;η function -&amp;gt; updateSuccess δεν καλείται ποτέ.Επίσης δεν υπάρχει κάποιο σφάλμα στην όλη διαδικασία. Για να έχετε πλήρη εικόνα η function updateSuccess, απλά ενημερώνει το webgrid.&lt;/div&gt;</description></item></channel></rss>