473,378 Members | 1,496 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Builing a navigateurl string programatically.

I have a routine that goes through and creates some hyperlinks that I add to
a panel on the page. Works fine. When I generate the navigate url string, I
include some querystrings to it. The string looks fine before doing it but
when it get's to the actual string, it converts the ? and & to the escape
sequences.

How do I stop it from doing that?

TIA - Jeff.
Nov 26 '07 #1
2 1591
Mufasa wrote:
I have a routine that goes through and creates some hyperlinks that I add to
a panel on the page. Works fine. When I generate the navigate url string, I
include some querystrings to it. The string looks fine before doing it but
when it get's to the actual string, it converts the ? and & to the escape
sequences.

How do I stop it from doing that?

TIA - Jeff.

Use System.Web.HttpServerUtility.UrlDecode() method to get your actual url

--
Duy Lam Phuong
Nov 26 '07 #2
Thanks everybody. But it turns out it was my fault. I was generating the URL
incorrectly.

"Duy Lam" <du**********@gmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Mufasa wrote:
>I have a routine that goes through and creates some hyperlinks that I add
to a panel on the page. Works fine. When I generate the navigate url
string, I include some querystrings to it. The string looks fine before
doing it but when it get's to the actual string, it converts the ? and &
to the escape sequences.

How do I stop it from doing that?

TIA - Jeff.


Use System.Web.HttpServerUtility.UrlDecode() method to get your actual url

--
Duy Lam Phuong

Nov 26 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: New User | last post by:
asp.net framework 1.1, C# I am trying to create thumbnail images dynamically and load them on a web page. When I click on a thumbnail image it opens the large version of it. I use DataList to...
0
by: Nielsen | last post by:
Hi Question regarding Content Management Server and C# string survey = thisPosting.Placeholders.Datasource.RawContent.ToString() Label1.Text = survey Label1 shows correctly the value:...
5
by: Mark Fox | last post by:
Hello, When I set a hyperlink server control's NavigateUrl to Webform.aspx?a=0&b=0 it outputs Webform.aspx?a=0&amp;b=0
4
by: Amir Eshterayeh | last post by:
Dear Friends My asp hyperlink goes to relative address instead of absolute. I like navigate url goes to outsite link like www.asp.net but now, it goes to www.mysite/www.asp.net please help....
1
by: jm | last post by:
Consider: NavigateUrl= '<%# DataBinder.Eval(Container.DataItem, "ORDER_ID", "informationmain.aspx?txt_command=EDIT&case_id={0}&ddl1_selected_value=1&ddl2_selected_text=Complaint") %> ...
4
by: Tomek R. | last post by:
Hello ! This post does'nt regard column hyperlink. I just have single hyperlink and want to create it's NavigateUrl dynamically. This is my test page <form id="Form1" method="post"...
1
by: jeanluc.praz | last post by:
I created a user control containing containing a few hyperlinks. How can I change the NavigateUrl inside the user control ? So far I did the following: 1) In the custom control Public...
2
by: Radu | last post by:
Hi, I have a "select" control named "cboSelectScorecardType", defined as <select id="cboSelectScorecardType" size="1" runat="server"> </select> which shows a list of files on my drive. It...
6
by: Dmitry Duginov | last post by:
I have a FormView and a HyperLink on the page. If I use the following code behind (hooked up to Hyperlink's OnLoad event), it renders fine protected void link_Load(object sender, EventArgs e)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.