Display text in text box - should be simple, doesn't work

Discussion in 'ASP .Net' started by Jim Owen, Jul 24, 2003.

  1. Jim Owen

    Jim Owen Guest

    This is probably dumb, but why doesn't this work? The control doesn't get
    filled with the text, though I debug and vControl.Text does indeed show as
    having the right text in it. It's being called from a SelectionChanged event
    in a calendar.

    System.Web.UI.WebControls.TextBox vControl =
    (System.Web.UI.WebControls.TextBox)Session["TheControl"];
    vControl.Text = Calendar1.SelectedDate.ToShortDateString();

    --
    - Jim Owen
    206-501-6936
     
    Jim Owen, Jul 24, 2003
    #1
    1. Advertising

  2. Jim Owen

    Natty Gur Guest

    Hi,

    Probably something related to the session?

    Can you send more code?

    By the way can you tell me why you save webcontrols in the session?

    Natty Gur, CTO
    Dao2Com Ltd.
    28th Baruch Hirsch st. Bnei-Brak
    Israel , 51114

    Phone Numbers:
    Office: +972-(0)3-5786668
    Fax: +972-(0)3-5703475
    Mobile: +972-(0)58-888377

    Know the overall picture


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
     
    Natty Gur, Jul 24, 2003
    #2
    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. Alan Silver
    Replies:
    2
    Views:
    533
    Alan Silver
    Jul 12, 2005
  2. Gnarlodious
    Replies:
    4
    Views:
    17,615
    elizas
    May 5, 2010
  3. Ken
    Replies:
    35
    Views:
    2,257
  4. Al Sav
    Replies:
    2
    Views:
    163
    Bob Lehmann
    Jun 19, 2004
  5. Sam Kong
    Replies:
    7
    Views:
    171
    Sam Kong
    Dec 21, 2006
Loading...

Share This Page