I have written a DLL which I intend to use in .NET and ASP.NET applications. I need to pass a Label (or TextBox) control to one or more methods. I can't make .NET recognize a Control as a parameter.

Can anyone help?

Thanks,
Gerry

Make sure you're taking it in as a System.Web.UI.WebControl or System.Web.UI.HtmlControl, whichever it is. If you've tried this already, post some code so we can have a better understanding of how you're doing what you're trying to do.

Thanks for your attention. I resolved the issue by passing the control's Text property rather than the control itself.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.