kamagra how much to take

Get An XSL Filepath For WebParts

This method allows you to get an XSL File Path that you can use in your webparts. I find it useful if I am applying formatting to things that are generated out of the object model.

  1. public string XslFilePath
  2. {
  3.         get
  4.         {
  5.                 if (this.xslFilePath == "Example.xsl")
  6.                 {
  7.                         return new Uri(this.Page.Request.Url, this.Page.Request.Url.AbsolutePath + "?ControlResource=" + this.xslFilePath).ToString();
  8.                 }
  9.                 return new Uri(this.Page.Request.Url, this.xslFilePath).ToString();
  10.         }
  11.         set
  12.         {
  13.                 if ((value == null) || (value.Trim() == string.Empty))
  14.                 {
  15.                         throw new Exception(" The XSL File Path Is Not Valid.");
  16.                 }
  17.                 this.xslFilePath = value;
  18.         }
  19. }
Share

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>