PDA

View Full Version : Web.LoadURL with a querystring


craigedmonds
01-30-2006, 09:07 PM
I am trying to pull a license key from the registry and place it into a variable called getLicenseCode, which I believe is correct.

Then I want to create a url with the license code at the end of the url (like i normally would in asp)

01. getLicenseCode = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\BlueBanana", "LicenseNumber", false);
02. Web.LoadURL("Web1", "http://www.mydomain/check-license.asp?code=", getLicenseCode);

I cant seem to be able to build the url properly though.

The Web.LoadURL function works but my browser goes to http://www.mydomain/check-license.asp?code= (no license code at the end)

Is the syntax on line 2 correct or am I missing something?

Any ideas?

craigedmonds
01-30-2006, 09:22 PM
built up the strurl and it works nicely.

hpe this helps someone.

01. getLicenseCode = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\BlueBanana", "LicenseNumber", false);
02. strurl = ("http://www.mydomain.com/check-license.asp?code="..getLicenseCode.."");
03. Web.LoadURL("Web1", strurl);

Daniel TM
01-31-2006, 09:55 PM
Try this
Web.LoadURL("Web1", "http://www.mydomain.com/check-license.asp?code="..getLicenseCode.."");