Back to Forums








View Full Version : Default button in an asp.net web site


fatboy
April 19th, 2005, 09:32 AM
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)

cash_site
April 22nd, 2005, 00:19 AM
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"