Results 1 to 2 of 2

Thread: Default button in an asp.net web site

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Location
    Brownhills, UK
    Posts
    1

    Default button in an asp.net web site

    Being new to this web design thing, I am sorting problems as they arise.

    Current problem...

    I have a login screen to restrict access to certain pages, two fields on screen username and password, two buttons, login and cancel.

    I want to make the login button the default button in the event of return being pressed.

    Question is...how?

    I can't seem to find a solution, there has to be one, every one else is doing it!!

    Regards.

    Bryan
    (aka fatboy, twister)

  2. #2
    Security Intelligence TZ Veteran cash_site's Avatar
    Join Date
    Jul 2002
    Location
    Software Paradise
    Posts
    3,385
    It is a property set on you form design... are you using an IDE such as Visual Studio? Check the properties of the form or even the button. I think the property name is called "Accept = CMD_OK" and assign it to your "Button Name"

    --- 0wN3D by 3gG ---

Posting Permissions

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