Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0 ASP:NET
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 19: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 at 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
0 OriginalGriff 325
1 Sergey Alexandrovich Kryukov 289
2 CPallini 275
3 DamithSL 260
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2014
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