Click here to Skip to main content
12,621,744 members (37,986 online)
   

ASP.NET

 
QuestionUnable to start program http://localhost:1837/default.aspx using VS 2008 in Windows XP IE 8 Pin
sr15919-Dec-12 1:08
membersr15919-Dec-12 1:08 
QuestionHow to access 'name' given when user registers Pin
xnaLearner18-Dec-12 23:52
memberxnaLearner18-Dec-12 23:52 
AnswerRe: How to access 'name' given when user registers Pin
xnaLearner18-Dec-12 23:58
memberxnaLearner18-Dec-12 23:58 
Questionsequence contains no elements Pin
xnaLearner18-Dec-12 3:44
memberxnaLearner18-Dec-12 3:44 
AnswerRe: sequence contains no elements Pin
Matt U.18-Dec-12 8:23
memberMatt U.18-Dec-12 8:23 
GeneralRe: sequence contains no elements Pin
xnaLearner19-Dec-12 0:00
memberxnaLearner19-Dec-12 0:00 
GeneralRe: sequence contains no elements Pin
Matt U.19-Dec-12 2:47
memberMatt U.19-Dec-12 2:47 
Question[session] returns null Pin
xnaLearner18-Dec-12 0:20
memberxnaLearner18-Dec-12 0:20 
Im using a session variable to pass the user ID from the Index to the Create in the HomeController. ATM the user can use a drop down to select their name from the list of users and click 'View' to list the holidays they have previously booked. From there the user can click 'create' which will bring the user to a page which enables them to create a new holiday. From here they have to select their name again from the drop down list.

I want to store the users ID from the previous drop down so it will update automatically if they try to create another holiday (to replace the second drop down)

Im using a session variable to do this, iv put

Session["userameID"] = currentID;

in my view. Iv break pointed it just after and if I hold my mouse over 'currentID' it displays the correct ID of the user.

So iv tried to pass this down to the create method using

string xx = (string)Session["usernameID"];

However string 'xx' is returning NULL,., (tested with breakpoint)

I then placed the entire session in the view

Session["userameID"] = HolidayDate;

string xx = (string)Session["usernameID"];

and string 'xx' is still returning null.

Is it not meant to return the userID???

Thanks for any replys
AnswerRe: [session] returns null Pin
Rahul Rajat Singh18-Dec-12 0:47
memberRahul Rajat Singh18-Dec-12 0:47 
GeneralRe: [session] returns null Pin
xnaLearner18-Dec-12 1:10
memberxnaLearner18-Dec-12 1:10 
GeneralRe: [session] returns null Pin
xnaLearner18-Dec-12 1:12
memberxnaLearner18-Dec-12 1:12 
SuggestionRe: [session] returns null Pin
Chandrabhan Sangale18-Dec-12 18:59
memberChandrabhan Sangale18-Dec-12 18:59 
QuestionMultilingual support for Web Application Pin
AB777118-Dec-12 0:18
memberAB777118-Dec-12 0:18 
AnswerRe: Multilingual support for Web Application Pin
Rahul Rajat Singh18-Dec-12 0:43
memberRahul Rajat Singh18-Dec-12 0:43 
GeneralRe: Multilingual support for Web Application Pin
AB777118-Dec-12 3:27
memberAB777118-Dec-12 3:27 
AnswerRe: Multilingual support for Web Application Pin
deflinek18-Dec-12 0:57
memberdeflinek18-Dec-12 0:57 
SuggestionRe: Multilingual support for Web Application Pin
Chandrabhan Sangale18-Dec-12 19:01
memberChandrabhan Sangale18-Dec-12 19:01 
Questiongoogle map Pin
cdpsource17-Dec-12 21:52
membercdpsource17-Dec-12 21:52 
AnswerRe: google map Pin
ryanb3118-Dec-12 5:55
memberryanb3118-Dec-12 5:55 
QuestionProblem to send message from MSMQ Pin
TRAORE cheickna17-Dec-12 11:20
memberTRAORE cheickna17-Dec-12 11:20 
Questionexport report failed in crystal report Pin
himadribanik17-Dec-12 7:51
memberhimadribanik17-Dec-12 7:51 
QuestionRefresh particular parts on masterpage Pin
cdpsource17-Dec-12 6:58
membercdpsource17-Dec-12 6:58 
AnswerRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 7:51
memberMatt U.17-Dec-12 7:51 
GeneralRe: Refresh particular parts on masterpage Pin
cdpsource17-Dec-12 7:59
membercdpsource17-Dec-12 7:59 
GeneralRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 8:06
memberMatt U.17-Dec-12 8:06 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 3 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid