Refactor Code

  • Gravatar
    Referencing Images/JS files from Sub Directories

    by azamsharp on 5/22/2008 6:18:49 PM
  • Sometimes we have image files and JS files in a directory that we need to refer from other sub directories. Instead of putting the resource files in the sub directories and duplicated them you can use the following method in your master page.
  • The resource file src attribute is shown below:

    src='<%= ResolveUrl("~/Styles/Site.css") %>'
  • Refactor it!
  • Gravatar
    I am new to dotnet please provide the complete code so that i could try it out some thing like how www.codeproject.com does Thanks
    by rockygorden on 7/22/2008 10:43:35 PM
  • Gravatar
    Hi RockyGorden, This is not an articles website. The purpose of this website is to refactor small snippets of code. If you wish to read articles please visit www.gridviewguy.com. Thanks, AzamSharp
    by azamsharp on 7/23/2008 10:42:05 AM
Please log in to refactor the code! Login