I have a legacy application written in ASP classic and running on Chili-ASP that I am in the process of porting to a true windows server running ASP.NET. The problem I am running into is the a considerable number of "POST" pass database update statements
in the querystring and when posting to the ASP.NET server the spaces are removed. For example the post of :
Will work under my old ASP Classic/Chili-ASP because the spaces are not removed from thequerystring but under asp.net it does not work because the string removes the spaces and appears like
I understand I can encode this string and it will work in ASP.NET if I do that but it is a lot of code to change and I would liek to avoid that if possiable. My question is if there is a setting that I can use to make ASP.NET not remove the spaces?
whrreynolds
0 Points
1 Post
asp.net vs asp encoding
Nov 05, 2012 05:30 PM|LINK
I have a legacy application written in ASP classic and running on Chili-ASP that I am in the process of porting to a true windows server running ASP.NET. The problem I am running into is the a considerable number of "POST" pass database update statements in the querystring and when posting to the ASP.NET server the spaces are removed. For example the post of :
www.anywhere.com/postupdate.asp?'Update mytable set x = 1 where x = 1'
Will work under my old ASP Classic/Chili-ASP because the spaces are not removed from thequerystring but under asp.net it does not work because the string removes the spaces and appears like
www.anywhere.com/postupdate.asp?'Updatemytablesetx=1wherex =1'
I understand I can encode this string and it will work in ASP.NET if I do that but it is a lot of code to change and I would liek to avoid that if possiable. My question is if there is a setting that I can use to make ASP.NET not remove the spaces?
Thank you in advance