i want to pass XML data in querystring from one to another asp page.
it is about 10000 characters long, i cannot use FORM because it is
already nested in one.
What i do is i have IFRAME and im passing some xml data
in QUERYSTRING. It doesnt work somehow, im using javascript escape
method to substitute escape characters, but most of characters are
being truncated (about 300-500 left).
Are there limits in querystring length?
what else should i try??
any help appreciated 2 6822
Can't you use POST?
Post it like this:
public static void PostData ( string destURL, string data )
{
WebRequest r = WebRequest.Crea te(destURL);
r.Method = "POST";
r.ContentType = "applicatio n/x-www-form-urlencoded";
StreamWriter w = new StreamWriter(r. GetRequestStrea m());
w.Write(data);
w.Close();
}
Then use Request.InputSt ream to read the data.
PS
Yes there is a limit for the querystring length, although i am not sure what
it is.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Marcin" <sm*******@inte ria.pl> wrote in message
news:54******** *************** ***@posting.goo gle.com... i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one. What i do is i have IFRAME and im passing some xml data in QUERYSTRING. It doesnt work somehow, im using javascript escape method to substitute escape characters, but most of characters are being truncated (about 300-500 left). Are there limits in querystring length? what else should i try??
any help appreciated
Marcin wrote: i want to pass XML data in querystring from one to another asp page. it is about 10000 characters long, i cannot use FORM because it is already nested in one.
Forget about that. URLs are not meant (read "specified" ) to transport
such payload. Any upstream HTTP processor may simply truncate the URL.
What i do is i have IFRAME and im passing some xml data in QUERYSTRING. It doesnt work somehow, im using javascript escape method to substitute escape characters, but most of characters are being truncated (about 300-500 left). Are there limits in querystring length?
Yes. There's no specified maximum length, but experience shows that
query strings longer than 2 kB are to avoided.
what else should i try??
HTTP POST.
Cheers,
-- http://www.joergjooss.de
mailto:ne****** **@joergjooss.d e This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fredrik/Sweden |
last post by:
Hi folks !
got this problem...
i have a table 'Accounts' in my database, which contains a bunch of
users. From the main menu i choose "edit user" and all users in the db
are presented in a table. The first column 'Pnr' is a unique ID for
each user that i made appear as a link. clicking on one userID should
present a form where the picked users userdata is already filled in so
i can easily edit it and then move on to submit the form to...
|
by: Kim Lots |
last post by:
Hi all
I'm trying to pass two variables, but what is wrong with my code?
--------
<form name="uno"
action="validate.asp?Num=<%=Request.Querystring("Num") %>"
method="post">
<textarea name="komm" cols="90" rows="4" id="komm"></textarea>
|
by: Consuelo Guenther |
last post by:
Hello,
I am having problems with passing variables between pages. I have the
following:
First asp page has the function:
-----------------------------------------------------------------------
<script language="JavaScript">
function addProcess(addPName,addSProcess,addPIndex)
{
var addProcessWindow =
window.open('second.asp','mywindow','width=400,height=200');
|
by: Anne |
last post by:
hie there, i want to be able to pass multiple parameters
to another page. currently, i am able to do so, but
somehow i feel it is not the correct way to do it. below
is part of what i have so far.
'first page
Private Sub btnOK_ServerClick(ByVal sender As
System.Object, ByVal e As System.EventArgs) Handles
btnOK.Click
Response.Redirect("InputValues.aspx?Requestor=" &
|
by: Lee |
last post by:
Hi All
How can I pass options from one webpage into another webpage. When the user
clicks on the hyperlink I want them to be go to the next page but I need to
pass in a number that the next page needs to reference.
Thanks
Lee
| |
by: David Freeman |
last post by:
Hi There!
I'm just wondering if there's a way to pass parameters (as if you were
passing parameters to a ASCX web control) when calling an ASPX page?
e.g.
MyDetailsPage.UserName = "david"
OR... the only way to do it is to use the QueryString or Session object?
|
by: Laura K |
last post by:
I know this is basic but I just can not get my head around it.
I would like to take a querystring and from that querystring redirect the
user to a specific page. I set up a simple test and I am doing something
wrong. Kinda a newbie here so here it goes.
I have tested the querystring by passing it to a label to make sure it is
correct and the querystring that I have been testing this with is 7jackets.
The redirect takes me to the...
|
by: Tor Inge Rislaa |
last post by:
Passing and using parameters
How to get hold of the parameter value provided by the URL? When I open a
web form with a DataSource I often include a parameter in the URL as below:
myNewPage.aspx?myParam = 10
|
by: beebee |
last post by:
Hi all.
I am having a bit of difficulty:
Here is what is happening:
I have an application that spits out a thankyou.aspx page and i would like to pass it the querystring values it had collected before loading the thankyou page.
This is completed.
NOw on the thankyou.aspx page i am getting the following error:
Compiler Error Message: CS0120: An object reference is required for the nonstatic field, method, or property...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |