How do I refernce a textbox from a script file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sheena777
    New Member
    • Dec 2007
    • 73

    How do I refernce a textbox from a script file?

    How can you reference a textbox from a vb.net windows application. I am trying to pass a variable to the script file. I have a textbox on a windows application form and a button and when the user clicks the button I want to run a script which will refernce the textbox inorder to get the value from it.
  • dip_developer
    Recognized Expert Contributor
    • Aug 2006
    • 648

    #2
    Originally posted by Sheena777
    How can you reference a textbox from a vb.net windows application. I am trying to pass a variable to the script file. I have a textbox on a windows application form and a button and when the user clicks the button I want to run a script which will refernce the textbox inorder to get the value from it.
    which script???
    in javascript simply......
    document.getEle mentById("TextB ox1").value
    if you want this value to be passed to a function on a buttob click(or any event u want) then try something like
    onclick=myFunct ion(Textbox1.Te xt)

    Comment

    Working...