Click here to Skip to main content
15,889,484 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: make different menu for site Pin
Sandeep Mewara22-May-10 20:39
mveSandeep Mewara22-May-10 20:39 
GeneralRe: make different menu for site Pin
farasat.mohammad23-May-10 19:46
farasat.mohammad23-May-10 19:46 
QuestionProblem with declaring namespace Pin
Eagle3222-May-10 12:21
Eagle3222-May-10 12:21 
QuestionCount number of records from a tabel and display result in a gridview column at run time. Pin
Eagle3222-May-10 11:58
Eagle3222-May-10 11:58 
AnswerRe: Count number of records from a tabel and display result in a gridview column at run time. Pin
Sandeep Mewara22-May-10 20:35
mveSandeep Mewara22-May-10 20:35 
GeneralRe: Count number of records from a tabel and display result in a gridview column at run time. Pin
Eagle3223-May-10 1:32
Eagle3223-May-10 1:32 
QuestionChanging color on Boundfield text content Pin
lvq68422-May-10 8:21
lvq68422-May-10 8:21 
AnswerRe: Changing color on Boundfield text content Pin
Sandeep Mewara22-May-10 10:25
mveSandeep Mewara22-May-10 10:25 
lvq684 wrote:
I have this updatepanel

It does not matter in your case.

lvq684 wrote:
i want this date to be marked as red (and maybe in bold) if the date is one day from today or later

You need to use RowDataBound of GridView for this.
C#
protected void GridView_RowDataBound(Object sender, GridViewRowEventArgs e)
{  
   DataControlRowType rtype = e.Row.RowType;   
   if (rtype == DataControlRowType.DataRow && rtype != DataControlRowType.Footer 
       && rtype != DataControlRowType.Separator && rtype != DataControlRowType.Header 
       && rtype != DataControlRowType.Pager)   
   {  
      //Logic to get the color needed to be shown    
      Calendar cd = e.Row.FindControl("myCal") as Calendar;
      //Set whatever color you need to!
      cd.ForeColor = Color.Red;
   }
}

GeneralRe: Changing color on Boundfield text content Pin
lvq68422-May-10 11:48
lvq68422-May-10 11:48 
GeneralRe: Changing color on Boundfield text content Pin
Sandeep Mewara22-May-10 20:31
mveSandeep Mewara22-May-10 20:31 
GeneralRe: Changing color on Boundfield text content Pin
lvq68422-May-10 20:49
lvq68422-May-10 20:49 
Questionhow to draw vertical rule in asp.net Pin
developerit22-May-10 3:28
developerit22-May-10 3:28 
AnswerRe: how to draw vertical rule in asp.net Pin
Yusuf22-May-10 7:01
Yusuf22-May-10 7:01 
AnswerRe: how to draw vertical rule in asp.net Pin
Tej Aj23-May-10 21:24
Tej Aj23-May-10 21:24 
Questionxml to gridview Pin
Tomlor198022-May-10 3:21
Tomlor198022-May-10 3:21 
AnswerCross post Pin
Not Active22-May-10 3:32
mentorNot Active22-May-10 3:32 
RantRe: xml to gridview Pin
dan!sh 22-May-10 5:59
professional dan!sh 22-May-10 5:59 
QuestionLooking for a pattern for managing URL in a Web Application Pin
Nadia Monalisa22-May-10 2:51
Nadia Monalisa22-May-10 2:51 
AnswerRe: Looking for a pattern for managing URL in a Web Application Pin
Not Active22-May-10 3:10
mentorNot Active22-May-10 3:10 
GeneralRe: Looking for a pattern for managing URL in a Web Application Pin
Nadia Monalisa22-May-10 3:15
Nadia Monalisa22-May-10 3:15 
GeneralRe: Looking for a pattern for managing URL in a Web Application Pin
Not Active22-May-10 3:23
mentorNot Active22-May-10 3:23 
QuestionPrint Button Not Working well Pin
reogeo200821-May-10 21:38
reogeo200821-May-10 21:38 
AnswerRe: Print Button Not Working well Pin
Viral Upadhyay22-May-10 0:40
Viral Upadhyay22-May-10 0:40 
AnswerRe: Print Button Not Working well Pin
Andy_L_J22-May-10 0:51
Andy_L_J22-May-10 0:51 
AnswerRe: Print Button Not Working well Pin
Yusuf22-May-10 1:13
Yusuf22-May-10 1:13 

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.