Jul 20, 2005 #1 sajidi99 Programmer Jun 7, 2005 53 SE Hi, Does anyone know how to select (or Activate/Highlight) a Drop Down List in the C # code behind? Thx Saj
Hi, Does anyone know how to select (or Activate/Highlight) a Drop Down List in the C # code behind? Thx Saj
Jul 20, 2005 #2 VBakias MIS May 24, 2005 219 GR What do you mean with "select"? Give it focus pressing tab key or hiting a button ?? Upvote 0 Downvote
Jul 20, 2005 Thread starter #3 sajidi99 Programmer Jun 7, 2005 53 SE Hi, Thx for reply. Yes I mean "give it focus". I want to do this in an image button click event of the Code Behind. Thx Saj Upvote 0 Downvote
Hi, Thx for reply. Yes I mean "give it focus". I want to do this in an image button click event of the Code Behind. Thx Saj
Jul 20, 2005 #4 vbkris Programmer Jan 20, 2003 5,994 IN yeah i think he does, u have to use focus() method... Known is handfull, Unknown is worldfull Upvote 0 Downvote
Jul 20, 2005 Thread starter #5 sajidi99 Programmer Jun 7, 2005 53 SE Hi vbkris, "Known is handfull, Unknown is worldfull" wat that means dude? Yes, javascript focus method will do .... but how in the click event?? Cheers Saj Upvote 0 Downvote
Hi vbkris, "Known is handfull, Unknown is worldfull" wat that means dude? Yes, javascript focus method will do .... but how in the click event?? Cheers Saj
Jul 20, 2005 #6 ca8msm Programmer May 9, 2002 11,327 GB Use Attributes.Add ____________________________________________________________ Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results. Upvote 0 Downvote
Use Attributes.Add ____________________________________________________________ Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
Jul 20, 2005 #7 vbkris Programmer Jan 20, 2003 5,994 IN e.g.: <body onload="document.forms[0].ASD.focus()"> ASD must be the name of the control. Warning: this metod will not work if ASD is a sub control (e.g: within a datagrid). to overcome it i guess u have to use the ClientId method... Known is handfull, Unknown is worldfull Upvote 0 Downvote
e.g.: <body onload="document.forms[0].ASD.focus()"> ASD must be the name of the control. Warning: this metod will not work if ASD is a sub control (e.g: within a datagrid). to overcome it i guess u have to use the ClientId method... Known is handfull, Unknown is worldfull
Jul 20, 2005 Thread starter #8 sajidi99 Programmer Jun 7, 2005 53 SE hi vbkris, thx for reply I know wat u mean but the problem is that, i want to focus this from Code Behind ... (after performing some operations on server) Cheers Saj Upvote 0 Downvote
hi vbkris, thx for reply I know wat u mean but the problem is that, i want to focus this from Code Behind ... (after performing some operations on server) Cheers Saj
Jul 20, 2005 #9 vbkris Programmer Jan 20, 2003 5,994 IN generate the script in code behind, i.e. use Page.RegisterStartupScript(1,"<script>document.forms[0].ASD.focus()</script>") Known is handfull, Unknown is worldfull Upvote 0 Downvote
generate the script in code behind, i.e. use Page.RegisterStartupScript(1,"<script>document.forms[0].ASD.focus()</script>") Known is handfull, Unknown is worldfull
Jul 20, 2005 Thread starter #10 sajidi99 Programmer Jun 7, 2005 53 SE Thanx for your help vbkris Cheers Saj Upvote 0 Downvote
Jul 20, 2005 #11 vbkris Programmer Jan 20, 2003 5,994 IN no problemmo... Known is handfull, Unknown is worldfull Upvote 0 Downvote