Skip to content

Working with URLs

CuteEditor for .NET

Working with URLs

Working with URLs

A hypertext link, often called a link, creates a connection from one page to another page. In a web page, links are typically underlined and differentiated by color from the surrounding text. When a visitor to your website clicks a link in one page, another page opens. Visitors use links to navigate your website.

In CuteEditor, you can make text or images in your web page act as links. When a visitor to your website clicks a link-specified text or an image-the browser takes the visitor to another web page or file, or starts their e-mail application.


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.

CuteEditor supports three standard ways to create links:

  1. Absolute paths without the domain name ( <a href="/">Home</a> )
  2. Absolute paths with the domain name ( <a href="http://cutesoft/default.aspx">Home</a> )
  3. Default ( The URL is not converted)

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).


Using Absolute Paths Without The Domain Name

To use absolute paths without the domain name, you need to set Editor.URLType property to "SiteRelative".

Example:

<CE:Editor id="Editor1" URLType="SiteRelative"></CE:Editor>

Using Absolute Paths With the Domain Name

To use absolute paths with the domain name, you need to set Editor.URLType property to "Absolute".

Example:

<CE:Editor id="Editor1" URLType="Absolute"></CE:Editor>