|
-
Apr 2nd, 2003, 01:44 PM
#1
Thread Starter
Member
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
-
Apr 2nd, 2003, 01:51 PM
#2
Fanatic Member
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.
-
Apr 2nd, 2003, 01:54 PM
#3
Thread Starter
Member
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.
-
Apr 2nd, 2003, 01:59 PM
#4
Fanatic Member
you can pass it in the url string:
VB Code:
url = aspPageAddress & "?data1=" & var1 & "&data2=" & var2
myBrowser.Navigate2 url
and collect it in your asp application from the Request() object:
VB Code:
var1 = Request("data1")
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|