Click here to Skip to main content
15,892,072 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to Prevent page reload/page refresh on selecting an item from dropdownlist???
Posted

Place your all controls or place necessary controls which will cause page reload in an UPDATEPANEL from toolbox(Ajax Extension toolbar) and place a scriptManger in the design page this will prevent loading page again and again.....and your work is over now..!!!
Hope this will help you.
XML
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
District:<asp:dropdownlist id="ddl_dist" runat="server" autopostback="True" height="21px" width="172px">
</asp:dropdownlist>
Taluq:<asp:dropdownlist id="ddl_tq" runat="server" autopostback="True" height="24px" width="174px">
</asp:dropdownlist>                    

Place:<asp:dropdownlist id="ddl_place" runat="server" autopostback="True" height="24px" width="173px">
</asp:dropdownlist>

Pincode:<asp:dropdownlist id="ddl_pin" runat="server" enabled="False" height="25px" width="171px">
</asp:dropdownlist>
</contenttemplate>
</asp:updatepanel>
 
Share this answer
 
v2
MaintainScrollPositionOnPostback="true"
 
Share this answer
 
]]>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900