how to pass arguments to aspx

G

Guest

Alex,
if you View Source on the page, you can see that it is a FORM POST, not
"GET" (on the querystring):

<form name="Form1" method="post" action="mbc.aspx" id="Form1">

So you need to use either XMLHTTP or something like the WebClient class to
submit the entry as POST data. Look up WebClient class and you can find some
code samples.
Peter
 
A

alex_glaros

Thanks, that is helpful. But I have tried the code below and it still
won't work. Can you please tell me if you see anything wrong?

Alex Glaros

<form name="Form1" id="Form1"
action="http://publicdocs.medbd.ca.gov/pdl/mbc.aspx" method="post">
<input type="hidden" name="qtxtLicenseNumber" value="33287">
<INPUT type="submit" value="Send">
</form>
 
P

Peter Rilling

You need to make sure you are passing *all* fields, not just the one that
represents the query. Often sites have other fields that control the query
such as what language the browser is using and the number of records to
display. Everything that is marked with an <input ...> must be submitted.

Also, some sites will not let you post from an external page, to prevent
spoofing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top