Web control which uses generics - how to use it from aspx page?
-
I have a web control defined like
class SomeControl<T> : WebControl
...How do I use it directly in an aspx page (= .aspx file), with the type specification? In the code, it is easily
SomeControl<int> ctrl = new SomeControl<int>();
but in the aspx, I am clueless. Any ideas?
-
I have a web control defined like
class SomeControl<T> : WebControl
...How do I use it directly in an aspx page (= .aspx file), with the type specification? In the code, it is easily
SomeControl<int> ctrl = new SomeControl<int>();
but in the aspx, I am clueless. Any ideas?
I didn't get your question. :( Sorry ! Here you are creating the object of web user control, then how does this related with aspx page code. Can you please describe it in more details, so that I can help you. Thanks!