Results 1 to 2 of 2

Thread: Using Javascript in an aspx page

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Using Javascript in an aspx page

    I have a .net text field and a .net button on a form.

    When the user leaves the text field server side VB.net code fires to check if anything has been entered and if it has, enables the button.

    The problem with this is that it has to do the round trip to the server.

    How would I use javascript to do this in a .net page ?
    Can I control a .net textbox with javascript ?

    TIA

    Parksie

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Yes, you can use JS to perform client-side events. .Net server controls come just as html to the browser. Its only when it goes back that the .ASP application builds the page and the controls and compares them.

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