Solved

Why are these special characters showing up?

Posted on 2011-02-14
4
162 Views
Last Modified: 2012-06-27
This code:
string anchor = "<a href=\"~/" + t.TableName + "/Edit.aspx\">" + t.TableName + "</a>";

http://localhost:2614/Pages/z_old_product/Edit.aspx

because the page where I am posing the link is in the Pages folder.

I want to remove Pages. But z_old_product is not a folder, otherwise I think I could use:

"~/z_old_product/Edit.aspx"

Please let me know...

Thanks,
newebieweb
0
Comment
Question by:newbieweb
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
starlite551 earned 500 total points
Comment Utility
Move /z_old_product/ folder outside the Pages folder and then try the code :
"~/z_old_product/Edit.aspx"

Thats is copy and paste the "~/z_old_product/" Folder itself outside Pages folder..
0
 

Author Comment

by:newbieweb
Comment Utility
Is there no other way? I like the Pages folder, but z_old_product is a database table. This is a Dynamic Data website...
0
 
LVL 12

Assisted Solution

by:starlite551
starlite551 earned 500 total points
Comment Utility
Try this code then :
string anchor = @"<a href=\"~/Pages/" + t.TableName + "/Edit.aspx\">" + t.TableName + "</a>";

Open in new window

0
 

Author Closing Comment

by:newbieweb
Comment Utility
Thanks.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now