How to highlight the selected item in asp.net control

Posted by Bravi under ASP.NET on 7/5/2011 | Points: 10 | Views : 1649 | Status : [Member] | Replies : 5
How to highlight the selected item in asp.net control




Responses

Posted by: Susanthampy on: 7/5/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Which ASP.Net Control?

Regards,
Susan

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Lakn2 on: 7/5/2011 [Member] Starter | Points: 25

Up
0
Down
try this

http://www.codeproject.com/KB/webforms/HighlightSelectDataList.aspx

Thanks&Regards
LakshmiNarayana Nalluri.

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tijut2k on: 7/5/2011 [Member] Starter | Points: 25

Up
0
Down
Dont know which control using?

by an assumption:-
Highlight Current Page in ASP.NET GridView Pager
http://www.devcurry.com/2011/01/highlight-current-page-in-aspnet.html

Best Regard's
Tiju Thankachan

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Seenuvasan on: 7/6/2011 [Member] Starter | Points: 25

Up
0
Down
Hi,

I think below code will helpful to you.

Ex:
<asp:TextBox id="Textbox1" runat="server"  onfocus="Highlight(this.id);"></asp:TextBox>

u can highlight the textbox using js.
<script type="text/javascript">

function Highlight(txtid)
{
document.getElementbyId(txtid).style.borderColor="red";
document.getElementbyId(txtid).style.borderStyle="solid";
}

</script>


Thanks,
Seen

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 7/6/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Refer ths link,

http://forums.asp.net/p/1426000/3180275.aspx

Regards,
Susan

Bravi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response