Re: relative links

  •  03-23-2005, 11:10 AM

    Re: relative links

    When you switch to HTML View, Internet Explorer converts all URLs in hyperlinks (anchor tags) and images (img tags) to absolute URLs with the hostname name automatically.

    When RemoveServerNamesFromUrl property is set to true (the default), CuteEditor strips out the local server name from all A and IMG tags if the hostname in the URL matches the current hostname on the server side.
     
    For example:

    Case 1: Switching to HTML view
     
    1. You type a relative link ../data/summer.aspx in the design view

    2. When switch to HTML view, Internet Explorer will convert it to http://somsitenname/somedirectoy/data/summer.aspx automatically.

    3. When RemoveServerNamesFromUrl property is set to true (the default),  after the post back, Cute Editor can convert it to /somedirectoy/data/summer.aspx

    --------------------------------------------------------------------------------------------------------------------------------

    Case 2: Not Switching  to HTML view
     
    1. You type a relative link ../data/summer.aspx in the design view

    2. When switch to HTML view, Internet Explorer will convert it to http://somsitenname/somedirectoy/data/summer.aspx automatically.

    3. After the post back, you will get a relative path  ../data/summer.aspx


    Hope it helps.






    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread