Enter Key submition is not raising the command event

J

Jitu

<form runat=server id=myform>
<AT_COMMON:SitePage id="DefaultPage" runAt="Server">
<itemTemplate>
<AT:UsersRegistration id="Registration" RunAt="Server"
UserFormName="Users/Users/UserForm.ascx"
SkinFileName="Users/Users/UserRegistration.ascx" />
</itemTemplate>
</AT_COMMON:SitePage>
</form>

Above is the hirarcy of my controls in the form.

1] In the control AT:UsersRegistration there is one control again
UserForm.
2] The AT:UsersRegistration has submit ('_submit') button and cancel
('_cancel') button.
3] I want to fire the _submit_command event while user submits form
using enter key. The Form gets submitted but, the event is not fired.
4] I've registered default command using
Page.RegisterHiddenField("__EVENTTARGET", "_submit")

Now See the difference in below hirarchy.

<form runat=server id=myform>
<AT:UsersRegistration id="Registration" RunAt="Server"
UserFormName="Users/Users/UserForm.ascx"
SkinFileName="Users/Users/UserRegistration.ascx" />
</itemTemplate>
</form>

1] the event gets fired in enter key submition.

================

Can anyone help me on this?

Thank you.

Jitu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top