Welcome !
         

 Sending Value to Textbox using vbscript

Author Message
adibalaji

  • Total Posts : 2
  • Scores: 0
  • Reward points : 0
  • Joined: 8/25/2008
  • Status: offline
Sending Value to Textbox using vbscript Monday, August 25, 2008 9:52 PM (permalink)
0
 <script language ="vbscript">
        Dim TheForm
        Set TheForm = document.forms("form1")
        TheForm.TextBox1.Value = "Hai"
    </script>

This vbscript works fine in htm file but it doesnt work in asp.net webform.
This vbscript assigns a value to the textbox in html file. But it is not able to assign a value i asp.net page.
Can any one letme know how to assign value to textbox using vbscript
 
#1
    centauricw

    • Total Posts : 42
    • Scores: 2
    • Reward points : 0
    • Joined: 2/20/2006
    • Status: offline
    Re: Sending Value to Textbox using vbscript Monday, November 16, 2009 4:52 AM (permalink)
    0
    You can't use VBScript in an ASP.NET page.  You have to use VB.NET or C#.  If you need to use VBScript, you'll need to step back to classic ASP.
     
    #2
      april88t

      • Total Posts : 2
      • Scores: 0
      • Reward points : 0
      • Joined: 1/29/2013
      • Status: offline
      Re:Sending Value to Textbox using vbscript Tuesday, February 05, 2013 7:12 PM (permalink)
      0
      is that so??
       
      #3
        Online Bookmarks Sharing: Share/Bookmark

        Jump to:

        Current active users

        There are 0 members and 3 guests.

        Icon Legend and Permission

        • New Messages
        • No New Messages
        • Hot Topic w/ New Messages
        • Hot Topic w/o New Messages
        • Locked w/ New Messages
        • Locked w/o New Messages
        • Read Message
        • Post New Thread
        • Reply to message
        • Post New Poll
        • Submit Vote
        • Post reward post
        • Delete my own posts
        • Delete my own threads
        • Rate post

        2000-2017 ASPPlayground.NET Forum Version 3.9