0

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

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by xrunner
0

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.

0

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

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.