CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    [RESOLVED] difference between 'home.aspx' and '~/home.aspx'

    propably a very basic question. But sometimes Visual studio's autocompletion insert 'home.aspx' and other times '~/home.aspx'.

    What is de big difference when using ~ or not?

  2. #2
    Join Date
    Mar 2008
    Location
    IRAN
    Posts
    811

    Re: difference between 'home.aspx' and '~/home.aspx'

    ~ force asp.net too look at only root directroy to find home.aspx but if ommiting it asp.net will look at other locations (sub folders) when home.aspx was not found in the root directory.
    ~ save the time of asp.net in the situation that there is no need to look at other folders except ROOT.
    Please rate my post if it was helpful for you.
    Java, C#, C++, PHP, ASP.NET
    SQL Server, MySQL
    DirectX
    MATH
    Touraj Ebrahimi
    [toraj_e] [at] [yahoo] [dot] [com]

  3. #3
    Join Date
    Mar 2007
    Posts
    116

    Re: difference between 'home.aspx' and '~/home.aspx'

    ~ We use this sign to look in the root directory...

  4. #4
    Join Date
    Sep 2008
    Location
    Netherlands
    Posts
    865

    Re: difference between 'home.aspx' and '~/home.aspx'

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured