sharing variables

Discussion in 'ASP .Net' started by Leon Shaw, Jun 28, 2003.

  1. Leon Shaw

    Leon Shaw Guest

    I'm developing a user control which contain a web control label, in which I
    want to share this label with other web forms the user control will be used.
    How do I accomplish this mission?

    Example: (for better understanding)

    user control page (code behind VB)
    public title as string
    private sub page load....
    Label1.text = title

    web form page (code behind VB)
    dim title as string
    private sub page load....
    title = "test"

    what I'm doing wrong? How do I accomplish this mission? Please help! Thanks!
     
    Leon Shaw, Jun 28, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardik Shah
    Replies:
    3
    Views:
    6,096
    Steve C. Orr [MVP, MCSD]
    Dec 10, 2003
  2. Cowboy \(Gregory A. Beamer\)

    Sharing Session variables across applications

    Cowboy \(Gregory A. Beamer\), Dec 18, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    6,340
    Alvin Bruney
    Dec 19, 2003
  3. =?Utf-8?B?QXNoYSBHaWxs?=

    Sharing variables between pages...

    =?Utf-8?B?QXNoYSBHaWxs?=, Jun 9, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    1,899
    Pete Wright
    Jun 9, 2004
  4. Mothish K

    Sharing variables across 2 Applications

    Mothish K, Jun 15, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    371
    Patrice
    Jun 15, 2004
  5. Replies:
    9
    Views:
    952
Loading...

Share This Page