Passing 'Variable" into ASP project using VB

  • Thread starter Thread starter Larry
  • Start date Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top