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

I am working on asp.net application with code behind in VB.net.

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.
Yogesh
Posted
Updated 15-Feb-11 23:32pm
v2
Comments
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.

Response.Redirect("Default.aspx?Load=Load");

In Page load event of Default.aspx
if(Request.QueryString["Load"]!=null)
{
 //code to hide panels
}
 
Share this answer
 
Comments
Dalek Dave 16-Feb-11 5:32am    
Good Call.
YOGESH DHAGE 18-Feb-11 3:36am    
Can you give me that code in VB.net because it gives error near QueryString
m@dhu 18-Feb-11 5:42am    
http://www.developerfusion.com/tools/convert/csharp-to-vb/
to convert to VB.net

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