473,385 Members | 1,693 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,385 software developers and data experts.

What function to use to submit a param in URL that contains '&' w/o using %26?

When I do window.open(url), I have to manually replace a value inside that url that contains '&' by '%26'. I am wondering whether there is a function on ASPNET side that I can manipulate that param value that contains '&' to containing '%26' without doing in javascript window.open(). URLEncode does not work nor URLPathEncode!
Jul 14 '10 #1
3 1249
Frinavale
9,735 Expert Mod 8TB
Check out the HtmlEncode method. This method converts all HTML reserved characters into character entities for you.

-Frinny
Jul 19 '10 #2
It is not a happy answer - I can't believe it but I think I have to accept it. Thanks.
Jul 19 '10 #3
Frinavale
9,735 Expert Mod 8TB
I'm sorry but after posting my reply to your question I realized that it probably isn't going to work for you (I deleted it, but then undeleted it so that others could see what I said). Feel free to check it out because it's a good topic to know... but I don't think it will work for converting "&" into the appropriate ascii equivalent.

-Frinny
Jul 19 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jack | last post by:
Hello, What function can get a string's long by JavaScript? Thank you
5
by: W. Jack | last post by:
Hello, in VBScript: Int(11.4)=11 What function in JScript like this function? Thank you
2
by: Fred Bassett | last post by:
For example, a database with three tables: EMPLOYEE(employee#, empName, empAddress, empTel) EMPLOYEE_ON_PROJECT(employee#, project#) PROJECT(project#, projectStartDate, projectEndDate) What...
3
by: Tom Luetz II | last post by:
I'm having some trouble with the DataAdapter in my code. When the parameter in an OleDbCommand, which is created as having a type of OleDbType.Decimal, is set to System.DbNull, the actual value...
3
by: ashok | last post by:
Hi, I need a function that will divide text from mysql in 2 parts, so that I can display first half in one column and second half in second column. I can't find what function will do this job....
2
by: georgeryoung | last post by:
I'm starting to read about twisted and I keep seeing things like: def __init__(self, name, uid=None, gid=None, authorizer=None, authorizer_=None): """Initialize me. If uid and gid arguments...
1
by: aris1234 | last post by:
Hi All.... i have code html like this : <form> Name : <input type="text"> age : <input type="text"> <input type = "submit"> </form>
12
by: salonowiec | last post by:
My very basic code is: <?php $fname='alpha.ext'; readfile($fname); ?> Only when ext is txt I'm getting a reasonable content, otherwise there's a lot of bush. What function should I use to open...
12
by: Ziggy | last post by:
Hello, What function allows conversion md5 in text? Thanks in advance Thierry
2
by: kasukur | last post by:
Hi i am new to .net. Can someone please advise how to call a SQL function which returns a cursor using c# i have tried to call using OracleCommand.CommandType = CommandType.StoredProcedure ...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.