Solved

Why are these special characters showing up?

Posted on 2011-02-14
4
163 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
ID: 34890944
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
ID: 34890964
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
ID: 34891043
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
ID: 34916449
Thanks.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

775 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