Murray Brown
asked on
ASP.net LinkButton and global variables
Hi
I try to assign a value to a global variable by using the click event of a LinkButton
shown below
The PostBackURL is "~/Daily.aspx"
and I am trying to check that the value assigned to the variable on the click event
comes through, but it doesn't
Protected Sub LinkButtonL_Click(sender As Object, e As EventArgs) Handles LinkButtonL.Click
LIFE_Category = "L"
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
If Not IsPostBack Then
MsgBox(LIFE_Category)
I try to assign a value to a global variable by using the click event of a LinkButton
shown below
The PostBackURL is "~/Daily.aspx"
and I am trying to check that the value assigned to the variable on the click event
comes through, but it doesn't
Protected Sub LinkButtonL_Click(sender As Object, e As EventArgs) Handles LinkButtonL.Click
LIFE_Category = "L"
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
If Not IsPostBack Then
MsgBox(LIFE_Category)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Your welcome! This was a very good question for E.E knowledgebase
ASKER