A
Ajit
Hi,
My control works fine unless until i add dropdownlist box.
When i add dropdownlist box to control and try to test that
control in my aspx page it gives the following error.
===================================
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
System.Web.UI.WebControls.ListControl.LoadViewState(Object savedState)
+17
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +125
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Page.LoadPageViewState() +172
System.Web.UI.Page.ProcessRequestMain() +421
===================================
Any suggession will be of great help
thanx in advance.
My control works fine unless until i add dropdownlist box.
When i add dropdownlist box to control and try to test that
control in my aspx page it gives the following error.
===================================
Specified cast is not valid.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.InvalidCastException: Specified cast is not valid.
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidCastException: Specified cast is not valid.]
System.Web.UI.WebControls.ListControl.LoadViewState(Object savedState)
+17
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +125
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +311
System.Web.UI.Page.LoadPageViewState() +172
System.Web.UI.Page.ProcessRequestMain() +421
===================================
Any suggession will be of great help
thanx in advance.