Hello all;
In asp.net 1.1 i was able to do the following--
1. Create a user control - myusercontrol.ascx
2. In the default.aspx page add the following code:
dim myCtrl as myusercontrol
myCtrl=LoadControl("myusercontrol.ascx")
But in ASP.NET 2.0 i am unable to do the above. That is,
I am able to create the control as Public. But when i try to define a variable i don't see myusercontrol as choice.
Can some one guide me?
Thanks a bunch.
Thanks,
MB
In asp.net 1.1 i was able to do the following--
1. Create a user control - myusercontrol.ascx
2. In the default.aspx page add the following code:
dim myCtrl as myusercontrol
myCtrl=LoadControl("myusercontrol.ascx")
But in ASP.NET 2.0 i am unable to do the above. That is,
I am able to create the control as Public. But when i try to define a variable i don't see myusercontrol as choice.
Can some one guide me?
Thanks a bunch.
Thanks,
MB