Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Javascript set button enable on checkbox true
Message
De
21/10/2010 11:12:26
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
Application:
Web
Divers
Thread ID:
01485567
Message ID:
01486520
Vues:
37
Hi Paul,

I learned something this morning about the new ClientIDMode property I mentioned. It is a new feature in ASP.Net 4. The default for asp.net3.5 was 'inherit' and this was the behavior I was getting where there are things like 'ctl00' appended along with all the containership. Now with dot net 4.0 the default should be 'predictable' where the containership is pretty easy to figure out. This can be set at the page level. Then with 'static' the clientID would be exactly as you typed it in. This may be problematic for situations where there is master pages, and controls involved where there could end up being a name conflict.

Just thought I would mention this for anyone who wasn't aware of the new property.
Tim

>>
>>Thanks a bunch Paul, this is helpful.. I also found this Validation plug in for jquery that is really nice.
>
>Ah, yeah, I should have mentioned that as well.
>
>> Problem is I cannot figure out how to get a script or a script source into my page from the user control. I tried a RadCodeBlock and thought that was supposed to work but it does not. I also tried this in the OnInit
>>
>>Page.ClientScript.RegisterClientScriptResource(GetType(), "~/scripts/EnrollmentValidation.js");
>>
>>
>
>Is your js file stored as a resource file in your project? If not, then that won't work. Try RegisterClientScriptInclude instead.
Timothy Bryan
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform