Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with pre-filled textbox
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Problem with pre-filled textbox
Divers
Thread ID:
00968638
Message ID:
00968638
Vues:
72
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform