Click here to Skip to main content
15,745,504 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionmake different menu for site Pin
farasat.mohammad22-May-10 18:37
farasat.mohammad22-May-10 18:37 
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 
Hi.

I have this updatepanel, with some fields that are getting filled from an ObjectDataSource.
One of the fiels are a date, and i want this date to be marked as red (and maybe in bold) if the date is one day from today or later.

Problem is, I have no clue on how to do this, since I am new to asp.net!
So is there a way to add a method that changes this specific ItemStyle-ForeColor based on the content i get from my datalayer?

This is my updatepanel:


<asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:GridView Width="1200" ID="gvTasks" runat="server" OnRowCreated="gvTasks_RowCreated" 

                DataSourceID="odsTaskList" GridLines="None" AutoGenerateColumns="false" CssClass="mGrid"
                PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" OnSelectedIndexChanged="GvTasks_SelectedIndexChanged"
                DataKeyNames="ID">

                <Columns>

                    <asp:BoundField DataField="Enddate2" HeaderText="Enddate" ItemStyle-ForeColor=RED-IF-OVERDUE-EXCEEDED ItemStyle-HorizontalAlign=Center>
                        <HeaderStyle Width="80px" HorizontalAlign="Center" />
                    <asp:BoundField>

                <Columns>
            <asp:GridView>
        <ContentTemplate>
    <asp:UpdatePanel>


Thanks alot!
AnswerRe: Changing color on Boundfield text content Pin
Sandeep Mewara22-May-10 10:25
mveSandeep Mewara22-May-10 10:25 
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 

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.