Click here to Skip to main content
15,749,346 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,

I am working on application with code behind in

I have "report.aspx" page and on that I hae one panel on which data updating functionality is implemented.
After confirming the update I just want to reload the "report.aspx" again on button click event.

I have already done Response.redirect() but it dose not work for me as it shows all the panels which I want to hide.

Can anybody help me.

Thanks In Advance.
Updated 15-Feb-11 23:32pm
Albin Abel 16-Feb-11 5:27am    
a normal submit button usually post back without doing anything. If anything to handle then handle it in the page_load event and checking isPostback
Dalek Dave 16-Feb-11 5:32am    
Edited for Grammar, Syntax and Readability.

1 solution

If you are talking about asp panels and want to hide them after redirecting to same page then Check this dirty code.


In Page load event of Default.aspx
 //code to hide panels
Share this answer
Dalek Dave 16-Feb-11 5:32am    
Good Call.
YOGESH DHAGE 18-Feb-11 3:36am    
Can you give me that code in because it gives error near QueryString
m@dhu 18-Feb-11 5:42am
to convert to

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