Red Gate forums :: View topic - How to get the messages after save
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Load
ANTS Load forum

How to get the messages after save

Search in ANTS Load forum
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Jump to:  
Author Message
psabbani



Joined: 25 Apr 2006
Posts: 3

PostPosted: Sat Apr 29, 2006 2:45 pm    Post subject: How to get the messages after save Reply with quote

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
View user's profile Send private message
Brian Donahue



Joined: 23 Aug 2004
Posts: 6588

PostPosted: Mon May 08, 2006 6:58 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies. 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