Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using form's property as opposed to Profile property
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01318572
Message ID:
01319067
Views:
16
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform