CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Guest

    Inserting a value into an HTML textbox

    If I have a text box on a web page like this
    <input type="text" size=20 name="textbox" id=textbox">
    How do I insert a value into the text box using vbscript?


  2. #2
    Join Date
    Oct 1999
    Location
    Florida
    Posts
    36

    Re: Inserting a value into an HTML textbox

    <input type="text" size=20 name="textbox" id=textbox" VALUE="Insert This">


    whg

  3. #3
    Guest

    Re: Inserting a value into an HTML textbox

    I need to do it with VBScript not by setting the value before hand. Using JavaScript it would be something like this.
    document.FormName.TextBox.value = "Hello World";



  4. #4
    Guest

    Re: Inserting a value into an HTML textbox

    <input type="text" size=20 name="textbox" id=textbox" VALUE="%varname&">





  5. #5
    Guest

    Re: Inserting a value into an HTML textbox

    Shouldn't your:
    document.FormName.TextBox.value = "Hello World";

    Actually be:
    document.FormName.TextBox.Text = "Hello World";



  6. #6
    Join Date
    Dec 1999
    Location
    india,hyderabad
    Posts
    7

    Re: Inserting a value into an HTML textbox

    use
    formname.textboxname.value ="XYZ" in any event..


    Sudharshaan

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

Featured