Click here to Skip to main content
Rate this: bad
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...
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 19:00pm
Edited 21-Nov-12 2:00am
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/
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
not this
sinhasourabh at 21-Nov-12 8:21am
What is dvURL ? is it simple HTML HyperLink or ASP.NET HYPERLINK?

1 solution

Rate this: bad
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.
Miss Maheshwari at 21-Nov-12 6:20am
my dataset is returning
and i place it on div with
but on clicking this it is opening the page like

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 6,212
1 OriginalGriff 5,498
2 CPallini 2,473
3 Richard MacCutchan 1,627
4 Abhinav S 1,530

Advertise | Privacy | Mobile
Web04 | 2.8.140814.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
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