AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
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 asp.net,i have one doubt in asp.net.this 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 answered.in 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
Hi,

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
Website Magazine
Introduction to Software Development
Washington Technology