1

How to use Server.Transfer or Response.Redirect from ajax UpdatePanel?

Asem Ibohal
  • 59
  • 2
  • 6

3 Answers3

1

Without being harsh, it really doesn't make sense to be able to. I think some reading about AJAX would make it clear.

But you could write following to the browser.

<script type="text/javascript">window.location = "URL"</script>
はると
  • 1,489
  • 8
  • 20
0

Never mind, i just found out myself
use javascript inside ur Updatepanel like the code below.

c# code:


String TransferPage = "window.open('Gallery-Page.aspx','_self');";
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "temp", TransferPage, false);

Even u can give hyperlink instead of "Gallery-Page.aspx"

Thanks,
Asem Ibohal

Asem Ibohal
  • 59
  • 2
  • 6
0

UpdatePanel supports Response.Redirect. It works OK for me. What error do you get?

thorn0
  • 9,362
  • 3
  • 68
  • 96