Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    13

    Web.LoadURL with a querystring

    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?

  2. #2
    Join Date
    Dec 2005
    Posts
    13

    solved it myself thanks

    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);

  3. #3
    Join Date
    Oct 2005
    Location
    Brazil - Belo Horizonte
    Posts
    118
    Try this
    Code:
    Web.LoadURL("Web1", "http://www.mydomain.com/check-license.asp?code="..getLicenseCode.."");

Similar Threads

  1. Web.LoadURL close my project (exe)
    By unidenpr in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 07-06-2005, 11:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts