className Attribute (UserControls)

  • Thread starter Charles A. Lackman
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top