Results 1 to 4 of 4

Thread: Web Page

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Posts
    39

    Web Page

    I am trying to allow the user to view a webpage using the internet explorer component. The web page is created using asp and gets information from a database. Is there any way to get these values in the stand alone program and then pass them to a web page?

    For example:
    I read A from a database in my program. I then want the web page to display X if A = true or Y if false where X and Y are chosen by an if statement in the same webpage.

    Note: It is imperative that there be one webpage. I can't split X and Y

  2. #2
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    this is unclear. where is your database located? at the sever end or at the client end? what application looks up the database - the server app or the client app? is the client application supposed to request one page or another depending on some value in the database, or is it that the iis script generates one page or another depending on the value in the database?
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2002
    Posts
    39
    Okay, here it goes again: The standalone app is pulling a value from the database. I want to know if there is a way to pass the value from the application to the webpage.

  4. #4
    Fanatic Member
    Join Date
    Feb 2003
    Location
    Los Angeles, CA
    Posts
    681
    you can pass it in the url string:
    VB Code:
    1. url = aspPageAddress & "?data1=" & var1 & "&data2=" & var2
    2. myBrowser.Navigate2 url
    and collect it in your asp application from the Request() object:
    VB Code:
    1. var1 = Request("data1")
    2. var2 = Request("data2")
    another alternative would be to pass it as POST data, but it requires some more work. i use to go for POST data whenever i have to upload binary values or the request string would get way too long.
    there are 2 reasons why i leave my work unfinished:
    (1) i'm getting old.

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