M
mohit
I am making a web application in .NET framework.
I want to pass an information from one page to another page.
I have a class MsgClass in a page and in the another page I created an
object of this class
MsgClass mc;
for handeling I am using the following code
void Page_Load()
{
if (!IsPostBack)
{
mc = (MsgClass)Context.Handler;
}
}
it is giving the error
Error is : System.InvalidCastException: Specified cast is not valid.
then how to cast it.
any Ideas???
I want to pass an information from one page to another page.
I have a class MsgClass in a page and in the another page I created an
object of this class
MsgClass mc;
for handeling I am using the following code
void Page_Load()
{
if (!IsPostBack)
{
mc = (MsgClass)Context.Handler;
}
}
it is giving the error
Error is : System.InvalidCastException: Specified cast is not valid.
then how to cast it.
any Ideas???