Click here to Skip to main content
15,891,744 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Bootstrap or Metro-UI Pin
Afzaal Ahmad Zeeshan20-Mar-16 23:26
professionalAfzaal Ahmad Zeeshan20-Mar-16 23:26 
AnswerRe: Bootstrap or Metro-UI Pin
jkirkerx21-Mar-16 10:12
professionaljkirkerx21-Mar-16 10:12 
GeneralRe: Bootstrap or Metro-UI Pin
xiecsuk22-Mar-16 0:15
xiecsuk22-Mar-16 0:15 
GeneralRe: Bootstrap or Metro-UI Pin
jkirkerx22-Mar-16 7:17
professionaljkirkerx22-Mar-16 7:17 
QuestionHow to manual login control in ASP.net Pin
hmanhha18-Mar-16 16:59
hmanhha18-Mar-16 16:59 
AnswerRe: How to manual login control in ASP.net Pin
Afzaal Ahmad Zeeshan19-Mar-16 23:01
professionalAfzaal Ahmad Zeeshan19-Mar-16 23:01 
QuestionMVC Razor, back to Date and Times, List of Items, separated by Today, Tomorrow, etc. More efficient way of writing this Pin
jkirkerx18-Mar-16 10:13
professionaljkirkerx18-Mar-16 10:13 
AnswerRe: MVC Razor, back to Date and Times, List of Items, separated by Today, Tomorrow, etc. More efficient way of writing this Pin
Richard Deeming21-Mar-16 3:03
mveRichard Deeming21-Mar-16 3:03 
How about something like this:
HTML
@foreach (var day in Model.GroupBy(i => i.Date_Start.Date))
{
    <div class="jobDateHeader">
    if (day.Key == today)
    {
        <span class="label label-primary">Today - @day.Key.ToString("dddd, MMMM d, yyyy")</span>
    }
    else if (day.Key == today.AddDays(1))
    {
        <span class="label label-primary">Tomorrow - @day.Key.ToString("dddd, MMMM d, yyyy")</span>
    }
    else
    {
        <span class="label label-primary">@day.Key.ToString("dddd, MMMM d, yyyy")</span>
    }
    </div>
    
    @foreach (var item in day)
    {
        // Build the list item here
    }
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: MVC Razor, back to Date and Times, List of Items, separated by Today, Tomorrow, etc. More efficient way of writing this Pin
jkirkerx21-Mar-16 9:18
professionaljkirkerx21-Mar-16 9:18 
GeneralRe: MVC Razor, back to Date and Times, List of Items, separated by Today, Tomorrow, etc. More efficient way of writing this Pin
jkirkerx21-Mar-16 9:35
professionaljkirkerx21-Mar-16 9:35 
GeneralRe: MVC Razor, back to Date and Times, List of Items, separated by Today, Tomorrow, etc. More efficient way of writing this Pin
deepankarbhatnagar21-Mar-16 19:22
professionaldeepankarbhatnagar21-Mar-16 19:22 
Questionwhat is service bus and azure service bus Pin
Tridip Bhattacharjee18-Mar-16 9:10
professionalTridip Bhattacharjee18-Mar-16 9:10 
AnswerRe: what is service bus and azure service bus Pin
Richard MacCutchan18-Mar-16 23:08
mveRichard MacCutchan18-Mar-16 23:08 
Questionwhat info is stored in form auth cookie Pin
Tridip Bhattacharjee18-Mar-16 9:09
professionalTridip Bhattacharjee18-Mar-16 9:09 
AnswerRe: what info is stored in form auth cookie Pin
Richard MacCutchan18-Mar-16 23:07
mveRichard MacCutchan18-Mar-16 23:07 
QuestionError too many changes at once in directory from the filesystemwatcher Pin
byka17-Mar-16 2:47
byka17-Mar-16 2:47 
AnswerRe: Error too many changes at once in directory from the filesystemwatcher Pin
Sascha Lefèvre17-Mar-16 2:51
professionalSascha Lefèvre17-Mar-16 2:51 
AnswerRe: Error too many changes at once in directory from the filesystemwatcher Pin
Richard MacCutchan17-Mar-16 2:58
mveRichard MacCutchan17-Mar-16 2:58 
Questionasp.net MVC, c# Date and Time, not DateTime Pin
jkirkerx16-Mar-16 7:22
professionaljkirkerx16-Mar-16 7:22 
AnswerRe: asp.net MVC, c# Date and Time, not DateTime [ Sort of Solved] Pin
jkirkerx18-Mar-16 8:42
professionaljkirkerx18-Mar-16 8:42 
Question0x800a138f - Microsoft JScript runtime error: Object expected Pin
Redvan14-Mar-16 3:52
Redvan14-Mar-16 3:52 
QuestionRe: 0x800a138f - Microsoft JScript runtime error: Object expected Pin
ZurdoDev14-Mar-16 4:18
professionalZurdoDev14-Mar-16 4:18 
AnswerRe: 0x800a138f - Microsoft JScript runtime error: Object expected Pin
Redvan14-Mar-16 5:42
Redvan14-Mar-16 5:42 
AnswerRe: 0x800a138f - Microsoft JScript runtime error: Object expected Pin
ZurdoDev14-Mar-16 5:50
professionalZurdoDev14-Mar-16 5:50 
GeneralRe: 0x800a138f - Microsoft JScript runtime error: Object expected Pin
Redvan14-Mar-16 6:37
Redvan14-Mar-16 6:37 

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.