5
Answers

How to use Update Panel In Mvc 4...i want to stop post back

Hemant Mehra

Hemant Mehra

10y
10.3k
1
How to use Update Panel In Mvc 4...i want to stop post back on my dropdown list.
Answers (5)
0
chetan dudhat

chetan dudhat

NA 68 0 9y
follow this link and get solution: http://www.dotnetcode2u.com/2015/12/mvc4-update-panel-to-refresh-partial.html
Accepted
2
Sumit Jolly

Sumit Jolly

NA 18.7k 558.5k 10y
got it.

sorry i'm pasting link rather delivering my own solution this time. let me know if this doesn't solve your problem

http://www.softlion.com/blogs/post/2010/07/09/UpdatePanel-html-helper-for-jQueryASPNET-MVC.aspx


twitter @sumitjolly
1
Ramesh  Maruthi

Ramesh Maruthi

NA 6.1k 406.2k 10y
Hello Hemant,


Please look at the below url

http://evolpin.wordpress.com/2011/04/12/asp-net-mvc-partialview-with-ajax/
1
Sumit Jolly

Sumit Jolly

NA 18.7k 558.5k 10y
Attach UpdatePanel to dropdown list e.g.,

<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
            <ContentTemplate>
                <fieldset title="Panel1">
                    <legend>Panel 1</legend>
                    <asp:DropDown CssClass="UserControlDiv" ID="lblPanel1" runat="server" />
                    <asp:Button CssClass="button" ID="btnPanel1" OnClick="btnPanel1_Click" Text="Update this Panel(Panel 1)" runat="server" />
                    <asp:Button CssClass="button" ID="btnPanelBoth" OnClick="btnPanelBoth_Click" Text="Update both Panels(Panel 1 & 2)" runat="server" />
                </fieldset>
            </ContentTemplate>
        </asp:UpdatePanel>
0
Hemant Mehra

Hemant Mehra

NA 35 0 10y
Sir, I want to use in Mvc Razor controls.