Click here to Skip to main content
       

ASP.NET

 
QuestionOnly 1 use for admin? PinmemberxnaLearner19-Dec-12 1:28 
QuestionHave userID in view, need userName posted PinmemberxnaLearner19-Dec-12 0:41 
AnswerRe: Have userID in view, need userName posted PinmemberMatt U.19-Dec-12 4:11 
AnswerRe: Have userID in view, need userName posted [modified] PinmemberCommDev20-Dec-12 22:55 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 Pinmembersr15919-Dec-12 0:08 
QuestionHow to access 'name' given when user registers PinmemberxnaLearner18-Dec-12 22:52 
AnswerRe: How to access 'name' given when user registers PinmemberxnaLearner18-Dec-12 22:58 
Questionsequence contains no elements PinmemberxnaLearner18-Dec-12 2:44 
So a drop down is used to select the users name, then click 'view' and it will display all the holidays this user has previously booked.
 
From here the user can click 'create new' which will bring them to a create new page. Instead of having to re-select their name from another drop down i carried across the currentuserID and replaced the second drop down with the users ID.
 
Everything was working fine with 2 separate drop downs, the user could book holidays etc... However now (after I changed the second drop down to hold the ID value) I am getting an error from my listHoliday Method in my controller:
 
Error: InvalidOperationException was unhandled by the user code Sequence contains no elements
 
var dbPerson1 = (from p in db.People
where p.Id == PersonId
select p).Single();
Could anyone advise what to do? Im lost thanks for any replies.
AnswerRe: sequence contains no elements PinmemberMatt U.18-Dec-12 7:23 
GeneralRe: sequence contains no elements PinmemberxnaLearner18-Dec-12 23:00 
GeneralRe: sequence contains no elements PinmemberMatt U.19-Dec-12 1:47 
Question[session] returns null PinmemberxnaLearner17-Dec-12 23:20 
AnswerRe: [session] returns null PinmemberRahul Rajat Singh17-Dec-12 23:47 
GeneralRe: [session] returns null PinmemberxnaLearner18-Dec-12 0:10 
GeneralRe: [session] returns null PinmemberxnaLearner18-Dec-12 0:12 
SuggestionRe: [session] returns null PinmemberChandrabhan Sangale18-Dec-12 17:59 
QuestionMultilingual support for Web Application PinmemberAB777117-Dec-12 23:18 
AnswerRe: Multilingual support for Web Application PinmemberRahul Rajat Singh17-Dec-12 23:43 
GeneralRe: Multilingual support for Web Application PinmemberAB777118-Dec-12 2:27 
AnswerRe: Multilingual support for Web Application Pinmemberdeflinek17-Dec-12 23:57 
SuggestionRe: Multilingual support for Web Application PinmemberChandrabhan Sangale18-Dec-12 18:01 
Questiongoogle map Pinmembercdpsource17-Dec-12 20:52 
AnswerRe: google map Pinmemberryanb3118-Dec-12 4:55 
QuestionProblem to send message from MSMQ PinmemberTRAORE cheickna17-Dec-12 10:20 
Questionexport report failed in crystal report Pinmemberhimadribanik17-Dec-12 6:51 

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.140721.1 | Last Updated 27 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid