PC Review


Reply
Thread Tools Rate Thread

asp.net problem

 
 
Aaron
Guest
Posts: n/a
 
      10th May 2004
I'm new to asp.net I don't know if this is the way it is designed but when i
have a textbox and a button, typing in some text and hitting the enter key
will not submit the data, i would have to click the button in order to
submit. In normal html page i can just hit the enter key it will submit the
form. is there a way around this.

thanks


 
Reply With Quote
 
 
 
 
clintonG
Guest
Posts: n/a
 
      10th May 2004
The ASP.NET architecture is very different from 'normal' HTML.
We're now working with a full-fledged programming language based
on Object Oriented design principles.

All of the official documentation is at msdn.microsoft.com but I
suggest you pick up a 'beginners' book or two or a dozen or so...

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET (E-Mail Removed)
URL http://www.metromilwaukee.com/clintongallagher/



"Aaron" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> I'm new to asp.net I don't know if this is the way it is designed but

when i
> have a textbox and a button, typing in some text and hitting the enter

key
> will not submit the data, i would have to click the button in order to
> submit. In normal html page i can just hit the enter key it will

submit the
> form. is there a way around this.
>
> thanks
>
>



 
Reply With Quote
 
Steve C. Orr [MVP, MCSD]
Guest
Posts: n/a
 
      10th May 2004
You can intercept the client side enter keypress event of the text box and
then click do what you want using javascript code.
Here's a good example:
http://www.kamp-hansen.dk/pages/show...d=21&menuid=18

You could also try using this free control.
http://www.metabuilders.com/tools/DefaultButtons.aspx

And here's a good article on the subject:
http://www.allasp.net/enterkey.aspx

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


"Aaron" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'm new to asp.net I don't know if this is the way it is designed but when

i
> have a textbox and a button, typing in some text and hitting the enter key
> will not submit the data, i would have to click the button in order to
> submit. In normal html page i can just hit the enter key it will submit

the
> form. is there a way around this.
>
> thanks
>
>



 
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
problem after problem after problem - winXP wont start! =?Utf-8?B?TWF2aXJpY2s=?= Windows XP Help 2 23rd Apr 2006 02:55 PM
Microsoft Access Object Library Version Problem (Form VBA Code Problem) Don Microsoft Access Form Coding 2 8th Mar 2004 01:00 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Hardware 2 5th Feb 2004 10:22 PM
hibernation problem! problem!, Power Option problem! Farzad Hayati Microsoft Windows 2000 Advanced Server 2 5th Feb 2004 10:22 PM
Outlook 2002 connector: problem connecting with Domino server because of NAMELookup2 problem Jean-Paul Smeets Microsoft Outlook 2 26th Sep 2003 10:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:31 PM.