Red Gate forums :: View topic - Variable State Information in web form script
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

Variable State Information in web form script

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
carteltest



Joined: 06 Mar 2007
Posts: 1

PostPosted: Tue Mar 06, 2007 7:05 pm    Post subject: Variable State Information in web form script Reply with quote

Hello. I am having difficulty modifying my recorded script to take State Information and make variable input for a web form.

My recorded script is:
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.ContentType = "multipart/form-data; boundary=---------------------------7d72114510340"
WebClient.HttpRequest.SetPostData(System.Text.Encoding.ASCII.GetBytes( _
"-----------------------------7d72114510340" & _
vbCrLf & _
"Content-Disposition: form-data; name=""ctl00$MainContent$SingleOrder1$txtAddress""" & vbCrLf & _
"" & vbCrLf & _
"700 Test Street" & vbCrLf & _
"-----------------------------7d72114510340" & _
"" & vbCrLf & _
"Content-Disposition: form-data; name=""ctl00$MainContent$SingleOrder1$txtCity""" & vbCrLf & _
"" & vbCrLf & _
"Denver" & vbCrLf & _

The data I want to take for State Information is street address (seen here as 700 Test Street and city name (seen here as Denver)

Please advise.
Regards.
Back to top
View user's profile Send private message
dhani43



Joined: 02 Mar 2007
Posts: 2

PostPosted: Wed Mar 07, 2007 10:53 am    Post subject: State Info Reply with quote

Hi,

create 2 columns street_no and city in stae info table

dim street as string = stateinformation.get("street_no")
dim street as string = stateinformation.get("city")

where you find this "700 Test Street" replace with street
where you find this "denver" replace with city

if you want put me.logtofile(street & " " & city) check in Ants trace log file under C:\program files\ANTS Load directory.
_________________
Thanks,
Guru
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