Re: Link functionality

  •  09-29-2006, 1:22 PM

    Re: Link functionality

    msiegel,

    Absolute and Relative Paths


    When you're creating links to documents and images on the Web, you need to think about how you're going to link to them.

    Cute Editor support three standard ways to create links:

    1. absolute paths without the domain name ( <a href="http://cutesoft.net/default.aspx">Home</a> )
    2. absolute paths with the domain name ( <a href="http://cutesoft/default.aspx">Home</a> )
    3. relative paths ( <a href="default.aspx">Home</a> or <a href="#top">Top</a>)  

     

    To create links correctly in Cute Editor, you need to use the following two properties:


    Editor.RemoveServerNamesFromUrl Property
    :

    By default Internet Explorer converts all URLs in hyperlinks (anchor tags) and images (img tags) to absolute URLs with the hostname name. When this 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.

    Editor.UseRelativeLinks Property:

    By default Internet Explorer converts all URLs in hyperlinks (anchor tags) absolute URLs. When this property is set to true, Cute Editor should strip the absolute link paths.


    Use absolute paths without the domain name.  


    To use absolute paths without the domain name, you need to set Editor.RemoveServerNamesFromUrl property to true (by default).

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="true" runat="server"></CE:Editor>

     

    Use absolute paths with the domain name.   

     


    To use absolute paths with the domain name, you need to set Editor.RemoveServerNamesFromUrl property to false and Editor.UseRelativeLinks property to false .

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="false" UseRelativeLinks="false" runat="server"></CE:Editor>

     

    Use relative paths  

     


    To relative paths, you need to set Editor.RemoveServerNamesFromUrl property to true and Editor.UseRelativeLinks property to true .

    Example:

    <CE:Editor id="Editor1" RemoveServerNamesFromUrl="true" UseRelativeLinks="true" runat="server"></CE:Editor>
     
     
    Hope it helps.
     
    Let me know if you have any further questions.
     
     
     
     

    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