Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting focus to the control on the page (AJAX site)
Message
De
25/02/2008 19:11:07
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01294462
Message ID:
01296285
Vues:
25
>>>Hi Tim and Viv,
>>>
>>>This is the solution that worked for me
>>>http://forums.asp.net/p/1222714/2194324.aspx#2194324
>>
>>Glad you got it working.
>>Tim
>
>Using JavaScript from the original link may have worked too and would be easier. Anyway, at least one problem less now.
>
>Do you have some code to loop through all controls on the page and clear them?
>
>Sounds like it should be a very common task...

I thought I had seen this posted, but you can find all the controls like this
Dim c As Control
For Each c In Me.Controls
if(TypeOf c Is TextBox) Then
c.Text = ""
End If
Next c


Sorry my VB is a bit rusty but that should do it. I suspect you will have to test for each type of control you have.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform