From: murali.trichy on
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(a)Pune

From: McKirahan on
"murali.trichy" <murali.trichy(a)gmail.com> wrote in message
news:1141643726.945905.20330(a)z34g2000cwc.googlegroups.com...
> 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(a)Pune
>

I think you mean "exceeds" not "exits".

Alternatively, a form is used to pass data form the client to the server.

In Classic ASP, form fields are retrieved via the Request.Form collection.

<form name="form1">
<input type="hidden" name="tname">
</form>

<script type="text/javascript">
document.form1.tname.value = rowno;
....
</script>

"value" is a resered word and should not be used as a form field's name.



From: murali.trichy on
soory for spelling mistake.
and I solve using :

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);