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

By design, the user should be able to change the Equipment Room location. What I am saying is that in probably 80 percent of the time, the location stays without change, and label would work. But there are cases where user may want to change the location. Therefore, it has to be a textbox.

Thank you.

Dmitry

>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
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform