O.o While it is possible to code ASP.NET like this, I am not sure why you would want to. At first glance I thought you had posted Classic ASP code in the .NET forum that, however, doesn't seem to be the case.
Anyway the problem in your code is this:
<a href="<%prescreening.aspx?s= & Session("SourceOther")%>"
it should be:
<a href='prescreening.aspx?s=<%=Session("SourceOther" )%>'>foo</a>
Also, you could make this a lot more readable by doing it in a code behind (for the sake of simplicity I am going to omit your Javascript)
page.aspx
<asp:HyperLink id="hl" runat=server" Text="foo" />
page.
vb
If Session("SourceOther") = "" Then
h1.NavigateUrl = "prescreening.aspx"
Else
h1.NavigateUrl = "prescreening.aspx?s=" & Session("SourceOther")
End If
Much nicer ^^
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========