Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FindControl
Message
 
À
17/11/2004 15:14:16
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
DB2
Divers
Thread ID:
00962353
Message ID:
00962431
Vues:
7
You might have to use the full name of hte control which is a dynamic value based on the containing control(s).

Look at the source for the page generated, and look for the name of the control used in the HTML and give that a try - wich will be the Unique iD generated by the control at runtime. usually this will reflect a part of the containership hierarchy so you have to be careful about the name if you move the control around in terms of hte containership as the name would possibly change.

+++ Rick ---

>I have a webform
>
>I have a custom control on my webform
>
>I am trying to find a dropdown list control inside of the custom control by using the following code but it's not working:
>cType(FindControl("ddlMyDropDownList"), DropDownList).SelectedValue
>
>How can I find a control that is inside of a custom control or how do I find a control that is in another webform and be able to use their values / text / etc?
>
>Thank you in advance.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform