473,324 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

problem in querystring

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

Mar 6 '06 #1
2 1245
"murali.trichy" <mu***********@gmail.com> wrote in message
news:11*********************@z34g2000cwc.googlegro ups.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@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.

Mar 6 '06 #2
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);

Mar 6 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Savidge | last post by:
Hi All, I had this simple CDONTS form to email code working a few days ago. However it doesn't seem to work now as I am not receiving the emails the form generates. Below is my code, can...
4
by: Eifion | last post by:
I've noticed a strange problem with setting cookies in ASP when the cookie name you're setting exists in the querystring. The company I work for has many partner sites who link to our site like...
2
by: Mikael | last post by:
Hi All! I have a problem here and i can't see what it is... My parameters (value) are shopped off. exampe "Hello world" will end up like "hello" How should i adjust the syntax to get a whole...
3
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built...
1
by: lion | last post by:
my Problem: a query string passed into a html page doesn't display correctly on a mac I am just using html and javascript (no ASP, PHP or server side scripting) This is the query string:...
6
by: DAMAR | last post by:
I have got a problem with WMI's Win32_LocalTime: here is the msdn reference: http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_localtime.asp I'D like to have a timer which pass me an...
9
by: Miguel Dias Moura | last post by:
Hello, I have this code: 1) <script runat="server"> 2)Sub Page_Load(sender As Object, e As System.EventArgs) 3)Dim keywords() As String = Request.QueryString("search").Split(CChar(""))...
6
by: Ammar | last post by:
Dear All, I'm facing a small problem. I have a portal web site, that contains articles, for each article, the end user can send a comment about the article. The problem is: I the comment length...
14
by: Simon Gare | last post by:
Hi, have a search.asp page with results.asp page drawing data from an SQL db, problem is the user has to type the whole field value into the search box to retrieve the value on results.asp, what...
2
by: zman77 | last post by:
I have a problem with HttpRequest.QueryString. There is an XML string that contains something like the following: <age>8+</age> As you probably guessed, the "+" is the problem :) I want to get...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.