For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET > June 2007 > creating my own HtmlInputText









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author creating my own HtmlInputText
George Ter-Saakov

2007-06-29, 7:09 pm

I am adding some functionality to HtmlInputText so i derived my class from
it.
The problem is when i switch page to desing mode the VS shows an error and
do not render control.

Unable to cast object of type
'System.Web.UI.Design.HtmlIntrinsicControlDesigner' to type
'System.Web.UI.Design.ControlDesigner'

Not sure how to fix it and make it work in design time
Here is how my class looks like
public class GTextBox : System.Web.UI.HtmlControls.HtmlInputText

{

}

PS: It works fine in a runtime.

George.



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com