kashiash
Posts: 9
|
Posted: 01/22/2006, 6:34 AM |
|
how to set initial values for some fields on insert ?
and where put this custom code in form events ?
|
|
|
peterr
Posts: 5971
|
Posted: 01/22/2006, 2:51 PM |
|
You can do that in the "Default Value" property. Or you can place custom code in the Before Show event.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
kashiash
Posts: 9
|
Posted: 01/23/2006, 12:09 AM |
|
i try to put parameter passed from parent page :
TextParameter.GetParam(Request.QueryString["IDWniosku"]
when i put this string into default property
i get error :
Compiler Error Message: CS0103: The name 'Request' does not exist in the current context
Source Error:
Line 119: FkIdWniosku=new TextField("", TextParameter.GetParam(Request.QueryString["IDWniosku"]));
whats wrong ?
|
|
|
peterr
Posts: 5971
|
Posted: 01/23/2006, 12:21 AM |
|
Try:
System.Web.HttpContext.Current.Request.QueryString("IDWniosku")
I just took that code from the "Retrieve Value for Control" action. If this doesn't work maybe you could also use that action in the Before Show event and do not use any custom code.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|