Hi all -
I have a vb class that I want to turn into a dll and add to my webproject. My issue is with references in my class. I am extending a thirdparty control that has an object that uses System.Web.UI.IStateManager and System.Web.UI.WebControls.TableRow. I cant seem to add a reference to either of these. is there an issue with adding System.Web.UI to my project? Im a bit of a noob re assemblies and class libraries, so forgive me if im overlooking something obvious. I am trying to add the reference using the References tab of the Project. any thoughts?
You can add reference to System.Web to use System.Web.UI.
Interesting, thats what I thought. however I did that (at least I think I did) and when I do system.web. I only get 3 AspNetHostingxxxx items. I dont see the {} UI section. something doesnt seem right. any help is appreciated.
Did you add "using System.Web.UI" in your code?
I am using VB so its Imports System.Web.UI when I do that I get the green squigglies. "Namespace or type specified in the Imports 'System.Web.UI' doesn't contain any public members." keep in mind, I am doing a Class Library Project. when I do Imports System.Web.UI in a reg asp.net application then it works fine. but im doing a class libraby project because I am creating a controll that I want to add to the toolbar.
When you have created your project, you have created like a "Web Control Library"? Cause it?s so strange... Create a new Web Control Library project. It uses System.Web.UI. The references are System, System.Drawing and System.Web.