C
Charles A. Lackman
Hello, I am reading a book on ASP.NET Applications and don't understand what
the writer is trying to say. It is stated that (when converting a Web Page
to a User Control) that:
"Adding a className attribute to the @Control directive allows you to
specify the class name for the user control and it allows strong typing of
the control when it's added to the page or other server controls
programmatically."
Does this mean that using a className attribute will allow me to use the
code-behind page to add the control to my ASP.NET page? I have tried this
and if this is what it means them I am going something wrong. If I am
missunderstanding what the author is saying can you please give me a code
example (either way) of what is being said.
Thanks
Chuck
the writer is trying to say. It is stated that (when converting a Web Page
to a User Control) that:
"Adding a className attribute to the @Control directive allows you to
specify the class name for the user control and it allows strong typing of
the control when it's added to the page or other server controls
programmatically."
Does this mean that using a className attribute will allow me to use the
code-behind page to add the control to my ASP.NET page? I have tried this
and if this is what it means them I am going something wrong. If I am
missunderstanding what the author is saying can you please give me a code
example (either way) of what is being said.
Thanks
Chuck