1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

why i can't change value of the public variable?

Discussion in 'C#' started by totally beginner, Jul 13, 2005.

  1. #1
    i just want to change value of the public variable that i declared at the main class.
    how to change their value when a button clicked?:confused:
    SEMrush
     
    totally beginner, Jul 13, 2005 IP
    SEMrush
  2. spondishy

    spondishy Peon

    Messages:
    735
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi... Post some code. Is this straight asp or asp.net?
     
    spondishy, Jul 21, 2005 IP
  3. maro

    maro Peon

    Messages:
    356
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I suppose you are refering to asp.net so you should add a click handler to the button and in the function (button click handler) you set the value of the variable as you wish.
     
    maro, Sep 16, 2005 IP