954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to Transfer value from vb.net to html page

I dont know this programe name what ever u say........

Suppose you have a html page save in c:\first.html

first.html page contain two text boxes one for username and password and one button whenever we click on button it validate the username and password which is already pass in the source code...........

Suppose you have a Form in vb.net which have two text boxes and button in vb.net when u will click on button that first.html page open in a browswer and i m using this property:-

system.diagonistics.process.start("c:/first.html")


=========
Here my question Starts
================

I want to know that in vb.net there are two text boxes .......at run time we put the values in the text boxes and when we click on button that html page open and validate the username and password the from the vb.net .........


-------------------------

or simply u can say that how we transer vb.net value to html page.........

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

2 Days go no one replies why

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Funny, I have the exact opposite problem, but I found a work around. I had to transfer a value from a html page to Visual Basic, so I made a bat file and forced my browser to launch it when the form was submitted. Then the bat file carried out the value to a registry key, and my Visual Basic application retrieved it from the registry and deleted the key. I have no idea how to do it in reverse, though, but hopefully my info could trigger some idea in your mind that will work :)

iSoftware
Newbie Poster
5 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,
I will show you how to do this using PHP. I dont know if it works using HTML files (maybe using JavaScript to catch the values?)

Dim sUrl As String = ""

        sUrl = "http://127.0.0.1/passvars/test.php?"
        sUrl &= "user=" & txtUser.Text & "&"
        sUrl &= "pass=" & txtPass.Text
        System.Diagnostics.Process.Start(sUrl)

Then, you have an URL like this:

http://127.0.0.1/passvars/test.php?user=martin&pass=123456


Then, inside the PHP file (in this case test.php) you must code:

<?php
	$myUser = $HTTP_GET_VARS['user'];
	$myPassword = $HTTP_GET_VARS['pass'];	
	echo ('User:     ' . $myUser . '');
	echo ('Password: ' . $myPassword . '');
?>

I dont know how far do you want to go. But using this, you can take the values passed from the VB application inside the PHP file (I guess you can do this in a HTML file too).

Hope it helps.
Martín

dmf1978
Junior Poster in Training
51 posts since Aug 2006
Reputation Points: 18
Solved Threads: 7
 

Hi,
Is your problem solved?

dmf1978
Junior Poster in Training
51 posts since Aug 2006
Reputation Points: 18
Solved Threads: 7
 

sorry for late reply bcz of my practicals........

but i m not understand anything how php connected with vb.net and i have no knowledge of php.....could you help how i m connect vb.net and php ..........thanks

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

No one knows the anser or you have no time for writing here........plzz do it fast plzz

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

No one interested in giving solution......

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,
Just use it

System.Diagonistics.Process.Start("c:\first.html?var1=value&var2=value")


Hope it helps.

dmf1978
Junior Poster in Training
51 posts since Aug 2006
Reputation Points: 18
Solved Threads: 7
 

I want to make this project download this:- and go through u will get what i m looking for

http://rapidshare.com/files/134351459/forum_poster_trial_version.rar.html

This is demo version but i m looking for full version through vb.net


project summary.:- we have may forum in World Wide Web like
1) http://www.katzforums.com/
2) http://bayw.org/

and many others

For ex We have to sumbit our downloads , and our articals in these forum one by one and visit each forum again and again suppose we have to post same artical in 50 forum then how disgusting to visit each forum one by one and posting same artical again and again ...........if we make a software in vb.net that will post our download in 50 forums at a time.......then how good is that.....so try to make this .........and Enjoy coding

Email me :- [email]yash.mehta2007@gmail.com[/email]

my orkut profile:- http://www.orkut.co.in/Profile.aspx?uid=8498302396788022155

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

2 Days go no one Replying to My Problem You are understand my problem or not........

CatchItBaby
Newbie Poster
10 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You