Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

i am using Vs2005 .the problem is that i need to show new pages based on tree node selection.iam using response.redirect to navigate to next page.

my all controls r in update panel but while calling response.redirect the page refresh. i need to stop the page from refresh.

can some one share the code it is a bit urgent.

regards,
sajith
Posted
Updated 29-Sep-11 23:36pm
v2

When you browse to a different page, there will definitely be a page refresh. Using an UpdatePanel has no effect. Ajax is useful only when you wish to avoid a postback of the same page, it cannot be used to prevent a page refresh, since you are loading a completely different page.
 
Share this answer
 
Hi,

while you redirect page means the new page must load in browser.

If you use Jquery.load() you can avoid browser refreshing when new page loads in some particular tag control


All the Best
 
Share this answer
 
try this

XML
var url = '<%=ResolveUrl("~/Information/NonprofitableAgency") %>/' + DisId + '/' + Location + '/0';
document.location.href = url;
 
Share this answer
 
I think what you want is show some kind of message while page loads

to do this use jquery because you want to load the whole page which needs postback
 
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