How do i call a variable in different subs on the page? I know I need to create a Private_Sub....? But I don't know the how to complete it. For example, I have the following code in a Button Click event. But I also need xamount in a different Button Click for the same page. Like I said, I believe I need something like a Private_Sub or Protecetd_Sub (not sure which one and why) with a made up name to reference it....like Private_Sub subXAmount(??????????), but I don't know how to complete it and then reference it.
Dim subAmt As String = Convert.ToString(Session("MembType"))
Dim xamount As String = ""
Select Case subAmt
Case "0"
xamount = "40"
Case "1"
xamount = "5"
Case "2"
xamount = "20"
Case " ...
Go to the complete details ...