Click here to Skip to main content
15,909,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem with change Gridview cell value Pin
CommDev23-Dec-12 14:24
CommDev23-Dec-12 14:24 
QuestionHow to add anchor tag in uploded html page Pin
VyasRavi677619-Dec-12 18:54
VyasRavi677619-Dec-12 18:54 
AnswerRe: How to add anchor tag in uploded html page Pin
AmitGajjar20-Dec-12 5:39
professionalAmitGajjar20-Dec-12 5:39 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 21:34
chirag774920-Dec-12 21:34 
AnswerRe: How to add anchor tag in uploded html page Pin
CommDev20-Dec-12 20:04
CommDev20-Dec-12 20:04 
GeneralRe: How to add anchor tag in uploded html page Pin
chirag774920-Dec-12 20:14
chirag774920-Dec-12 20:14 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 21:57
n.podbielski22-Dec-12 21:57 
GeneralRe: How to add anchor tag in uploded html page Pin
n.podbielski22-Dec-12 21:57
n.podbielski22-Dec-12 21:57 
Questionjquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 11:57
Dhyanga19-Dec-12 11:57 
AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 17:25
professionaljkirkerx19-Dec-12 17:25 
GeneralRe: jquery for asp.net sometimes work sometimes doesn't work Pin
Dhyanga19-Dec-12 17:50
Dhyanga19-Dec-12 17:50 
AnswerRe: jquery for asp.net sometimes work sometimes doesn't work Pin
jkirkerx19-Dec-12 18:09
professionaljkirkerx19-Dec-12 18:09 
QuestionOnly 1 use for admin? Pin
xnaLearner19-Dec-12 1:28
xnaLearner19-Dec-12 1:28 
QuestionHave userID in view, need userName posted Pin
xnaLearner19-Dec-12 0:41
xnaLearner19-Dec-12 0:41 
AnswerRe: Have userID in view, need userName posted Pin
Matt U.19-Dec-12 4:11
Matt U.19-Dec-12 4:11 
AnswerRe: Have userID in view, need userName posted Pin
CommDev20-Dec-12 22:55
CommDev20-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
sr15919-Dec-12 0:08 
QuestionHow to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:52
xnaLearner18-Dec-12 22:52 
AnswerRe: How to access 'name' given when user registers Pin
xnaLearner18-Dec-12 22:58
xnaLearner18-Dec-12 22:58 
Questionsequence contains no elements Pin
xnaLearner18-Dec-12 2:44
xnaLearner18-Dec-12 2:44 
AnswerRe: sequence contains no elements Pin
Matt U.18-Dec-12 7:23
Matt U.18-Dec-12 7:23 
GeneralRe: sequence contains no elements Pin
xnaLearner18-Dec-12 23:00
xnaLearner18-Dec-12 23:00 
GeneralRe: sequence contains no elements Pin
Matt U.19-Dec-12 1:47
Matt U.19-Dec-12 1:47 
Question[session] returns null Pin
xnaLearner17-Dec-12 23:20
xnaLearner17-Dec-12 23: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 Singh17-Dec-12 23:47
professionalRahul Rajat Singh17-Dec-12 23:47 

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.