| Author |
Message |
psabbani
Joined: 25 Apr 2006 Posts: 3
|
Posted: Sat Apr 29, 2006 2:45 pm Post subject: How to get the messages after save |
|
|
Can someone tell me the syntax to get the message posted by page after clicking on save.
I would like to read/get the message displayed after clicking on Save is performed.
I would like to put that statement into log file.
Messages i mean here are like "Save successfull" generally that is the message disaplyed after save in our applciation or some error messages/warnings after save.
Thanks in advance. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Mon May 08, 2006 6:58 pm Post subject: |
|
|
Hello,
I think you want to log the server response. There are a variety of things that you can include in the script to do this:
Me.LogToFile <-- places the data in c:\program files\ants load\antstracelog.txt
Me.ReportWarning <-- puts data in the report as a warning
To log the server responses, you can use the HttpResponse object. For instance, to log the content of a page sent as the result of a GET or POST request, you could script:
Me.LogToFile(WebClient.HttpResponse.Content) _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group