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

  • Thread starter Thread starter Jim Owen
  • Start date Start date
J

Jim Owen

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();
 
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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top