Results 1 to 2 of 2

Thread: How i can declare about variable which i can access it from other WebForm

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2002
    Posts
    40

    How i can declare about variable which i can access it from other WebForm

    How i can declare about variable which i can access it from other WebForm,in the same session

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Session("MyVariable") = "hello world"

    Dim myValue As String = Session("MyVariable").ToString()


    or C#:

    Session["MyVariable"] = "hello world";

    string myValue = Session["MyVariable"].ToString();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width