Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello Frnds,

On my webform i have dropdownlist and a gridview.

and am Loaded Data into Gridview. and when i select item from dropdown list it displays that particular records in gridview...everything is ok about selecting and displaying in gridview.

But the thing here is that, when i select item from dropdown list it displays correctly BUT after sometime it comes back to the starting page to ----Select-----


Please help me. am beginner.

Thanks,
Posted
Comments
Prasad_Kulkarni 30-Apr-12 6:43am    
I guess it must be issue of page refresh, did you use update panel in your aspx page?
Sandeep Mewara 30-Apr-12 6:59am    
Page is getting reset. Put a DEBUGGER and see the page execution.

1 solution

hi,

put you dropdown code in if!ispostback) { }

try it..



Regasrds,
Saurabh
 
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