Ask a Question related to ASP.NET General, Design and Development.
-
Christian #1
make Serializable or create custom TypeConverter ?
Hi,
I try to assign a variable of type WebControls.Button to ViewState as
follows
ViewState["m_ballSelected"] = m_ballSelected;
but get an error -->
"The type 'System.Web.UI.WebControls.Button' must be marked as Serializable
or have a TypeConverter other than ReferenceConverter to be put in
viewstate."
How do I mark this intrinsic-control as Serializable ?
or else ...
I guess I have to create a custom TypeConverter for my Button then ?
How do I do that ?
any code samples someone can recommend me ?
thanks
chris
Christian Guest
-
TypeConverter and Generics
Hi, As far as I can tell, it is not possible to use the TypeConverter infrastructure with generic types. Say you have this type: public struct... -
CAS prevents call to ConvertTo used by custom TypeConverter
Hi, I have a web control, that has a property (a collection of strings) with it's own editor and typeconverter. The problem is that the type... -
TypeConverter
Hi Everyone, I have a custom dropdownlist control with a LoadItemsFrom property. I created a TypeConverter for this property that displays a list... -
TypeConverter HELP Needed!
Ok, I have a property called ControlType. The property is of type 'Type'. It stores just the type of control a user selected. I am really confused... -
[Q]how to make webservice defined type to have [serializable] attribute when generating the wsdl file?
I define a type in web services code that is used by webmethods as parameters. This type with its public data members is included in the generated... -
Gary Varga #2
make Serializable or create custom TypeConverter ?
Just add EnableViewState="True" as an attribute to the
button in the aspx file.
HTH,
Gaz
ViewState as>-----Original Message-----
>Hi,
>
>I try to assign a variable of type WebControls.Button tomarked as Serializable>follows
>
> ViewState["m_ballSelected"] = m_ballSelected;
>
>but get an error -->
>
>"The type 'System.Web.UI.WebControls.Button' must bebe put in>or have a TypeConverter other than ReferenceConverter toButton then ?>viewstate."
>
>How do I mark this intrinsic-control as Serializable ?
>or else ...
>I guess I have to create a custom TypeConverter for my>How do I do that ?
>any code samples someone can recommend me ?
>
>thanks
>
>chris
>
>
>.
>Gary Varga Guest



Reply With Quote

