473,386 Members | 1,795 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,386 software developers and data experts.

Client VBScript and Viewstate for ASP .NET Webpage

I'm trying to code a free-standing VBScript, executed by Windows Script Host
on a client system, to push a button on an ASP .NET webpage that is hosted
by another server. Note that the script is not part of a webpage and does
not execute in a web browser. Instead, the script uses Msxml2.XMLHTTP to
send an HTTP request. To figure out what to include in the request body, I
used a Proxy Trace utility and captured the data that is sent when you push
the button we want on the webpage in a browser. I was able to make a script
that works temporarily.

However, on subsequent days, the script stops working. I found that if I do
a Proxy Trace again, the Viewstate data in the body has changed. Why would
the Viewstate data be different on different occasions, if all the controls
on the form have the same values?

I asked the developer of the webpage, and he said they did not request
encryption not did they use the ViewStateUserKey. The Viewstate should be
behaving according to its defaults. Is there something that causes the
Viewstate to vary from session to session? If so, how can my client script
know what Viewstate data to pass?

Thanks!
--
Joseph Morales
[To reply directly, remove "deletethispart." from my E-mail address ]
Nov 19 '05 #1
1 2894
the viewstate is varied on every page render, and the matching viewstate
must be posted. before posting a page, you should go a get, parse out the
viewstate and send it back. its encrypted so that client apps like yours can
not modifiy it.

-- bruce (sqlwork.com)


"Joseph Morales" <jo************@deletethispart.unisys.com> wrote in message
news:d4***********@si05.rsvl.unisys.com...
I'm trying to code a free-standing VBScript, executed by Windows Script
Host on a client system, to push a button on an ASP .NET webpage that is
hosted by another server. Note that the script is not part of a webpage
and does not execute in a web browser. Instead, the script uses
Msxml2.XMLHTTP to send an HTTP request. To figure out what to include in
the request body, I used a Proxy Trace utility and captured the data that
is sent when you push the button we want on the webpage in a browser. I
was able to make a script that works temporarily.

However, on subsequent days, the script stops working. I found that if I
do a Proxy Trace again, the Viewstate data in the body has changed. Why
would the Viewstate data be different on different occasions, if all the
controls on the form have the same values?

I asked the developer of the webpage, and he said they did not request
encryption not did they use the ViewStateUserKey. The Viewstate should be
behaving according to its defaults. Is there something that causes the
Viewstate to vary from session to session? If so, how can my client script
know what Viewstate data to pass?

Thanks!
--
Joseph Morales
[To reply directly, remove "deletethispart." from my E-mail address ]

Nov 19 '05 #2

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

Similar topics

5
by: Christian | last post by:
Hi, Viewstate of WebUserControl does NOT work although the 'EnableViewstate'-property of the usercontrol is set to true Description : Using ASP.Net : I have a created a WebPage with 2...
2
by: Christian | last post by:
Hi, Viewstate of WebUserControl does NOT work although the 'EnableViewstate'-property of the usercontrol is set to true Description : Using ASP.Net : I have a created a WebPage with 2...
2
by: Rick Strahl [MVP] | last post by:
Run into an interesting problem today with a client of mine: They have an ASP.Net form that they want to drive through a client side HTTP interface. I know a Web Service would be a better way to...
1
by: Ralph Soons | last post by:
Hi all, I am trying to save the viewstate in a session instead of storing it in a hidden of the webpage which is default. This because of performance reasons. When I use line 2 in combination...
2
by: COHENMARVIN | last post by:
I am working on an application where the user enters info into a multiline textbox. The info is Stylesheet tags that he wants web pages to use. Basically he would be entering a stylesheet into...
7
by: GS | last post by:
Hello, I'm receiving The state information is invalid for this page and might be corrupted error message when running code below. This happens on second post back. Why is it happening? My...
4
by: client site dll in vbscript | last post by:
Hi i have one dll on client site,i want to use it in aspx page, on clinet site Is it possible or not .Please tell me the solution Please email me at indipren@hotmail.com Regarda Indi
1
by: Chris | last post by:
Hi, I have jsut started to learn ASP development and have read many articles regarding which is the best to use regarding JavaScript or VBScript. All of the learning that I have done so far has...
1
by: thirunavukarasukm | last post by:
i want to change background color in panel if checkbox checked is true i am used vb script; but i wrote given code but the expected end of statement error happend please help me
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

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.