eulogy6
Programmer
- Apr 30, 2004
- 26
Hi all,
:::::In users.aspx page I have the following:
Private Sub Linkbutton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Linkbutton4.Click
Dim user As String
user = txt2.Text
Dim pass As String
pass = txt3.Text
Session("Username") = user
Session("Password") = pass
Response.Redirect("newpage.aspx")
End Sub
::: In newpage.aspx I have the following:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim user As String
Dim pass As String
user = Session("Username")
pass = Session("Password")
If user Or pass = "" Then
Response.Redirect("users.aspx")
End If
End If
End Sub
When I fire the Linkbutton4 I have the error message:
Input string was not in a correct format
You have any idea?
Thanx
:::::In users.aspx page I have the following:
Private Sub Linkbutton4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Linkbutton4.Click
Dim user As String
user = txt2.Text
Dim pass As String
pass = txt3.Text
Session("Username") = user
Session("Password") = pass
Response.Redirect("newpage.aspx")
End Sub
::: In newpage.aspx I have the following:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Not IsPostBack Then
Dim user As String
Dim pass As String
user = Session("Username")
pass = Session("Password")
If user Or pass = "" Then
Response.Redirect("users.aspx")
End If
End If
End Sub
When I fire the Linkbutton4 I have the error message:
Input string was not in a correct format
You have any idea?
Thanx