Hi All,
I have created an application which is working fine and is in about to
launch, now suddenly my mgmt says there are chances that Scrip ID( a
particular id and not prim key) may have special characters like '&,*,),( or
/'
This data(field/key) I am passing this value as a querystring. e.g.
value to be passed : ABC http://localhost/myProj/abc.aspx?ScripID=ABC
this works fine,
But when I have special characters like [ABC&D] then the value retrieved is
wrong it just retrieves ABC and not complete ID [ABC&D]
value to be passed : ABC&D http://localhost/myProj/abc.aspx?ScripID=ABC&D
how do I overcome this, I know I can do it like we have %20 for space and
like wise for & there will be something, but this will be a major change to
my application, can I do this at one end some where in web.config or in aspx
page?
Regards,
Shailesh Gajare
Nov 19 '05
20 9393
Hi Shailesh Gajare
this is another guy just like u !
well as far as ur prob is concerned just try out this
string strQuery = // ur query string value ;
Response.Redire ct(test.aspx?Ht tpUtility.UrlEn code(strQuery)) ;
now when u get these values on test.aspx decode the value using
HttpUtility.Url Decode
I guess this should work
njoy progrming n hav fun
"SMG" wrote: Hi All, I have created an application which is working fine and is in about to launch, now suddenly my mgmt says there are chances that Scrip ID( a particular id and not prim key) may have special characters like '&,*,),( or /'
This data(field/key) I am passing this value as a querystring. e.g.
value to be passed : ABC http://localhost/myProj/abc.aspx?ScripID=ABC this works fine,
But when I have special characters like [ABC&D] then the value retrieved is wrong it just retrieves ABC and not complete ID [ABC&D] value to be passed : ABC&D http://localhost/myProj/abc.aspx?ScripID=ABC&D
how do I overcome this, I know I can do it like we have %20 for space and like wise for & there will be something, but this will be a major change to my application, can I do this at one end some where in web.config or in aspx page?
Regards, Shailesh Gajare This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mr h q |
last post by:
Hi all,
i want to replace $ to \$ so linux can work with paths and filenames
that contain $.
I wrote the following code
for(string::size_type i = s.find(exist, 0); i != string::npos; i =
s.find(foo, i))
{
s.replace(i, foo.size(), bar);
|
by: Ewok |
last post by:
let me just say. it's not by choice but im dealing with a .net web app (top
down approach with VB and a MySQL database) sigh.....
Anyhow, I've just about got all the kinks worked out but I am having trouble
preserving data as it gets entered into the database. Primarily, quotes and
special characters.
Spcifically, I noticed it stripped out some double quotes and a "Registered"
symbol ® (not the ascii but the actual character"
|
by: Jorge Ribeiro |
last post by:
hell
I've an ASP.Net page that, by the action of one submit button, redirects from one Web form to another passin
in the query string one value that will be processed in the later web form
So far so good
My question derives from the fact that, because I'm using portuguese keyboard layout and language, some special characters cannot be passed on the query string unless I escape them..
To eliminate this, on the onclick event of the...
|
by: SMG - Idealake |
last post by:
Hi All,
I have created an application which is working fine and is in about to
launch, now suddenly my mgmt says there are chances that Scrip ID( a
particular id and not prim key) may have special characters like '&,*,) or
/'
This data(field/key) I am passing this value as a querystring. e.g.
value to be passed : ABC
http://localhost/myProj/abc.aspx?ScripID=ABC
|
by: Sakharam Phapale |
last post by:
Hi All,
I am using an API function, which takes file path as an input.
When file path contains special characters (@,#,$,%,&,^, etc), API function
gives an error as "Unable to open input file".
Same file path containing special characters works fine in one machine, but
doesn't work in other.
I am using following API function to get short file path.
Declare Auto Function GetShortPathName Lib "kernel32" (ByVal lpszLongPath As
| |
by: Carl Mercier |
last post by:
Hi,
Is it possible to use special characters like \n or \t in a VB.NET
string, just like in C#? My guess is NO, but maybe there's something I
don't know.
If it's not possible, does anybody know of a VB.NET function (somebody
must have coded this already) that will interpret strings containings
those special characters, and handle them the same as in C#?
|
by: david.lindsay.green |
last post by:
Hello all, I am quite new a web scripting and making web pages in
general and I have stumbled across a problem I have as yet been unable
to solve. I am trying to take the contents of a textarea box and save
it to a file. This step is not to hard however the contents of the
textarea is mostly latex source so it contains just about every special
character you can imagine. My question is this, how do I save an exact
copy of the textarea...
|
by: TheRealDan |
last post by:
Hi all.
I'm having a problem with a special characters.
I have php script that reads from an xml file and writes to a mysql db.
It's a script called phptunest that I found on the net, although the
original website for the author appears to be gone.
It works really nicely except when it hits special characters. Everything from a sp char forward
just gets lost. It is using mysql_real_escape_string, but that doesn't seem to help with the ...
|
by: dearsaran |
last post by:
Hi,
I Want a function written for finding the special characters in a emailid..
Suppose, i've a column email in a table and inserting a emailid with any of the special characters then if i compile the funtion then it should show the wrong emailid's
Example: If a emailid is dear#$saran@gmail!#$%.com then 1st it should check any special char from 1st letter to '@' and one more condition is after @ is there any sepcial char(even space is...
|
by: Sobin Thomas |
last post by:
Hi All,
I want to pass a string that contains many special characters (: \ . _
etc) to another page in my website
through query string.
In my project I have a Gridview control ,in which there is a hyperlink
field.The Gridview 's datasource is set as a database table at runtime.The
hyperlink filed's DataNavigateUrlFields is set to "RecordID" ,which is a
field in my database table.The RecordID field contains many special
characters.I...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |