473,797 Members | 3,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NavigateUrl mailto relative URi error

Ron
I have the following control in mailtowebmaster .acsx

<%@ Control Language="VB" AutoEventWireup ="false"
ClassName="Mail toWebmaster" %>
<%@ Register tagPrefix="Club " Namespace="Club Site" %>

<div id="MailtoWebma ster">
<asp:HyperLin k ID="Mailto" runat="server" NavigateUrl="ma ilto:x@y.com"
>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWeb master id="MailtoWebma ster1" runat="server"
></Club:MailtoWebm aster>
It does display it correctly in the browser but when I view the page in
VStudio 2005 Design mode an error is displayed:

Error RenderibfContro l - Mailto
A relative URI cannot be created because 'uriString' parameter represent an
absolute URI.

If I change the URL from mail to to some absolute web site it does not
display the error.

How can I fix this?
Ron

Sep 19 '06 #1
2 5700
don't set the url in design mode

-- bruce (sqlwork.com)

"Ron" <Ro*@discussion s.microsoft.com wrote in message
news:47******** *************** ***********@mic rosoft.com...
>I have the following control in mailtowebmaster .acsx

<%@ Control Language="VB" AutoEventWireup ="false"
ClassName="Mail toWebmaster" %>
<%@ Register tagPrefix="Club " Namespace="Club Site" %>

<div id="MailtoWebma ster">
<asp:HyperLin k ID="Mailto" runat="server" NavigateUrl="ma ilto:x@y.com"
>>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWeb master id="MailtoWebma ster1" runat="server"
>></Club:MailtoWebm aster>

It does display it correctly in the browser but when I view the page in
VStudio 2005 Design mode an error is displayed:

Error RenderibfContro l - Mailto
A relative URI cannot be created because 'uriString' parameter represent
an
absolute URI.

If I change the URL from mail to to some absolute web site it does not
display the error.

How can I fix this?
Ron

Sep 19 '06 #2
Ron
OK Thanks. I just thoght there is a better way for that.

"bruce barker (sqlwork.com)" wrote:
don't set the url in design mode

-- bruce (sqlwork.com)

"Ron" <Ro*@discussion s.microsoft.com wrote in message
news:47******** *************** ***********@mic rosoft.com...
I have the following control in mailtowebmaster .acsx

<%@ Control Language="VB" AutoEventWireup ="false"
ClassName="Mail toWebmaster" %>
<%@ Register tagPrefix="Club " Namespace="Club Site" %>

<div id="MailtoWebma ster">
<asp:HyperLin k ID="Mailto" runat="server" NavigateUrl="ma ilto:x@y.com"
>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWeb master id="MailtoWebma ster1" runat="server"
></Club:MailtoWebm aster>
It does display it correctly in the browser but when I view the page in
VStudio 2005 Design mode an error is displayed:

Error RenderibfContro l - Mailto
A relative URI cannot be created because 'uriString' parameter represent
an
absolute URI.

If I change the URL from mail to to some absolute web site it does not
display the error.

How can I fix this?
Ron


Sep 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2280
by: New User | last post by:
asp.net framework 1.1, C# I am trying to create thumbnail images dynamically and load them on a web page. When I click on a thumbnail image it opens the large version of it. I use DataList to display the images. All my images are in a folder call ‘CocoaImages”. I have the following code in my DataList template to make data bound and make the thumbnail images clickable. Thumbnail images are created and displayed as expected. When I...
4
8956
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help. I create the navigatURL from database dynamically. I see the same question mentioned here but the response is not souitable for me: http://www.dotnet247.com/247reference/msgs/11/57708.aspx
0
1074
by: Don | last post by:
I am trying to do the following: I have a template column with a hyperlink in it. At runtime I want to set the navigateurl. When I try to set it back to the same page it puts the directory in the link instead of just the #. During ItemDataBound HyperLink selectLink = (HyperLink)e.Item.FindControl("selectLink"); selectLink.NavigateUrl = "#;
4
4237
by: Tomek R. | last post by:
Hello ! This post does'nt regard column hyperlink. I just have single hyperlink and want to create it's NavigateUrl dynamically. This is my test page <form id="Form1" method="post" runat="server"> <asp:HyperLink id="MyHLink" NavigateUrl='<%# geturl("123456") %>'
3
3408
by: VB Programmer | last post by:
I have a datalist with a hyperlink in the Item Template. When I set the NavigateUrl simply to this, the databound CategoryId shows up fine: <asp:HyperLink id=hlLink runat="server" NavigateUrl='<%#Container.DataItem("CategoryId")%>'> <%# Container.DataItem("CategoryName") %> </asp:HyperLink>&nbsp;
2
3447
by: gerry | last post by:
I have a page that has an asp:Hyperlink control on it. The NavigateUrl is set to "~/Aaa/Bbb.aspx" When the link is rendered it is rendered as Aaa/Bbb.aspx which I would think is completely incorrect. As I understand the use of the this syntax , ~ should be replaced by the application path. so for an application in the root this value should be /Aaa/Bbb.aspx for an application in the /Ccc/Ddd directory this should be...
1
2098
by: jeanluc.praz | last post by:
I created a user control containing containing a few hyperlinks. How can I change the NavigateUrl inside the user control ? So far I did the following: 1) In the custom control Public Property SetURL() Get
5
5010
by: Vear | last post by:
Sorry, very Newbie question here. I don't know what I'm doing wrong. I have to use a <asp:hyperlink> to go to another page. I want to pick up the value in a text box. This is what I've tried and It tells me it won't work. Not sure how to do it. NavigateUrl="~/secure/Confirm.aspx?No=201, IDate=" & TxtBx1.text & ", ODate = " & TxtBx2.text
0
1310
by: David W | last post by:
I would like to be able to evaluate an expression in the NavigateUrl property of a HyperLink control. This is not a bound control. I know I can do this easily in code-behind, but do not want to do it that way - I want to be able to drop the link on any page. <asp:HyperLink ID="hlHomePage" runat="server" NavigateUrl='<%# Session("HomePath") & "home.aspx" %>' Text="Home"></asp:HyperLink> The above does not evaluate and produces a link...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10209
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.