Results 1 to 3 of 3
  1. #1
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Faridabad, Haryana, India

    Exclamation Webpage in Vb.net


    I want to call a web page in vb with a parameter(which is a form component - form1.label1.text).

    I made the webpage in html and invoked it thru a button....with the code:

    the page opened but it didnt recognise the form component and the default page opened. It says the form1 is not declared.

    Here I need to know 2 things....How can I pass the parameter so that it opens the customised page and not the defualt page.

    Also, can I open the webpage inside the window form like in some type of window?? If yes, how?

    The HTML file is present in the solution itself. If you want me to change the type of file, so kindly give suggestions on how can i do that!!

    That'll be really helpful!!

    One more thing, how can I declare a variable as global, so that its accessible throughout the solution?


  2. #2
    Junior Member AarzaK's Avatar
    Join Date
    Jul 2006
    Hello friend!

    Programming webpage applications are not same as a windows/desktop applications.

    if you need pass a value from a your vb.net app to html site you need first find the control on the webpage.


    about the event under the windows form applications see this. hmm I am not sure, see this post for your help.


    and why dont pass the value thru the URL when this is opened, and when the site is open take this value from the URL and paste this to the control.

    hope this help.

    I Was Sent...

    Alyssa: Aarzak! Save the world!
    Aarzak: I am the only one who can save this world!
    The Last Battle - Sega(c) Games 1989

  3. #3
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Faridabad, Haryana, India



    the problem i m facing here is

    how do i call a webpage in VB?

    I tried doing so from the system.diagnostics.process.start() command but all it does is opens the code....but it doesnt process the page.

    So, in the end, here's wat i have:

    I hav a webpage which shows the information of the country. By default, I have set it to USA. Also, I added a textbox, this text box takes the name of a country and displays the information of that country on the same webpage. The value from this textbox gets stored into a variable called 'where' which is then used for further processing.

    Now, I have a VB project with me which I built using Visual Studio 2005. This project is connected with a database. This database has profiles of users and it also contains the details of the country. And all the details of the user displayed in labels.

    So, what I want to do is....when a user opens his profile or goes to the profile of someone else....we get to see the country details.

    I was planning, if something could be done as following:

    1. In my windows form, if something can be added like a picturebox which can display the country details.
    2. Whenever a profile opens, the value of the country is either passed to the webpage directly from the database or from the label.
    3. Then the webpage opens inside that box in the form.

    Last edited by codenamevirus; May 1st, 2007 at 01:23 PM.

Similar Threads

  1. Replies: 2
    Last Post: October 19th, 2004, 11:52 AM
  2. Webpage help !!
    By eXplict in forum Web Development
    Replies: 3
    Last Post: April 19th, 2004, 08:21 PM
  3. How to combine C++ and vb.net?
    By cyclops07 in forum AntiOnline's General Chit Chat
    Replies: 2
    Last Post: December 2nd, 2003, 07:28 PM
  4. I need help with some ebooks about asp.net and vb.net.
    By leethoong in forum Web Development
    Replies: 4
    Last Post: August 7th, 2002, 08:48 AM
  5. VB.net Tutorials????
    By ArmyOfOne in forum AntiOnline's General Chit Chat
    Replies: 4
    Last Post: March 19th, 2002, 02:25 AM

Posting Permissions

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