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
 
Back
Top