How to retrieve .NET form variable on PreInit The viewstate is blank, and controls are not yet loaded during PreInit for a page. However, you will find your form variables in the page request: Request.Form[ctrl.UniqueId]. This allows, among other things, the possibility of setting a page Theme or Skin (which must be applied during preinit for a page postback based on the value of a control (say a drop down with a list of themes or skins).
Created By: amos 10/19/2012 12:28:52 PM
|
|