S
Seth Williams
In the middle of my event handler (for a button), I have an if/then
statement (using vb.net):
if (whatever) then
strScript="<script .......
strScript &= alert('This is an alert')
strscript &="</script>
' this is all an abbreviated script - - but you get the idea
response.write(strscript)
end if
response.redirect("another page.aspx")
the problem is that, with the Response.redirect after the if/then statement,
it skips the javascript alert and goes to the redirect
if I comment out the reponse.redirect, the javascript alert pops up fine
where am I going wrong?
statement (using vb.net):
if (whatever) then
strScript="<script .......
strScript &= alert('This is an alert')
strscript &="</script>
' this is all an abbreviated script - - but you get the idea
response.write(strscript)
end if
response.redirect("another page.aspx")
the problem is that, with the Response.redirect after the if/then statement,
it skips the javascript alert and goes to the redirect
if I comment out the reponse.redirect, the javascript alert pops up fine
where am I going wrong?