|
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 ////////////////////////////////////////////
|