Click here to Skip to main content
12,512,548 members (25,816 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
hi,

I have master and child relationship that is in master page i have the logout image button and in child page textbox and GetReport button to get records from database here i am getting problem that is when i hit enter key while cursor is in textbox then the enter key focus is going to master page logout button instead of child page button
so how to set enter focus on child page button please give solution for this problem..


Thanks&Regards,

Raghu.
Posted 19-Nov-12 18:47pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Check your page-elements ids in chrome -- inspect element.
while using jQuery with master page you should apply <%=id.clientId%>
for exp:
$('#<%=myBtn.ClientID%>').show()
  Permalink  
Comments
Madhugundi 21-Nov-12 5:43am
   
thanks
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

i add a panel and set the panel property as defaultbutton=childbuttonid then it works fine.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160929.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100