DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Mon, 20 Aug 2007 17:49:58 -0000,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    mazdotnet
          2    Steve C. Orr [MCSD, MVP, CSM, ASP Insider]


Auto submit when pressing enter   
Hi,

We have a internal site using Master Pages that has a header (web user
control) on top of every page with a search feature. This search is
basically a textbox and a search button beside it which works when you
click on the submit button. Is it possible to change it so that it's
automatically submitted when you click enter in the textbox?

Thanks
M.
Date:Mon, 20 Aug 2007 17:49:58 -0000   Author:  

Re: Auto submit when pressing enter   
In ASP.NET 2.0 the panel control has a new DefaultButton property.
Set this property to the ID of a button control and it will be the default
button when focus is in that panel.  So the enter key would work as you 
desire.

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


"mazdotnet"  wrote in message 
news:1187632198.920045.237740@a39g2000hsc.googlegroups.com...

> Hi,
>
> We have a internal site using Master Pages that has a header (web user
> control) on top of every page with a search feature. This search is
> basically a textbox and a search button beside it which works when you
> click on the submit button. Is it possible to change it so that it's
> automatically submitted when you click enter in the textbox?
>
> Thanks
> M.
> 
Date:Mon, 20 Aug 2007 11:39:09 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us