Create Open and Close tags using VB in ASP.NET

gsuzz

New Member
I am trying to figure out how to create an ASP.NET tag that will allow me to use both the open and closing tags to produce specific HTML. For Example, I want to create a tag called guiTable. It would be used as shown below:<BR><BR><mytag:GuiTable width="100"...><BR> Text inside of table goes here....<BR></mytag:GuiTable><BR><BR>That would generate html as shown below:<BR><BR><table...><BR> <tr><BR> <td><BR> Text inside of table goes here....<BR> </td><BR> </tr><BR></table><BR><BR>This is an extremely simplified example, but that is basically what I am looking to do. Is there any information available on building your own tags this way? Any information would be appreciated. Thanks.<BR><BR>ChaitanyaSounds like you want to create a User Control. There are plenty of examples on the net....All of the user control examples that I have found are for setting up the tag as shown below :<BR><BR><mytag:MyUserControl ... / ><BR><BR>None of them are for an opening and closing tag. That's why I posted the message. I haven't been able to find anything that will allow me to use an open *AND* closing tag for a user control.<BR><BR>ChaitanyaHere's what you're looking for.. unfortunately you can't do what you're looking for with an ascx... it's got to be a compiled .dll<BR><BR>http://www.dotnetjunkies.com/quickstart/aspplus/doc/webctrlauthoring.aspx#innercontentJoel, Thanks for the information. That's exactly what I was looking for, albiet in a different implementation. But that is the information that I was looking for. Thanks.<BR><BR>Chaitanya
 
Back
Top