Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with strategies for reading web form (ASP) results
Message
 
 
To
09/11/2004 12:19:18
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00959631
Message ID:
00960710
Views:
12
>I need to validate a Washington State driver's license. WA has a website where one can enter a D.L. # and get back info on whether the D.L. is valid. I haven't been able to figure out a technique for programmatically submitting information and getting back the response.
>
>They're using the same webpage for the request and the response. I've tried hitting the site with a parameter, but that failed. I tried building a look-alike-page, filling in the textbox with a value and then hitting the site from that one...thinking they may be looking for particular hidden inputs. That didn't work either. It's an HTTPS site and they're obviously, and correctly, security conscious, so I suspect it may be out of my control. However, I thought I'd see if anyone here has any suggestions.
>
>For the curious, the site is https://fortress.wa.gov/dol/ddl/dsd/Main2.asp. TIA.
>
>Oh, I have emailed them but it's the State. Who knows when I'll hear back, or if.
>
>Related Thread ID: 959634

Navigating to the URL above results in redirection to https://fortress.wa.gov/dol/ddl/dsd/Default.asp

Viewing the source one can see that a javascript navigate function is being called (the source for this can be found at (https://fortress.wa.gov/dol/ddl/dsd/Inc/common.js)

The navigate function is relatively simple taking two arguments (next, bypass) with a boolean variable (blnValid) used to control program flow. When called from default.asp bypass contains 0, so:
if(bypass == "0"){
	 blnValid = validateFields()
will call the validateFields() function, which is defined back in Default.asp, this only appears to contain
function validateFields(){
  return true;
}
so the salient code is the bit that populates hidden variables in frmScreen a form right at the bottom of default.asp and containing only hidden variables and then submits that form, using:
document.frmScreen.hdnNextScreen.value = next;
    document.frmScreen.hdnBypass.value = bypass
followed later by the
document.frmScreen.submit()
since next is login (all lower case) and not SAVE or EXIT.

You might want to focus on creating the frmScreen and copying its action.
censored.
Previous
Reply
Map
View

Click here to load this message in the networking platform