D
Dhiman
Here is the problem.
I have a parant class where I have declared couple of variables for user control that I will be using in the web pages. (ParentPage.vb)
This class is inherited by the code behind class. (WebPage.aspx.vb : Inherits ParentPage.vb)
In the aspx I have placed the user controls. (WebPage.aspx)
I'm using Visual Studio.NET and it automatically declares the those user controls in WebPage.aspx.vb.
Can I stop it somehow.
I had taken the following steps to no avail - Placed the user control directly into the template of WebForm and then used the template to create WebPage.aspx. This seemed to work, because when I switched from design to HTML view .. the declaration were not placed. However, when I closed and reopened the solution - the variables were declared!
Thanks in advance
Dhiman
I have a parant class where I have declared couple of variables for user control that I will be using in the web pages. (ParentPage.vb)
This class is inherited by the code behind class. (WebPage.aspx.vb : Inherits ParentPage.vb)
In the aspx I have placed the user controls. (WebPage.aspx)
I'm using Visual Studio.NET and it automatically declares the those user controls in WebPage.aspx.vb.
Can I stop it somehow.
I had taken the following steps to no avail - Placed the user control directly into the template of WebForm and then used the template to create WebPage.aspx. This seemed to work, because when I switched from design to HTML view .. the declaration were not placed. However, when I closed and reopened the solution - the variables were declared!

Thanks in advance
Dhiman