Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with pre-filled textbox
Message
De
12/12/2004 17:01:06
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00968638
Message ID:
00968643
Vues:
9
Dmitry,

I don't do much Web stuff, mainly WinForms, but ... how about for your Equipment Room you use a label instead of a TextBox? I would think that this would work just fine, unless you sometimes allow the user to enter a new Equipment Room (thus necessitating the use of a TextBox) ...

~~Bonnie


>Hi everybody,
>
>I was wondering if anyone can suggest a solution to the following problem:
>
>Web form has the following textboxes:
>Equipment ID
>Equipment Room
>
>EquipemntID textbox has OnTextChanged method. When user enters ID, the code in OnTextChanged finds a record in Equipment file and enters text in the Equipment Room, as follows:
>
>
>Room.Text  = drEQ_FILE["loc_room"].ToString()
>
>
>The problem is that user then cannot change the entry in the Equipment Room textbox. As if the textbox is readonly. However, if user highlights the entire entry in the Equipment Room textbox (by dragging mouse left to right), entry can be changed?
>
>Any ideas/suggestions why it works that way?
>
>Thank you
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform