G
Guest
In asp I could redirect to a page with a named/value pair ("www.foo.com/home.asp?error=101"
Inside of the asp I could add the following code to trap for any errors
<
s_error = CStr(request("error")
if s_error <> "" the
s_error_messag
select case s_erro
case "101
s_error_message = "User Not Found.
%><table><tr><td><%=(s_error_message)%></td></td></table><
end selec
end i
%
how do I do this in .asp
here's what I've attempted (again, very new to this)
<script language="C#" runat=server
string s_err_message;
if (Request("error") != ""
switch Request("error"
case "101"
s_err_message = "login not found";
</script><TABLE id="tblAlert" align="center" cellSpacing="1" cellPadding="1" width="100%" height="50" border="0" bgcolor="red"><TR><TD colspan="3"><script>s_error_message</script><TD></TR></TABLE><script
</script
I know it doesn't work, but am I even close? Did the <%%> go away? Is it difficult to intermingle variables and static text
Any articles to read on this very topic would be appreciated as well
Thanks
Inside of the asp I could add the following code to trap for any errors
<
s_error = CStr(request("error")
if s_error <> "" the
s_error_messag
select case s_erro
case "101
s_error_message = "User Not Found.
%><table><tr><td><%=(s_error_message)%></td></td></table><
end selec
end i
%
how do I do this in .asp
here's what I've attempted (again, very new to this)
<script language="C#" runat=server
string s_err_message;
if (Request("error") != ""
switch Request("error"
case "101"
s_err_message = "login not found";
</script><TABLE id="tblAlert" align="center" cellSpacing="1" cellPadding="1" width="100%" height="50" border="0" bgcolor="red"><TR><TD colspan="3"><script>s_error_message</script><TD></TR></TABLE><script
</script
I know it doesn't work, but am I even close? Did the <%%> go away? Is it difficult to intermingle variables and static text
Any articles to read on this very topic would be appreciated as well
Thanks