Solved

Why are these special characters showing up?

Posted on 2011-02-14
4
165 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

Suggested Solutions

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

726 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