473,320 Members | 2,006 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,320 software developers and data experts.

ACT and ASP.NET -- Fire a button on a webpage?

Got a test script where I want Application Center Test to log off a user I
just logged in via forms authentication. On one of my forms I have a button
called btnLogout that, when pressed, logs off the user. I recorded myself
logging on and logging off, and from the generated script I see:

oRequest.Body = "__VIEWSTATE=dDw5NjU1MTU1Ozs%2B9uu4k2OBFxBARxlvF8% 2"
oRequest.Body = oRequest.Body + "F6u0Jmt8I%3D&btnLogout=Logout"
I assume that this is the correct Sub and the relevant code from the
Sub--that point at which the button is pressed and a response is sent back to
the server. Playing this back doesn't work. The following variations also
do not work:

oRequest.Body = "__VIEWSTATE=&btnLogout=Logout"
oRequest.Body = "__VIEWSTATE=btnLogout=Logout"
oRequest.Body = "&btnLogout=Logout"
oRequest.Body = "btnLogout=Logout"

What should the request body look like? I attempted to do it by sending a
GET to the page with the logoff button with "?__EVENTTARGET=btnLogout"
appended to the end, but that also didn't work.

Any hints on how to get that button to fire? TIA.
Apr 4 '06 #1
0 946

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

Similar topics

3
by: sonu | last post by:
I have created a window application which has two grid we drag and drop from one grid to other. tn i changed that window application into DLL. and called that dll in a web page. grid are...
5
by: Carlo Marchesoni | last post by:
From an aspx page (A.aspx) I open another one (B.aspx - for table lookup). When the user selects an entry in B.aspx I would like to force a button's event in A.aspx to be fired. I guess the only...
0
by: Hilmar Demant | last post by:
Hi, i've experienced something weird, and its probably not an special ASP.NET-issue, but containing several techniques i think its adequate to post it here. Hopefully someone knows anything...
2
by: Sam Miller | last post by:
Hi, I have a button event that won't fire. I left it on Friday and it worked fine. I came back in on Monday and it won't fire. I tried putting another button and just putting a...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
0
by: jonathan.beckett | last post by:
I have been working on a client project recently that is using winforms ..NET user controls within web pages in Internet Explorer, and need to find out how to make the user control communicate back...
4
by: Ty Salistean | last post by:
So, here is a wierd question that we have been discussing for a bit now. Does an event fire even though nothing is subscribed to listen to the event? For instance, does the Click event of a...
3
by: nektir | last post by:
i've never used a root link like this with a button, so perhaps this is why i've never encountered a problem.. but how would one fix this: <input name="Go to this webpage" type="button" value="Go...
19
by: Daniela Roman | last post by:
Hello, I try to fire an event under a button click event and maybe anybody can give a clue please. I have let's say a WEB grid with PageIndexChanged event: private void...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
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)...
0
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...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.