Click here to Skip to main content
12,301,965 members (55,714 online)
   

ASP.NET

 
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 
AnswerRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 6:51
memberMatt U.17-Dec-12 6:51 
GeneralRe: Refresh particular parts on masterpage Pin
cdpsource17-Dec-12 6:59
membercdpsource17-Dec-12 6:59 
GeneralRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 7:06
memberMatt U.17-Dec-12 7:06 
GeneralRe: Refresh particular parts on masterpage Pin
cdpsource17-Dec-12 8:23
membercdpsource17-Dec-12 8:23 
SuggestionRe: Refresh particular parts on masterpage Pin
Chandrabhan Sangale18-Dec-12 18:04
memberChandrabhan Sangale18-Dec-12 18:04 
Questionsession variable / temp data Pin
xnaLearner17-Dec-12 4:25
memberxnaLearner17-Dec-12 4:25 
So on the users page the user can use a drop down to select their name and then click 'view' to view the list of holidays they have previously booked. From here they can choose 'select new' which will allow the user to create a new holiday. This all works fine however I want the username to be stored from the original drop down and displayed in the creating page. Instead of having 2 seperate drop downs on each page.

I have tried:

My first drop down in my Index.chtml

@Html.DropDownListFor(model => model.HList4DD.First().HolidayDate, new SelectList(Model.PList4DD, "Id", "Name", Model.currentPersonID), "--select--")

My second drop Down on the create view:

@Html.DropDownListFor(model => model.PersonId, new SelectList(ViewBag.Id, "Value", "Text"),"---Select---")
-----------------------

I wanted to change this to the name of the user previously selected so in my get of the Index I have used:
TempData["CurrentPersonID"] =currentPersonID;

Then to replace my second drop down im trying something like:

@TempData["CurrentPersonID"]
 
<div>
@Html.LabelFor(model => model.currentPersonID, "currentPersonID")
@Html.ValidationMessageFor(model => model.PersonId) 
</div>



Any suggestions? Thanks
QuestionSalable Comet (server hang while more user) Pin
vaibhav.baldha17-Dec-12 3:47
membervaibhav.baldha17-Dec-12 3:47 
AnswerRe: Salable Comet (server hang while more user) Pin
Chandrabhan Sangale18-Dec-12 17:49
memberChandrabhan Sangale18-Dec-12 17:49 
QuestionThe underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Pin
kapil sharma 4917-Dec-12 2:02
memberkapil sharma 4917-Dec-12 2:02 
AnswerRe: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Pin
ryanb3118-Dec-12 4:58
memberryanb3118-Dec-12 4:58 
QuestionCan only book for yourself and not other users? Pin
xnaLearner17-Dec-12 1:29
memberxnaLearner17-Dec-12 1:29 
QuestionRe: Can only book for yourself and not other users? Pin
Zaf Khan19-Dec-12 5:49
memberZaf Khan19-Dec-12 5:49 
QuestionEval + onclientClick Gridview Error Pin
jojoba201116-Dec-12 20:38
memberjojoba201116-Dec-12 20:38 
QuestionRe: Eval + onclientClick Gridview Error Pin
ryanb3118-Dec-12 4:59
memberryanb3118-Dec-12 4:59 
QuestionSound transmission Pin
leone16-Dec-12 5:16
memberleone16-Dec-12 5:16 
QuestionRe: Sound transmission Pin
ryanb3118-Dec-12 5:00
memberryanb3118-Dec-12 5:00 
AnswerRe: Sound transmission Pin
leone18-Dec-12 23:22
memberleone18-Dec-12 23:22 
GeneralRe: Sound transmission Pin
ryanb3119-Dec-12 1:38
memberryanb3119-Dec-12 1:38 
GeneralRe: Sound transmission Pin
leone19-Dec-12 2:54
memberleone19-Dec-12 2:54 
QuestionDropDownList changed after reading SelectedValue !!!! Pin
Adore C++15-Dec-12 9:11
memberAdore C++15-Dec-12 9:11 
AnswerRe: DropDownList changed after reading SelectedValue !!!! Pin
rakak15-Dec-12 18:29
memberrakak15-Dec-12 18:29 
GeneralRe: DropDownList changed after reading SelectedValue !!!! Pin
Adore C++16-Dec-12 4:18
memberAdore C++16-Dec-12 4:18 
GeneralRe: DropDownList changed after reading SelectedValue !!!! Pin
chester_it2116-Dec-12 9:10
groupchester_it2116-Dec-12 9:10 

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.160530.1 | Last Updated 30 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid