943,923 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 3009
  • VB.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 19th, 2008
0

How to Transfer value from vb.net to html page

Expand Post »
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.........
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008
Jul 20th, 2008
0

Re: How to Transfer value from vb.net to html page

2 Days go no one replies why
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008
Jul 20th, 2008
0

Re: How to Transfer value from vb.net to html page

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
iSoftware is offline Offline
5 posts
since Jul 2008
Jul 20th, 2008
0

Re: How to Transfer value from vb.net to html page

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?)
VB Syntax (Toggle Plain Text)
  1. Dim sUrl As String = ""
  2.  
  3. sUrl = "http://127.0.0.1/passvars/test.php?"
  4. sUrl &= "user=" & txtUser.Text & "&"
  5. sUrl &= "pass=" & txtPass.Text
  6. System.Diagnostics.Process.Start(sUrl)
Then, you have an URL like this:
VB.NET Syntax (Toggle Plain Text)
  1. 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 Syntax (Toggle Plain Text)
  1. <?php
  2. $myUser = $HTTP_GET_VARS['user'];
  3. $myPassword = $HTTP_GET_VARS['pass'];
  4. echo ('User: ' . $myUser . '<br>');
  5. echo ('Password: ' . $myPassword . '<br>');
  6. ?>
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
Reputation Points: 18
Solved Threads: 7
Junior Poster in Training
dmf1978 is offline Offline
51 posts
since Aug 2006
Jul 24th, 2008
0

Re: How to Transfer value from vb.net to html page

Hi,
Is your problem solved?
Reputation Points: 18
Solved Threads: 7
Junior Poster in Training
dmf1978 is offline Offline
51 posts
since Aug 2006
Jul 26th, 2008
0

Re: How to Transfer value from vb.net to html page

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008
Jul 30th, 2008
0

Re: How to Transfer value from vb.net to html page

No one knows the anser or you have no time for writing here........plzz do it fast plzz
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008
Aug 1st, 2008
0

Re: How to Transfer value from vb.net to html page

No one interested in giving solution......
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008
Aug 1st, 2008
0

Re: How to Transfer value from vb.net to html page

Hi,
Just use it
VBNET Syntax (Toggle Plain Text)
  1. System.Diagonistics.Process.Start("c:\first.html?var1=value&var2=value")

Hope it helps.
Reputation Points: 18
Solved Threads: 7
Junior Poster in Training
dmf1978 is offline Offline
51 posts
since Aug 2006
Aug 2nd, 2008
0

Re: How to Transfer value from vb.net to html page

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

http://rapidshare.com/files/13435145...rsion.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 :- yash.mehta2007@gmail.com

my orkut profile:- http://www.orkut.co.in/Profile.aspx?...02396788022155
Reputation Points: 10
Solved Threads: 0
Newbie Poster
CatchItBaby is offline Offline
10 posts
since Jul 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Need help for adding record to database using vb.net
Next Thread in VB.NET Forum Timeline: checking if a file is open using VB.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC