Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using form's property as opposed to Profile property
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01318572
Message ID:
01319067
Vues:
17
>>Hi Paul,
>>
>>I'm thinking that I do indeed can access a custom property in the Page using FormParameter.
>>
>>Here is the link
>>http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.formparameter.aspx
>>
>>I don't see why if we can use form's textbox, why we can not use the public property the same way. At least I can select the properties when I Configure Data source. So, for the Insert command, do you think I can use it?
>
>Not using FormParameter, no. FormParameter evaluates Request.Form["Name of FormField value"], so the parameter value it gets has to be a member of the Form collection. You could add a hidden control to do this, though (instead of a property). It actually doesn't look too complicated to create your own subclass of Parameter if you really want to do this.

Can I set the parameter value myself in the code?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform