Hi,
Upto my knowledge.
response.redirect()
means here you are going to display another page right?
even though you are using updatepanel the whole page will refresh because
response.redirect
just place your another page url into address bar this is nothing but round trip.
first response comes to browser.then second request send to server for redirected page.then second response comes to browser with your nextpage .
Two avoid whole page refreshing while moving from one page to another is achieved by using Jquery.
If you use
$("#Divid").load("yournextpage.aspx");
you can reach your requirement.
you can use updatepanel for partial page refreshing only.not to avoid refreshing while showing another page.
I hope you'll understood what I said
Here my sample code is
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Testing Jquery methos</title>
<script src="Scripts/jquery-1.4.1-vsdoc.js" type="text/javascript"></script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script language ="javascript" >
function openpage(pagename) {
$("#maincontent").load(pagename+".aspx #maincontent", function () {
});
}
</script>
</head>
<body>
<form id="form1">
<div style=" width:100%;" align="center">
<div style=" width:970px; background-color:Black ; height :100%;">
<div id="headremoved" style="width:100%; height:120px; background-color:LightSkyBlue;">
<h2>This is head content</h2>
</div>
<div id="menubar" style="width:100%; background-color:Chocolate ;">
<a href="java<!-- no -->script:openpage('home')">Home</a>
<a href="java<!-- no -->script:openpage('aboutus')">About US</a>
<a href="java<!-- no -->script:openpage('contactus')">Contact US</a>
</div>
<div id="mainremoved" style="width:100%; background-color:White;">
This is Home content
</div>
</div>
</div>
</form>
</body>
</html>
In the above code i created page names with as it is aboutus.aspx and contactus.aspx.
All the Best.