By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,988 Members | 1,360 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,988 IT Pros & Developers. It's quick & easy.

default button in child page?

P: n/a
I have a master page that has a button on it that is included on all of it's
child pages. On one of the chile pages, there is a login control. I would
like to have the login control become the default button when that page is in
use. Currently, if a user tries to log in, when they press the enter key,
the forms defaults to the actions of the button on the master page.

Any suggestios on how to fix this? I converted the login control to a
template, but i can't reference it as a default button in the form tag since
it is inside of the login control's template structure.

thanks for any assistance.
Mar 16 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Fabuloussites wrote:
I have a master page that has a button on it that is included on all
of it's child pages. On one of the chile pages, there is a login
control. I would like to have the login control become the default
button when that page is in use. Currently, if a user tries to log
in, when they press the enter key, the forms defaults to the actions
of the button on the master page.


Add this line in your page.load event handler:

Page.RegisterHiddenField("__EVENTTARGET", "btnYourButtonName")
Mar 16 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.