ASPAlliance.com : The #1 Active Server Pages .NET Community The #1 ASP.NET Community
Search   Search

Subscribe   Subscribe

Powered by ORCSWeb Hosting


Site Stats


Powered By ASP.NET
 
Featured Sponsor

Featured Columnist


Featured Book
Code Complete
Code Complete

Find Prices


New! asp.netPRO

We publish our articles in the standard RSS format.

Powerful .NET Email Component

Code Sharing Software
ASPAlliance Web Services

The ASPAlliance.com website uses several web services to provide consistent layout to the many different applications that comprise the site. Each columnist has their own ASP.NET website, and so in order to share a common look and feel across the entire site, the ASPAllianceTemplate web service is used. Other web services will be included in the near future, including some that may be consumed by directory sites listing all articles on the site.

To use the look and feel template, simply add a header and footer literal to your .aspx page, add a Web Reference to this service, and add the following to your Page_Load event:

// Begin ASPAlliance.com Template Code //////////////////////////////////////////
	bool printview = false; 
	if (Request.QueryString["print"] != null) printview = true;

	// this call's signature will vary based on how you named your web reference
	ASPAlliance.WebServices.localhost.ASPAllianceTemplate template = 
		new ASPAlliance.WebServices.localhost.ASPAllianceTemplate();
		
	template.Timeout = 10000;
	ASPAHeader.Text = template.topTemplate("Web Services","webservices",printview);
	ASPAFooter.Text = template.bottomTemplate("webservices",printview);
	
// End ASPAlliance.com Template Code ////////////////////////////////////////////

 Copyright © 2000-2003 ASPAlliance.com  Page Rendered at 3/21/2010 10:54:36 PM