I have made a very basic control which inherits from the literal control. The control displays ok when the project is ran but it does not display properly in the designer. Here is the error i get
Error rendering control. An unhandled exception has occured. Value cannot be null. Parameter name: string. Can you tell me what is wrong with my control
Public Class JobCostLabel Inherits System.Web.UI.WebControls.Literal
Protected Overrides Sub Render(ByVal output As HtmlTextWriter)
output.Write(String.Format("{0:c}", Double.Parse(WebConfigurationManager.AppSettings("JobCost"))))
End Sub
End Class
andieje
Participant
1214 Points
383 Posts
problem in designer with basic control inheriting from literal control
May 30, 2007 12:50 PM|LINK
Hi
I have made a very basic control which inherits from the literal control. The control displays ok when the project is ran but it does not display properly in the designer. Here is the error i get
Error rendering control. An unhandled exception has occured. Value cannot be null. Parameter name: string. Can you tell me what is wrong with my control
Imports Microsoft.VisualBasic
Imports System.Web.Configuration
Imports System.Web.UI
Public Class JobCostLabel Inherits System.Web.UI.WebControls.Literal
Protected Overrides Sub Render(ByVal output As HtmlTextWriter)
output.Write(String.Format("{0:c}", Double.Parse(WebConfigurationManager.AppSettings("JobCost"))))
End Sub
End Class
thanks a lot andrea