I have a button on updatePanel, wich has event handler and Response.Redirect in it.
It's not working.
Haw can i resolve this problem.
Thansk
Deykin:
I have a button on updatePanel, wich has event handler and Response.Redirect in it.
It's not working.
Haw can i resolve this problem.
Thansk
Updatepanel and response.redirect don't work together and they shouldn't either. If you are going to redirect the page to some where else then why even bother to use updatepanel on it for. Updatepanel's purpose is to do partial postback on the same page. Hope that helps.
Actually, Response.Redirect() is supposed to work just fine during async postbacks.
Make sure that you have the ScriptModule registered in your application's web.config file. If it's not, check out the web.config that got installled to your Program Files ASP.NET AJAX folder to see what it should look like.
Thanks,
Eilon
As I recall, someone had the same problem a while ago. It never worked unless ajax implemented it in its lastest version.
Hi
instead of using Response.Redirect try this:
ScriptManager.RegisterClientScriptBlock( lbEditDocument,typeof(LinkButton ),"TestBlock","window.open('"+ redirectUrl +"', '_top');",true );HTH
I'm with Luis on this one. Response.Redirect has been working fine for me with the RC, and if there's some bug, I'd love to find out before RTM gets out the door.
We could use some more info here, like what exactly is happening when the button is clicked. (I guess it's not doing the redirect, but is it refreshing the page? Is it doing an async postback? What does the traffic look like when you use Fiddler or Nikhil's Web Development Helper?)
0 件のコメント:
コメントを投稿