T
Tim Burkart
I'm sure this is simple. I'm writing from a classic ASP perspective which is
something I know well. I want to select/generate HTML on a page based on the
value of a querystring variable.
I tried this but got a runtime error:
<script runat="server">
sub Page_Load(Sender as object, e as eventargs)
dim strVar, strURL as String
strVar = Request.Querystring("var")
select Case strVar
case "1"
strURL.text = "
src="http://someothersite.com/ProductSea...Linename&Ntx=mode+matchallpartial&N=0&BWS=0|2">"
case else
strURL.text = " src="http://someothersite.com""
end select
end sub
</script>
<td width="100%" align="left" valign="top">
<iframe name="othersite" width="99%" height="800" align="left"
scrolling="Auto" frameborder="0" hspace="10" vspace="10"
class="iframescroll" id="othersite"
<asp:label id="strURL" runat="server">
</iframe>
</td>
I appreciate if anyone can help me with this. I could always code the page
in classic asp or php but would like to do it in dotnet.
Thank you in advance!!
Tim
something I know well. I want to select/generate HTML on a page based on the
value of a querystring variable.
I tried this but got a runtime error:
<script runat="server">
sub Page_Load(Sender as object, e as eventargs)
dim strVar, strURL as String
strVar = Request.Querystring("var")
select Case strVar
case "1"
strURL.text = "
src="http://someothersite.com/ProductSea...Linename&Ntx=mode+matchallpartial&N=0&BWS=0|2">"
case else
strURL.text = " src="http://someothersite.com""
end select
end sub
</script>
<td width="100%" align="left" valign="top">
<iframe name="othersite" width="99%" height="800" align="left"
scrolling="Auto" frameborder="0" hspace="10" vspace="10"
class="iframescroll" id="othersite"
<asp:label id="strURL" runat="server">
</iframe>
</td>
I appreciate if anyone can help me with this. I could always code the page
in classic asp or php but would like to do it in dotnet.
Thank you in advance!!
Tim