PC Review


Reply
Thread Tools Rate Thread

Button not being pushed on Enter

 
 
tshad
Guest
Posts: n/a
 
      11th Aug 2005
I have a button:

<asp:Button ID="SendEmail" text=" Send " runat="server"
onClick="sendEmail_click" AlternateText="Send Email"></asp:Button>

It is the only button on the page. It works fine when I press it.

But it doesn't go to the SendEmail_Click routine if I just hit enter.

What would cause it not to work correctly? I don't have any other buttons
on the page and I don't have this problem with my other pages.

Thanks,

Tom


 
Reply With Quote
 
 
 
 
tshad
Guest
Posts: n/a
 
      11th Aug 2005
Actually,

What seems to be happening is that it is going to the customValidator, but
not to the onClick procedure, which is does if you press the button.

Tom

"tshad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a button:
>
> <asp:Button ID="SendEmail" text=" Send " runat="server"
> onClick="sendEmail_click" AlternateText="Send Email"></asp:Button>
>
> It is the only button on the page. It works fine when I press it.
>
> But it doesn't go to the SendEmail_Click routine if I just hit enter.
>
> What would cause it not to work correctly? I don't have any other buttons
> on the page and I don't have this problem with my other pages.
>
> Thanks,
>
> Tom
>



 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      12th Aug 2005
You could use this free control to solve the problem.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here are a couple good articles on the subject:
http://www.allasp.net/enterkey.aspx
http://www.aspnetpro.com/features/20...200406so_f.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


"tshad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a button:
>
> <asp:Button ID="SendEmail" text=" Send " runat="server"
> onClick="sendEmail_click" AlternateText="Send Email"></asp:Button>
>
> It is the only button on the page. It works fine when I press it.
>
> But it doesn't go to the SendEmail_Click routine if I just hit enter.
>
> What would cause it not to work correctly? I don't have any other buttons
> on the page and I don't have this problem with my other pages.
>
> Thanks,
>
> Tom
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Who pushed the submit button =?Utf-8?B?S2FyZW4=?= Microsoft Frontpage 2 23rd May 2007 10:26 PM
Tell if back button pushed? tshad Microsoft ASP .NET 1 23rd Mar 2007 05:10 PM
Changing the look of a button when pushed. =?Utf-8?B?QmlnIERyZQ==?= Microsoft Frontpage 7 24th Oct 2005 09:51 AM
Leave button pushed in Jonathan Blitz Microsoft Access Forms 2 5th Aug 2004 08:39 PM
Can you tell what button is pushed? Jim Microsoft Frontpage 3 28th Jul 2003 05:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 PM.