Click here to Skip to main content
11,494,851 members (65,496 online)

.NET Framework

 
AnswerRe: Adding a flash webcam photo capture Pin
Eddy Vluggen17-Dec-12 1:42
memberEddy Vluggen17-Dec-12 1:42 
GeneralRe: Adding a flash webcam photo capture Pin
lhsunshine17-Dec-12 2:55
memberlhsunshine17-Dec-12 2:55 
AnswerRe: Adding a flash webcam photo capture Pin
Eddy Vluggen17-Dec-12 3:01
memberEddy Vluggen17-Dec-12 3:01 
GeneralRe: Adding a flash webcam photo capture Pin
lhsunshine17-Dec-12 3:07
memberlhsunshine17-Dec-12 3:07 
QuestionRe: Adding a flash webcam photo capture Pin
Eddy Vluggen17-Dec-12 3:09
memberEddy Vluggen17-Dec-12 3:09 
AnswerRe: Adding a flash webcam photo capture Pin
lhsunshine17-Dec-12 14:49
memberlhsunshine17-Dec-12 14:49 
AnswerRe: Adding a flash webcam photo capture Pin
Eddy Vluggen18-Dec-12 3:01
memberEddy Vluggen18-Dec-12 3:01 
GeneralRe: Adding a flash webcam photo capture Pin
lhsunshine18-Dec-12 19:03
memberlhsunshine18-Dec-12 19:03 
GeneralRe: Adding a flash webcam photo capture Pin
lhsunshine18-Dec-12 20:18
memberlhsunshine18-Dec-12 20:18 
GeneralRe: Adding a flash webcam photo capture Pin
Eddy Vluggen18-Dec-12 21:40
memberEddy Vluggen18-Dec-12 21:40 
GeneralRe: Adding a flash webcam photo capture Pin
lhsunshine19-Dec-12 3:28
memberlhsunshine19-Dec-12 3:28 
QuestionSplitting a url Pin
El daniel14-Dec-12 23:02
memberEl daniel14-Dec-12 23:02 
Questionpulling across value from list to display in view Pin
xnaLearner14-Dec-12 6:58
memberxnaLearner14-Dec-12 6:58 
AnswerRe: pulling across value from list to display in view Pin
xnaLearner14-Dec-12 7:49
memberxnaLearner14-Dec-12 7:49 
Im now using
bool isFirst = true;
@int remainingHolidays = 0;
 
@foreach (var item in Model.HList4DD)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PersonId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.HolidayDate)
        </td>
   
 
   if (isFirst)
   {
      remainingHolidays = item.Person.HolidaysRemaining;
      isFirst = false;
   }
        
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
            @Html.ActionLink("Details", "Details", new { id = item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.Id })
        </td>
    </tr>}
        
    
    <tr>
      <div class="editor-label">
         @*   @Html.LabelFor(model => model.PList4DD, "Person")*@
        </div>
 
        <div class="editor-field">
       
             <form action ="/Holidays/Index" id="some" method="post"> 
 
            @* *WORKING VERSION**@ @Html.DropDownListFor(model => model.HList4DD.First().HolidayDate, new SelectList(Model.PList4DD, "Id", "Name", Model.currentPersonID), "--select--")
        
 
       <script>
           function updateFormEnabled() 
           {
               if (verifyAdSettings()) 
               {
                   $('#sbmt').removeAttr('disabled');
               }
               else 
               {
                   $('#sbmt').attr('disabled', 'disabled');
               }
           }
 
           function verifyAdSettings() 
           {
               if ($('#HolidayDate').val() != '') 
               {
                   return true;
 
               }
               else 
               {
                   return false;
               }
           }
 

           $('#HolidayDate').change(updateFormEnabled);         
           </script>
 
      <td>
      @remainingHolidays.ToString()
   </td>
               
             <input type="submit" id= "sbmt" name="ViewHolidaysDD" value="View"/>
              </form>
         
  <script>
      $('#sbmt').attr('disabled', '');
        </script>
 
</table>


the @remainingHolidays.ToString() 5 lines or so up from the bottom is saying it doesnt exist in the current context?
AnswerRe: pulling across value from list to display in view Pin
frazzle-me14-Dec-12 18:41
memberfrazzle-me14-Dec-12 18:41 
GeneralRe: pulling across value from list to display in view Pin
xnaLearner15-Dec-12 9:28
memberxnaLearner15-Dec-12 9:28 
Questionproblem with relationships Pin
xnaLearner13-Dec-12 3:45
memberxnaLearner13-Dec-12 3:45 
AnswerRe: problem with relationships Pin
Richard Deeming13-Dec-12 4:48
memberRichard Deeming13-Dec-12 4:48 
GeneralRe: problem with relationships Pin
xnaLearner13-Dec-12 5:37
memberxnaLearner13-Dec-12 5:37 
Question[VB.NET 2008] DataSet and XML files Pin
steve_949661313-Dec-12 1:06
membersteve_949661313-Dec-12 1:06 
AnswerRe: [VB.NET 2008] DataSet and XML files Pin
Eddy Vluggen13-Dec-12 5:28
memberEddy Vluggen13-Dec-12 5:28 
GeneralRe: [VB.NET 2008] DataSet and XML files Pin
steve_949661313-Dec-12 22:21
membersteve_949661313-Dec-12 22:21 
GeneralRe: [VB.NET 2008] DataSet and XML files Pin
Eddy Vluggen14-Dec-12 1:34
memberEddy Vluggen14-Dec-12 1:34 
QuestionAssembly with different .NET framework versions Pin
marca29212-Dec-12 11:05
membermarca29212-Dec-12 11:05 
AnswerRe: Assembly with different .NET framework versions Pin
Gerry Schmitz12-Dec-12 13:25
memberGerry Schmitz12-Dec-12 13:25 
QuestionUse A Cookie To Send PersonID To Different Page Pin
xnaLearner12-Dec-12 5:33
memberxnaLearner12-Dec-12 5:33 
Questiondont allow user to select existing date Pin
xnaLearner10-Dec-12 6:46
memberxnaLearner10-Dec-12 6:46 
AnswerRe: dont allow user to select existing date Pin
Pete O'Hanlon10-Dec-12 6:53
protectorPete O'Hanlon10-Dec-12 6:53 
GeneralRe: dont allow user to select existing date Pin
xnaLearner10-Dec-12 7:23
memberxnaLearner10-Dec-12 7:23 
GeneralRe: dont allow user to select existing date Pin
xnaLearner11-Dec-12 0:26
memberxnaLearner11-Dec-12 0:26 
GeneralRe: dont allow user to select existing date Pin
Pete O'Hanlon11-Dec-12 0:32
protectorPete O'Hanlon11-Dec-12 0:32 
GeneralRe: dont allow user to select existing date Pin
xnaLearner11-Dec-12 0:46
memberxnaLearner11-Dec-12 0:46 
GeneralRe: dont allow user to select existing date Pin
Pete O'Hanlon11-Dec-12 0:51
protectorPete O'Hanlon11-Dec-12 0:51 
GeneralRe: dont allow user to select existing date Pin
xnaLearner11-Dec-12 1:21
memberxnaLearner11-Dec-12 1:21 
GeneralRe: dont allow user to select existing date Pin
Pete O'Hanlon11-Dec-12 2:02
protectorPete O'Hanlon11-Dec-12 2:02 
QuestionRun through loop for week and dont select weekends Pin
xnaLearner10-Dec-12 5:13
memberxnaLearner10-Dec-12 5:13 
AnswerRe: Run through loop for week and dont select weekends Pin
Pete O'Hanlon10-Dec-12 5:31
protectorPete O'Hanlon10-Dec-12 5:31 
GeneralRe: Run through loop for week and dont select weekends Pin
xnaLearner10-Dec-12 5:52
memberxnaLearner10-Dec-12 5:52 
GeneralRe: Run through loop for week and dont select weekends Pin
Pete O'Hanlon10-Dec-12 5:53
protectorPete O'Hanlon10-Dec-12 5:53 
QuestionDeploying a Windows Service Pin
indian14310-Dec-12 5:09
memberindian14310-Dec-12 5:09 
AnswerRe: Deploying a Windows Service Pin
Pete O'Hanlon10-Dec-12 6:04
protectorPete O'Hanlon10-Dec-12 6:04 
GeneralRe: Deploying a Windows Service Pin
indian14310-Dec-12 6:08
memberindian14310-Dec-12 6:08 
GeneralRe: Deploying a Windows Service Pin
Pete O'Hanlon10-Dec-12 6:20
protectorPete O'Hanlon10-Dec-12 6:20 
Questionrun through startDate to endDate and add each record to DB Pin
xnaLearner10-Dec-12 3:04
memberxnaLearner10-Dec-12 3:04 
AnswerRe: run through startDate to endDate and add each record to DB Pin
xnaLearner10-Dec-12 3:35
memberxnaLearner10-Dec-12 3:35 
QuestionASP.NET Post Textbox After Button Click Pin
xnaLearner9-Dec-12 12:15
memberxnaLearner9-Dec-12 12:15 
AnswerRe: ASP.NET Post Textbox After Button Click Pin
Richard MacCutchan9-Dec-12 22:54
mvpRichard MacCutchan9-Dec-12 22:54 
GeneralRe: ASP.NET Post Textbox After Button Click Pin
xnaLearner10-Dec-12 1:14
memberxnaLearner10-Dec-12 1:14 
Question.netframework Pin
zofi518-Dec-12 5:30
memberzofi518-Dec-12 5:30 
AnswerRe: .netframework Pin
Dave Kreskowiak8-Dec-12 7:37
mvpDave Kreskowiak8-Dec-12 7:37 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 29 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid