Make the html tag pointing to Root directory

Last post 02-27-2008, 1:35 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  02-26-2008, 1:56 PM 37367

    Make the html tag pointing to Root directory

    I have a custom button in the editor that replaces the Insert image button in the Cute Edior.
    my problem is when i insert the picture in the Editor and view the html it comes as
    <img src="Employees/25/Tms_Test/img1.jpg"> which is a folder in my page where i store the uploaded files.
    so when i display the image later the grid it is not displaying  the image.Instead it is diplaying the html image tag.
     
    Becuse my project directory is c:\website\Edit\Employess/25/..
     
    how can i make the html point to like <img src="http://cutesoft.net/Edit/Employess/25/Tms_Test/img1.jpg" instead of <img src="Employees/25.."
     
  •  02-27-2008, 1:35 AM 37381 in reply to 37367

    Re: Make the html tag pointing to Root directory

    rayashraf,
     
    Document:
     
     

    Absolute and Relative Paths - Using URLs Effectively


    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.

    CuteEditor supports three standard ways to create links:

    1. Site root relative path ( <a href="http://cutesoft.net/default.aspx">Home</a> )
    2. Absolute path ( <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 CuteEditor, you need to use Editor.URLType Property and URLType Enumeration.

    Editor.URLType Property

    Specify whether the URL should be converted to a site root relative path (/html/images/image1.gif) or an absolute path (http://www.mysite.com/images/image1.gif).

    URLType Enumeration



    Member Name Description
    Default The URL is not converted.
    SiteRelative The URL is converted into a site root relative path. A site root relative path describes the location of the destination file by describing the route the browser must take from the Web site's root folder (top level in the folder structure). For example, a site root-relative path to an image may appear as: /html/images/image1.gif
    Absolute The URL is converted into an absolute path. An absolute path describes the physical location of a file on a machine or the exact location of a file on the Internet. An absolute path on your hard drive might appear as: An absolute path might appear as: http://www.mysite.com/images/image1.gif

    Demo:
     
     
     

    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 as RSS news feed in XML