Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom Control Properties
Message
De
29/07/2005 16:35:45
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
29/07/2005 16:23:10
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01037133
Message ID:
01037141
Vues:
20
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform