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:
01319080
Views:
14
>>
>>Can I set the parameter value myself in the code?
>
>I'm not sure - maybe through an evaluated tag? ex. < %= this.SiteID % >
>
>Since we're talking about collections, you could also probably do this by accessing them directly:
>
>
>Parameter selectParm = (Parameter)this.grdName.SelectParameters["NameOfParameter"];
>selectParm.Type = TypeCode.Int32;
>selectParm.DefaultValue = this.SiteID.ToString();
>
>
>I haven't tested the above, so YMMV.

Thanks a lot, Paul. I meant a little bit different thing, e.g. I selected a record in a GridView and then I open a form (depending on the person type) to edit the record. The @PersonType parameter for Update should become the selected value from the grid.

But I got the idea, so that's what I try.

Thanks a lot again.
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