Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > HttpException (0x80004005): Unable to generate code for a value of type....

Thread Tools

HttpException (0x80004005): Unable to generate code for a value of type....

Posts: n/a
Hello Everyone,

Firts than all thank you for taking the time to read this (and understand my poor english), Im so needed of your help.

The problem is that im creating a basket control in c# for working in pages, the control do not make a postback for the items operations (adding,deleting, modifying, subtotals, etc) the control depends directly of the creation of three controls on the page that you putted into, a 1 htmlinputhidden, 1 htmlinputtext, 1 htmltable, (all of them running on server and created only one time, if you have the basket control into a datalist each of them must reference this set of controls) , in the first version of the control I ask the developer for the name of this controls and it works, the second version I was try to get the controls by the property grid of the page, referencing the type of each control directly like this:

private HtmlInputHidden _cajadetexto;
[Bindable(false),Category("Data"),PersistenceMode(P ersistenceMode.InnerProperty),TypeConverter(typeof (System.Web.UI.HtmlControls.HtmlInputHidden))]
//,EditorAttribute(typeof(System.Web.UI.Design.HtmlC ontrolDesigner), typeof(System.Web.UI.HtmlControls.HtmlInputHidden) )]
public virtual HtmlInputHidden CajaDeTexto
get {return _cajadetexto;}
set {_cajadetexto = value;}

and implementing this way for all the other controls, I set the values in design time, and run time the following error appears:

Unable to generate code for a value of type 'System.Web.UI.HtmlControls.HtmlInputHidden'. This error occurred while trying to generate the property value for CajaDeTexto.

I think that the typeconverter causes the problem, but im not sure of this.

Thanks In Advance.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HttpException : Unable to validate data =?Utf-8?B?SmFtZXMgQ3Jvd2xleQ==?= ASP .Net 13 09-19-2007 04:40 PM
HttpException (0x8007274d): Unable to make the session state request to the session state server. Harry Haller ASP .Net 0 11-07-2006 06:33 AM
HttpException : Unable to validate data. James Crowley ASP .Net 0 02-15-2006 12:24 PM
"Unable to Validate Data"- System.Web.HTTPException Peter O'Reilly ASP .Net 0 01-13-2004 05:20 PM
System.Web.HttpException: Request timed out - [HttpException (0x80004005): Request timed out.] Steve ASP .Net 0 07-01-2003 12:11 AM