Solved

Why are these special characters showing up?

Posted on 2011-02-14
4
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

717 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