Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

CreateChildControls()

  Asked By: Adrianna    Date: Nov 01    Category: Sharepoint    Views: 779

I get this error message when trying to create a
system.web.ui.webcontrols.TextBox in a webpart:
I noticed that someone created a system.web.ui.webcontrols.calendar,
so I dont see why I cannot create a gridview. I dont see Calendar
marked as serializable in the sdk:
I fear its trying to serialize the web part and keep it in the content
datbase:


Type 'System.Web.UI.WebControls.TextBox' in Assembly 'System.Web,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is
not marked as serializable. at
System.Runtime.Serialization.FormatterServices.InternalGetSerializable
Members(RuntimeType type)
at
System.Runtime.Serialization.FormatterServices.GetSerializableMembers
(Type type, StreamingContext context)
at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMem
berInfo()
at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSer
ialize(Object obj, ISurrogateSelector surrogateSelector,
StreamingContext context, SerObjectInfoInit serObjectInfoInit,
IFormatterConverter converter, ObjectWriter objectWriter)
at
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Seriali
ze(Object obj, ISurrogateSelector surrogateSelector, StreamingContext
context, SerObjectInfoInit serObjectInfoInit, IFormatterConverter
converter, ObjectWriter objectWriter)
at
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize
(Object graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean
fCheck)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Seriali
ze(Stream serializationStream, Object graph, Header[] headers,
Boolean fCheck)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Seriali
ze(Stream serializationStream, Object graph)
at System.Web.UI.ObjectStateFormatter.SerializeValue
(SerializerBinaryWriter writer, Object value)
Troubleshoot issues with Windows SharePoint Services.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on CreateChildControls() Or get search suggestion and latest updates.

Related Topics:




 

Related Post