Click here to Skip to main content
14,664,588 members
Home » Discussions » ASP.NET
   

ASP.NET

 
QuestionDefaulting a DataView control with paging to the last page. Pin
Steven J Jowett16-Mar-10 7:00
MemberSteven J Jowett16-Mar-10 7:00 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
Sandeep Mewara16-Mar-10 7:15
mentorSandeep Mewara16-Mar-10 7:15 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 22:02
MemberASHISH GHADI18-Mar-10 22:02 
AnswerRe: Defaulting a DataView control with paging to the last page. Pin
ASHISH GHADI18-Mar-10 22:08
MemberASHISH GHADI18-Mar-10 22:08 
Questionif statement in the html code in aspx page Pin
laziale16-Mar-10 5:39
Memberlaziale16-Mar-10 5:39 
AnswerRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 5:41
MemberJHizzle16-Mar-10 5:41 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 5:43
Memberlaziale16-Mar-10 5:43 
GeneralRe: if statement in the html code in aspx page Pin
JHizzle16-Mar-10 5:50
MemberJHizzle16-Mar-10 5:50 
Ahhh ok. So, from my experience, you're probably going to want to hook into the databind event on a row, find your label control using fincontrol on the row being passed and then change the colour there. Example:

protected  void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{

Label myLabel = (Label)e.Row.FindControl("yourlabel");

if (myLabel.Text == "Jack")
{
    'change the colour here
}

}


There might be an easier way but that's just off the top of my head.
AnswerRe: if statement in the html code in aspx page Pin
Sandeep Mewara16-Mar-10 5:44
mentorSandeep Mewara16-Mar-10 5:44 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 5:50
Memberlaziale16-Mar-10 5:50 
AnswerRe: if statement in the html code in aspx page Pin
Sandeep Mewara16-Mar-10 5:51
mentorSandeep Mewara16-Mar-10 5:51 
GeneralRe: if statement in the html code in aspx page Pin
laziale16-Mar-10 6:03
Memberlaziale16-Mar-10 6:03 
AnswerRe: if statement in the html code in aspx page Pin
carlecomm16-Mar-10 17:30
Membercarlecomm16-Mar-10 17:30 
QuestionResponse.End() Pin
pss.srinivasan16-Mar-10 5:20
Memberpss.srinivasan16-Mar-10 5:20 
AnswerRe: Response.End() Pin
Sandeep Mewara16-Mar-10 5:38
mentorSandeep Mewara16-Mar-10 5:38 
AnswerRe: Response.End() Pin
carlecomm17-Mar-10 15:17
Membercarlecomm17-Mar-10 15:17 
QuestionWeb User Controls(ascx) Pin
jonhbt16-Mar-10 4:47
Memberjonhbt16-Mar-10 4:47 
AnswerRe: Web User Controls(ascx) Pin
Sandeep Mewara16-Mar-10 4:58
mentorSandeep Mewara16-Mar-10 4:58 
QuestionRe: Web User Controls(ascx) Pin
jonhbt16-Mar-10 5:11
Memberjonhbt16-Mar-10 5:11 
AnswerRe: Web User Controls(ascx) Pin
Sandeep Mewara16-Mar-10 5:40
mentorSandeep Mewara16-Mar-10 5:40 
Questionprocedure or function expects parameter which was not supplied Pin
ishwarya mahadevan16-Mar-10 4:42
Memberishwarya mahadevan16-Mar-10 4:42 
AnswerRe: procedure or function expects parameter which was not supplied Pin
Sandeep Mewara16-Mar-10 4:55
mentorSandeep Mewara16-Mar-10 4:55 
Questionhow to call gridview sort event explicitly? Pin
Tridip Bhattacharjee16-Mar-10 2:51
professionalTridip Bhattacharjee16-Mar-10 2:51 
AnswerRe: how to call gridview sort event explicitly? Pin
Neh.C16-Mar-10 3:15
MemberNeh.C16-Mar-10 3:15 
AnswerRe: how to call gridview sort event explicitly? Pin
Sandeep Mewara16-Mar-10 3:23
mentorSandeep Mewara16-Mar-10 3:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.