473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

NavigateUrl mailto relative URi error

Ron
I have the following control in mailtowebmaster.acsx

<%@ Control Language="VB" AutoEventWireup="false"
ClassName="MailtoWebmaster" %>
<%@ Register tagPrefix="Club" Namespace="ClubSite" %>

<div id="MailtoWebmaster">
<asp:HyperLink ID="Mailto" runat="server" NavigateUrl="mailto:x@y.com"
>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWebmaster id="MailtoWebmaster1" runat="server"
></Club:MailtoWebmaster>
It does display it correctly in the browser but when I view the page in
VStudio 2005 Design mode an error is displayed:

Error RenderibfControl - 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 5687
don't set the url in design mode

-- bruce (sqlwork.com)

"Ron" <Ro*@discussions.microsoft.comwrote in message
news:47**********************************@microsof t.com...
>I have the following control in mailtowebmaster.acsx

<%@ Control Language="VB" AutoEventWireup="false"
ClassName="MailtoWebmaster" %>
<%@ Register tagPrefix="Club" Namespace="ClubSite" %>

<div id="MailtoWebmaster">
<asp:HyperLink ID="Mailto" runat="server" NavigateUrl="mailto:x@y.com"
>>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWebmaster id="MailtoWebmaster1" runat="server"
>></Club:MailtoWebmaster>

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

Error RenderibfControl - 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*@discussions.microsoft.comwrote in message
news:47**********************************@microsof t.com...
I have the following control in mailtowebmaster.acsx

<%@ Control Language="VB" AutoEventWireup="false"
ClassName="MailtoWebmaster" %>
<%@ Register tagPrefix="Club" Namespace="ClubSite" %>

<div id="MailtoWebmaster">
<asp:HyperLink ID="Mailto" runat="server" NavigateUrl="mailto:x@y.com"
>webmaster</asp:HyperLink>
</div>

When I use it in a page:

<Club:MailtoWebmaster id="MailtoWebmaster1" runat="server"
></Club:MailtoWebmaster>
It does display it correctly in the browser but when I view the page in
VStudio 2005 Design mode an error is displayed:

Error RenderibfControl - 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
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...
4
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....
0
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...
4
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"...
3
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"...
2
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...
1
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...
5
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.