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

UrlPathEncode

If I use:

Server.UrlPathEncode("F&'%+")

nothing happens. All this letters are stil in my url:

page.aspx?medID=F&'%+

Any idea?

Regards,S
Jul 11 '06 #1
2 2793
Try HttpUtility.UrlEncode or HttpUtility.UrlEncodeUnicode or, to be even
more thorough, the AntiXSSLibrary.UrlEncode method from the anti-XSS library
available at
http://www.microsoft.com/downloads/d...9-af08de2e5982.

"simonZ" <si*********@studio-moderna.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
If I use:

Server.UrlPathEncode("F&'%+")

nothing happens. All this letters are stil in my url:

page.aspx?medID=F&'%+

Any idea?

Regards,S


Jul 11 '06 #2
re:
Server.UrlPathEncode("F&'%+")
nothing happens. All this letters are stil in my url:
Have you tried using Server.UrlEncode("F&'%+") ?

When I do that, I get back : F%26'%25%2b
....so the string *is* encoded....but by Server.UrlEncode.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"simonZ" <si*********@studio-moderna.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
If I use:

Server.UrlPathEncode("F&'%+")

nothing happens. All this letters are stil in my url:

page.aspx?medID=F&'%+

Any idea?

Regards,S


Jul 11 '06 #3

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

Similar topics

1
by: SW | last post by:
I have an ASP page that causes Excel to be loaded on the client PC with the text sent from within the page. An excerpt of it is shown below: With Response .ContentType =...
0
by: Bertrand | last post by:
Hello, I am using an ASP form to collect some info from users, that info is them inserted into an Excel file (copy of a template that resides on the server .. I use fso.copy to copy the...
4
by: Hans | last post by:
Hi! I have a classic ASP site (not ASP.NET) where the user is able to download documents. The documents are stored inside an Oracle database set up for UTF-8 encoding. In the VB6 code (COM+)...
1
by: xrow | last post by:
Hello I have a simple webservice / c# application that receives data from server and prints the data in the asp:datagrid control I have problem when sorting data in datagrid I have created...
2
by: Sagaert Johan | last post by:
What or where can i find a function to convert characters not allowed in a html file eg : > converts to &gt; space converts to &nbsp; Also the conversion used in url links where a space...
3
by: hartbypass | last post by:
Hello all, I have a small piece of code that goes and gets the files in a directory and displays them as hyperlinks on a webpage so people can access those files. I am running into an issue...
2
by: hartbypass | last post by:
Ok, so I thoguht I was close but must be missing something. I am trying to get a list of files from a directory and display them in a clickable list using the Repeater control. It seems as if I...
2
by: fran7 | last post by:
Hi, I wonder if anyone can see whats going wrong here. I have this line of asp and javascript and it works fine <a onmouseover="doTooltip(event,'<img...
2
by: kbipul | last post by:
Hi In a web application , I need to create an aspx page(in C#) which can serach the files present on the server at the specified locations. The search parameter may be the file name, extn name,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.