Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Creating a User Control to contain 3 SSIs?


Message #1 by "Oliver, Wells" <WOliver@l...> on Mon, 15 Jul 2002 09:36:53 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22C1D.D3563070
Content-Type: text/plain;
	charset="iso-8859-1"

Currently, I have an application with a top navigation and a footer which is
common to all pages and done via SSI. In migrating this app to .NET, I am
creating user control to handle these two SSIs.

My quesstion is-- can I create a user control that can do both of these nav
elements, called by different tag names but using the same tag prefix?

Any info is appreciated-- thanks!

Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com 

Message #2 by Feduke Cntr Charles R <FedukeCR@m...> on Mon, 15 Jul 2002 13:35:41 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22C26.0A53AAF0
Content-Type: text/plain;
	charset="iso-8859-1"

Wells,
 
    You can't create a UserControl as in *.ascx up front to accomplish this.
You could create something that has two panels and have a property that
determines which panel to show and which to hide.  However, if you can
display your UserControl using standard HTML it might be to your advantage
to make a *.cs class file that compiles into the same assembly and namespace
as every other control and class your web application uses - this way you
avoid having six or seven <% @Register %> blocks on every page.
 
- Chuck

-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Monday, July 15, 2002 12:37 PM
To: ASP+
Subject: [aspx] Creating a User Control to contain 3 SSIs?



Currently, I have an application with a top navigation and a footer which is
common to all pages and done via SSI. In migrating this app to .NET, I am
creating user control to handle these two SSIs.

My quesstion is-- can I create a user control that can do both of these nav
elements, called by different tag names but using the same tag prefix?

Any info is appreciated-- thanks! 

Wells Oliver 
Web Application Programmer 
Leviton Voice & Data 
xxx-xxx-xxxx 
http://www.levitonvoicedata.com <http://www.levitonvoicedata.com>  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  


Message #3 by "Oliver, Wells" <WOliver@l...> on Mon, 15 Jul 2002 13:10:33 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22C3B.AD21C7C0
Content-Type: text/plain;
	charset="iso-8859-1"

Interesting-- do you have any examples of a class file? I would be
interested in taking a look at any good or descriptions of your setup.

-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...]
Sent: Monday, July 15, 2002 10:36 AM
To: ASP+
Subject: [aspx] RE: Creating a User Control to contain 3 SSIs?


Wells,
 
    You can't create a UserControl as in *.ascx up front to accomplish this.
You could create something that has two panels and have a property that
determines which panel to show and which to hide.  However, if you can
display your UserControl using standard HTML it might be to your advantage
to make a *.cs class file that compiles into the same assembly and namespace
as every other control and class your web application uses - this way you
avoid having six or seven <% @Register %> blocks on every page.
 
- Chuck

-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Monday, July 15, 2002 12:37 PM
To: ASP+
Subject: [aspx] Creating a User Control to contain 3 SSIs?



Currently, I have an application with a top navigation and a footer which is
common to all pages and done via SSI. In migrating this app to .NET, I am
creating user control to handle these two SSIs.

My quesstion is-- can I create a user control that can do both of these nav
elements, called by different tag names but using the same tag prefix?

Any info is appreciated-- thanks! 

Wells Oliver 
Web Application Programmer 
Leviton Voice & Data 
xxx-xxx-xxxx 
http://www.levitonvoicedata.com <http://www.levitonvoicedata.com>  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  


Message #4 by Feduke Cntr Charles R <FedukeCR@m...> on Tue, 16 Jul 2002 09:20:41 -0400
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C22CCB.955C1BA0
Content-Type: text/plain;
	charset="iso-8859-1"

I don't have anything here, but if you drop me a line at home (
webmaster@r... <mailto:webmaster@r...> ) I will forward you
the one I'm using for a project.  Basically you just inherit from Control
and override the Render method to have its HtmlWriter write out the HTML you
want.  However making changes to this type of approach is difficult to do
because your HTML isn't openly available (you have to edit text b/w quotes
and escape quotes inside the string).
 
- Chuck

-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Monday, July 15, 2002 4:11 PM
To: ASP+
Subject: [aspx] RE: Creating a User Control to contain 3 SSIs?


Interesting-- do you have any examples of a class file? I would be
interested in taking a look at any good or descriptions of your setup.

-----Original Message-----
From: Feduke Cntr Charles R [mailto:FedukeCR@m...]
Sent: Monday, July 15, 2002 10:36 AM
To: ASP+
Subject: [aspx] RE: Creating a User Control to contain 3 SSIs?


Wells,
 
    You can't create a UserControl as in *.ascx up front to accomplish this.
You could create something that has two panels and have a property that
determines which panel to show and which to hide.  However, if you can
display your UserControl using standard HTML it might be to your advantage
to make a *.cs class file that compiles into the same assembly and namespace
as every other control and class your web application uses - this way you
avoid having six or seven <% @Register %> blocks on every page.
 
- Chuck

-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Monday, July 15, 2002 12:37 PM
To: ASP+
Subject: [aspx] Creating a User Control to contain 3 SSIs?



Currently, I have an application with a top navigation and a footer which is
common to all pages and done via SSI. In migrating this app to .NET, I am
creating user control to handle these two SSIs.

My quesstion is-- can I create a user control that can do both of these nav
elements, called by different tag names but using the same tag prefix?

Any info is appreciated-- thanks! 

Wells Oliver 
Web Application Programmer 
Leviton Voice & Data 
xxx-xxx-xxxx 
http://www.levitonvoicedata.com <http://www.levitonvoicedata.com>  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  

--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to  



  Return to Index