Click here to Skip to main content
11,431,483 members (54,594 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
while executing the code below, it is adding my link to site url like...

http://localhost:4434/DharmikSamajik/member/www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103

where is the problem plzz tell me.
if (dr.Read())
{
     dvurl.InnerHtml = "My Url Link is :- <a target='_blank' href= "+ ResolveClientUrl(Convert.ToString(dr["mem_url"])) + " >"+Convert.ToString(dr["mem_url"]) +"</a>";
}
Can someone tell me where I did mistake
Posted 20-Nov-12 20:00pm
Edited 21-Nov-12 3:00am
v10
Comments
Krunal R at 21-Nov-12 1:30am
   
Could you please update your question , like omit all the comments and again paste you code
Krunal R at 21-Nov-12 1:49am
   
What it is displaying ??
Miss Maheshwari at 21-Nov-12 1:58am
   
on clicking of hyperlink it is showing this url http://localhost:4434/DharmikSamajik/member/www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103
Krunal R at 21-Nov-12 2:00am
   
So what do you want ?
Miss Maheshwari at 21-Nov-12 2:15am
   
it should display only dis...www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103
not this
http://localhost:4434/DharmikSamajik/member/www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103
sinhasourabh at 21-Nov-12 8:21am
   
What is dvURL ? is it simple HTML HyperLink or ASP.NET HYPERLINK?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

The first thing you need to do is look at the HTML that that is generating: use your browsers "View source" (or "Inspect Element" if it has one - Chrome does)

Once you have that, break it down into the various parts, and match them against the code above - which parts are the output form which bits?

I suspect that your datareader is not returning exactly what you expect it to.
  Permalink  
Comments
Miss Maheshwari at 21-Nov-12 6:20am
   
my dataset is returning
www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103

and i place it on div with
but on clicking this it is opening the page like

http://localhost:4434/DharmikSamajik/member/www.dharmiksamajiksamuh.com/member/register.aspx?referal=n&id=103

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.150428.2 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100