Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 2914 |  Welcome, Guest!   Register  Login
 Home > Forums > ASP.NET > problem in pagerefresh in asp.net ...
Hareeshkumar.Kr@Gmail.Com

problem in pagerefresh in asp.net

Replies: 3 | Posted by: Hareeshkumar.Kr@Gmail.Com on 6/11/2012 | Category: ASP.NET Forums | Views: 257 | Status: [Member] | Points: 10  


dear sir

i have created a advance search page where in that at the left hand side i have included search criteria as shown in attached image in that i have included one dropdownlist and three radio button and dynamically from database i have created the category list my problem is when i select some option in drop down and select the radio button then when i click on category list it works fine for first time at the same time my page gets refresh and drop down selection and radiobutton selection will become reset. how to solve this error after reset also the selection must remain same.


Reply | Reply with attachment | Alert Moderator

 Responses below this adGet hundreds of .NET Tips and Tricks videos

 Replies

Gemamgall
Gemamgall  
Posted on: 6/27/2012 11:04:31 PM
Level: Starter | Status: [Member] | Points: 25

Use ispostback event to stop resetting of control values

Thanks and Regards,

Vinay Gandhi
www.quadtechindia.com

Hareeshkumar.Kr@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Ajay.Kalol
Ajay.Kalol  
Posted on: 6/28/2012 1:36:01 AM
Level: Starter | Status: [Member] | Points: 25



Use Page.isPostback for that.

in Pageload event

if(!isPostback){  

bindDDL();
bindCBList();
}


it will resolve your Problem

http://ajaypatelfromsanthal.blogspot.in

Hareeshkumar.Kr@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Ranjeet_8
Ranjeet_8  
Posted on: 6/29/2012 3:56:36 AM
Level: Gold | Status: [Member] | Points: 25

Hi,


    protected void Page_Load(object sender, EventArgs e)

{
if (!Page.IsPostBack)
{
BindDropDownList();
OR Other Code
}
}

Hareeshkumar.Kr@Gmail.Com, if this helps please login to Mark As Answer. | Reply | Alert Moderator 

Reply - Please login to reply


Click here to login & reply

About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/19/2013 6:38:29 PM