Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 Linkbutton color change in button click event
Posted by srinu on  7/8/2010 12:41:27 AM Category: Asp.Net 2.0
Add to my favorites
Email to friend
Hi friends,

iam new to,i have one doubt in is used in online exam.
i displayed questionid's in grdiview linkbutton control.
my requirement is
when user starts the exam Shade the active questionid(in linkbutton)
next button is there . green color is questionid "they have answered and not marked for review" .Red color is "answered…but marked for review". Normal black -- these have not been this review means user wants to see the answer when he takes the exam.

Please help me.please suggest me i need a source code.

thanks in advance.

Post Your Reply Post New Question

 Viewer's Reply
LinkButton CssClass
Answered By Moderator1 on 8/18/2010 12:44:19 AM

For every status of the question, you need to maintain a status Flag. Based on the Status Flag, you can change the LinkButton color by using the CssClass.
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Washington Technology
The JavaScript Anthology: 101 Essential Tips, Tricks & Hacks - Free 158 Page Preview
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!