problem in querystring

  • Thread starter Thread starter murali.trichy
  • Start date Start date
M

murali.trichy

hi,

according to browser Querystring values are vary, for eg. IE - 2,083
Characters.

In my application I'm transfering data from Javascript to Asp.Net
through Query string.

Eg:
var http = new ActiveXObject("Msxml2.XMLHTTP");
http.open("POST","Server.aspx?tname="+rowno
+"&value="+ths.value,true);
http.send();

here my query string value exits maximum limit. How to solve it in a
better way ?

thank
Murali@Pune
 
thks and i solve by

Client - Javascript
var http = new ActiveXObject("Msxml2.XMLHTTP");
http.open("POST","Server.aspx?tname="+rowno,true);
http.send(ths.value);
Server - Asp.net
Stream ipStream = Page.Request.InputStream;
int length = (int)ipStream.Length;
byte[] buff = new byte[length];
ipStream.Read(buff, 0, length);
string sval = System.Text.Encoding.Default.GetString(buff);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top