dear all im trying to send the following parameters to an asp page. when the parameter "message" holds an english value no problem appears and the code in the asp page works well but when it carries an arabic string value i get the following error: The remote
server returned an error: (500) Internal Server Error. the querystring is: Sender=eiman&Message=????&Mobile_no=20777777777&Ip_Address=62.6.55.256&arabic=1 im sending the string to the asp page as follows:
StreamWriter myWriter = null; HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url); objRequest.Method = "POST"; objRequest.ContentType = "application/x-www-form-urlencoded"; try { myWriter = new StreamWriter(objRequest.GetRequestStream());
myWriter.Write(stringtopost); myWriter.Close(); } catch (Exception e) { Response.Write(e.Message); }
and i used the following tag in my ASPX page: and even in my web.config file: can anybody findout what's wrong with this!!!!
None
0 Points
30 Posts
is there any problem with this querystring!!
Jan 12, 2005 02:54 PM|eiman_k_elmasry|LINK
StreamWriter myWriter = null; HttpWebRequest objRequest = (HttpWebRequest)WebRequest.Create(url); objRequest.Method = "POST"; objRequest.ContentType = "application/x-www-form-urlencoded"; try { myWriter = new StreamWriter(objRequest.GetRequestStream()); myWriter.Write(stringtopost); myWriter.Close(); } catch (Exception e) { Response.Write(e.Message); }
and i used the following tag in my ASPX page: and even in my web.config file: can anybody findout what's wrong with this!!!!Member
20 Points
81 Posts
Re: is there any problem with this querystring!!
Feb 18, 2005 02:44 PM|Super_Julius|LINK
Contributor
4240 Points
3250 Posts
Re: is there any problem with this querystring!!
Feb 19, 2005 08:35 AM|smiling4ever|LINK