Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Control Properties
Message
From
29/07/2005 16:35:45
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
29/07/2005 16:23:10
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01037133
Message ID:
01037141
Views:
19
>All,
>
> I have a custom dropdown list control which has a property that I added called Client Code. If I drag the drop down onto a webform, set a value and run the webform the property is empty. The code I'm using is below.
>
>Any Ideas?
>
>
>        [Bindable(true),
>	Category("Data"),
>	DefaultValue("")]
>	public string ClientCode
>	{
>	  get
>	    {
>		return (ViewState["ClientCode"] == null) ? "BSC" :
>		ViewState["ClientCode"].ToString();
>	    }
>	  set
>	    {
>		ViewState["ClientCode"] = value;
>	    }
>        }	
>
Jim,

Pretty simple, but is ViewState enabled on the control?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform