it might be possible to refactor your code so as to avoid the Response.Redirect (since you are redirecting to the same page). since you are doing a response.redirect, the page that is rendered to the client will be a different page (instance of the page) and thus no longer contains whatever items you "wrote" to the page prior to redirecting. also, please verify the javscript being written to the page. I haven't tried Response.Write to write javascript but incase it doesn't work, you can look into Page.ClientScript.Register
Main Topics
Browse All Topics





by: dbeneitPosted on 2007-06-22 at 14:35:54ID: 19345061
Response.Redirect are execute in server side, It replace the page before it will sent to browwser.You can't launch a alert.
You can show a page that show a javascript alert and then when acept sumit the page to new page