Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

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)
ASKER CERTIFIED SOLUTION
Avatar of unknown_routine
unknown_routine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Murray Brown

ASKER

Great answer. Thanks very much
Your welcome! This was a very good question for E.E knowledgebase