Click here to Skip to main content
11,581,186 members (62,967 online)
   

ASP.NET

 
QuestionHave userID in view, need userName posted Pin
xnaLearner19-Dec-12 0:41
memberxnaLearner19-Dec-12 0:41 
AnswerRe: Have userID in view, need userName posted Pin
Matt U.19-Dec-12 4:11
memberMatt U.19-Dec-12 4:11 
AnswerRe: Have userID in view, need userName posted Pin
CommDev20-Dec-12 22:55
memberCommDev20-Dec-12 22:55 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 Pin
sr15919-Dec-12 0:08
membersr15919-Dec-12 0:08 
QuestionHow to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:52
memberxnaLearner18-Dec-12 22:52 
AnswerRe: How to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:58
memberxnaLearner18-Dec-12 22:58 
Questionsequence contains no elements Pin
xnaLearner18-Dec-12 2:44
memberxnaLearner18-Dec-12 2:44 
AnswerRe: sequence contains no elements Pin
Matt U.18-Dec-12 7:23
memberMatt U.18-Dec-12 7:23 
First, make sure the proper set of ID values is actually being bound to the drop-down. Secondly, the "Single()" method will throw that exception if the query does not return any results. If it's possible that the "p.Id == PersonId" condition could yield ZERO results, use "SingleOrDefault()" instead, which will assign a null value to dbPerson1 if nothing is found with the query.

I'd say debug with a breakpoint and verify that, for one, the drop-down has the correct ID's assigned to it, and also that "PersonId" is capturing the correct value. Also, make sure that the "PersonId" does in fact exist in the "People" table.
djj55: Nice but may have a permission problem
Pete O'Hanlon: He has my permission to run it.

GeneralRe: sequence contains no elements Pin
xnaLearner18-Dec-12 23:00
memberxnaLearner18-Dec-12 23:00 
GeneralRe: sequence contains no elements Pin
Matt U.19-Dec-12 1:47
memberMatt U.19-Dec-12 1:47 
Question[session] returns null Pin
xnaLearner17-Dec-12 23:20
memberxnaLearner17-Dec-12 23:20 
AnswerRe: [session] returns null Pin
Rahul Rajat Singh17-Dec-12 23:47
memberRahul Rajat Singh17-Dec-12 23:47 
GeneralRe: [session] returns null Pin
xnaLearner18-Dec-12 0:10
memberxnaLearner18-Dec-12 0:10 
GeneralRe: [session] returns null Pin
xnaLearner18-Dec-12 0:12
memberxnaLearner18-Dec-12 0:12 
SuggestionRe: [session] returns null Pin
Chandrabhan Sangale18-Dec-12 17:59
memberChandrabhan Sangale18-Dec-12 17:59 
QuestionMultilingual support for Web Application Pin
AB777117-Dec-12 23:18
memberAB777117-Dec-12 23:18 
AnswerRe: Multilingual support for Web Application Pin
Rahul Rajat Singh17-Dec-12 23:43
memberRahul Rajat Singh17-Dec-12 23:43 
GeneralRe: Multilingual support for Web Application Pin
AB777118-Dec-12 2:27
memberAB777118-Dec-12 2:27 
AnswerRe: Multilingual support for Web Application Pin
deflinek17-Dec-12 23:57
memberdeflinek17-Dec-12 23:57 
SuggestionRe: Multilingual support for Web Application Pin
Chandrabhan Sangale18-Dec-12 18:01
memberChandrabhan Sangale18-Dec-12 18:01 
Questiongoogle map Pin
cdpsource17-Dec-12 20:52
membercdpsource17-Dec-12 20:52 
AnswerRe: google map Pin
ryanb3118-Dec-12 4:55
memberryanb3118-Dec-12 4:55 
QuestionProblem to send message from MSMQ Pin
TRAORE cheickna17-Dec-12 10:20
memberTRAORE cheickna17-Dec-12 10:20 
Questionexport report failed in crystal report Pin
himadribanik17-Dec-12 6:51
memberhimadribanik17-Dec-12 6:51 
QuestionRefresh particular parts on masterpage Pin
cdpsource17-Dec-12 5:58
membercdpsource17-Dec-12 5:58 

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
Web03 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid