Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have designed a fill form application but the problem is that the page gets reloaded again and again if any selection is done. pls suggest me some solution.
Posted
Comments
CHill60 15-May-14 12:54pm    
Without seeing your code there is little that we can do to help. Use the Improve question link above to post the relevant code
Kornfeld Eliyahu Peter 15-May-14 13:15pm    
Are you using DropDownList control? Is it possible that AutoPostBack is true?
ZurdoDev 15-May-14 13:55pm    
You have something that is causing it. As Kornfeld said, you likely have AutoPostback = true on dropdownlists but since you haven't shown anything no one can help you.
Ashwini Thakare 17-May-14 2:31am    
nbsp;      
<asp:DropDownList ID="Post_DDL" runat="server" AutoPostBack="True"
onselectedindexchanged="Post_DDL_SelectedIndexChanged">
<asp:ListItem Selected="True">Select post
<asp:ListItem>IT Person
<asp:ListItem>HR Person

   
<br />
<asp:RadioButton ID="RadioButtonMale" runat="server" Text="Male"
AutoPostBack="True" GroupName="genderrbt" oncheckedchanged="RadioButtongenderrbt_CheckedChanged"
/>
            <asp:RadioButton
ID="RadioButtonFemale" runat="server" Text="Female" AutoPostBack="True"
GroupName="genderrbt" oncheckedchanged="RadioButtongenderrbt_CheckedChanged" />
<br />


this is some section of my code. the page gets reloaded as i select any item

1 solution

What i think is you have enabled auto postback true for all your asp.net controlls.
Set "AutoPostBack" Property to "false" for all controls excepting the Controls which events you want to handle.

If you have posted your code here, it would be easier to help you.
Hop This Might Help you.
 
Share this answer
 
v2

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