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

how to pass arguments to aspx

How can I pass an argument in this line below?

http://publicdocs.medbd.ca.gov/pdl/m...seNumber=33287

If I remove this ?qtxtLicenseNumber=33287

and just type 33287 in the search box like a human user, it works fine

Can you please post a working example?

Thanks!

Alex Glaros

Mar 15 '06 #1
3 4054
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

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"al*********@hotmail.com" wrote:
How can I pass an argument in this line below?

http://publicdocs.medbd.ca.gov/pdl/m...seNumber=33287

If I remove this ?qtxtLicenseNumber=33287

and just type 33287 in the search box like a human user, it works fine

Can you please post a working example?

Thanks!

Alex Glaros

Mar 15 '06 #2
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>

Mar 15 '06 #3
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.

<al*********@hotmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
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>

Mar 19 '06 #4

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

Similar topics

41
by: Berk Birand | last post by:
Hi, I am just learning about the array/pointer duality in C/C++. I couldn't help wondering, is there a way to pass an array by value? It seems like the only way to do is to pass it by...
5
by: deko | last post by:
I'd like to use a bit of code in the OnOpen event of a report: =rptOpen(Me.ReportName), (Me.Tag) --this doesn't work This does work: Private Sub Report_Open(Cancel As Integer)...
5
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the...
2
by: Glenn | last post by:
Hello Is it possible to pass arguements to a .net service once it is in a running state. If this is not possible , are they alternative ways in which to achive the same thing? Glenn
5
by: FrederikVds | last post by:
I have a function which can be called with an unlimited number of arguments. I want to call another function with exactly the same arguments. I know I can get the arguments in the arguments...
10
by: tshad | last post by:
I want to access multiple arguments based on name passed. For example I have the following asp:textboxes: BillingAddress1 BillingAddress2 BillingCity ShippingAddress1 ShippingAddress2...
2
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm in a template column of a gridview. i have a hyperlink in the Item Template and i'm trying to do a custom binding expression to it. So far i have the following: Eval("FILE_ID",...
4
by: kinaxx | last post by:
Hello, now I'm learning progamming language in university. but i have some question. in textbook. says there are four passing Mechanism 1) pass by value (inother words : call by value) 2)...
10
by: Robert Dailey | last post by:
Hi, I noticed in Python all function parameters seem to be passed by reference. This means that when I modify the value of a variable of a function, the value of the variable externally from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.