Results 1 to 2 of 2

Thread: VB and ASP exchanging variables

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Location
    United Kingdom
    Posts
    4

    Lightbulb

    If I wanted to make a program that could exchange variables between ASP and a VB program how would I do it?

    Say, if I wanted to submit some variables to a remote ASP page and then the ASP script will process the info and input it to an access database. If you can point me in the direction of a tutorial that will show me how to exchange data or if you can tell me I would be most aprreciative, thanks.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Hi,
    You can submit variable to a ASP by specifying the url and adding the variables at the end of the url. Here is an example.

    Code:
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hWnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
    Const SW_SHOWNORMAL = 1
    Private Sub Command1_Click()
    lReturn = ShellExecute(hWnd, "open", "http://music.domaindlx.com/datique/mailinglist.asp?name=Danial+Atique&[email protected]", vbNull, vbNull, SW_SHOWNORMAL)
    End Sub
    http://music.domaindlx.com/datique/[email protected]

    In the ASP i have something like this
    Code:
    dim name 
    dim email
    
    name=request.querystring("name")
    email=request.querystring("email")
    Hope this helps
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

Posting Permissions

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



Click Here to Expand Forum to Full Width