Very new at ASP in dotnet.
If I put a variable in the URL such as
http://mysite/myapp.aspx?variable=123
how do I retrieve the variable from my asp code so that I can use that value
to determine what I send on my page?
Thanks,
LarryRequest.QueryString("variable")
"Larry" <Larry@.NoMail.com> wrote in message
news:QCrCb.34269$8y1.142610@.attbi_s52...
> Very new at ASP in dotnet.
> If I put a variable in the URL such as
> http://mysite/myapp.aspx?variable=123
> how do I retrieve the variable from my asp code so that I can use that
value
> to determine what I send on my page?
> Thanks,
> Larry
That did it. Thank you so much!!!
"alien2_51" <dan.billow"at"n.o.s.p.a.m.monacocoach.commercialversion> wrote
in message news:upm3lPQwDHA.2316@.TK2MSFTNGP10.phx.gbl...
> Request.QueryString("variable")
> "Larry" <Larry@.NoMail.com> wrote in message
> news:QCrCb.34269$8y1.142610@.attbi_s52...
> > Very new at ASP in dotnet.
> > If I put a variable in the URL such as
> > http://mysite/myapp.aspx?variable=123
> > how do I retrieve the variable from my asp code so that I can use that
> value
> > to determine what I send on my page?
> > Thanks,
> > Larry
Hi Larry,
Put this in the codebehind file of your ASP.NET page:
Private Sub Page_Load _
(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim intVar As Integer
intVar = Request("variable")
Response.Write("You got: " & intVar.ToString)
End Sub
"Larry" <Larry@.NoMail.com> wrote in message
news:QCrCb.34269$8y1.142610@.attbi_s52...
> Very new at ASP in dotnet.
> If I put a variable in the URL such as
> http://mysite/myapp.aspx?variable=123
> how do I retrieve the variable from my asp code so that I can use that
value
> to determine what I send on my page?
> Thanks,
> Larry
0 comments:
Post a Comment