Click here to Skip to main content
       

ASP.NET

 
Questionexport report failed in crystal report Pinmemberhimadribanik17-Dec-12 6:51 
QuestionRefresh particular parts on masterpage Pinmembercdpsource17-Dec-12 5:58 
AnswerRe: Refresh particular parts on masterpage PinmemberMatt U.17-Dec-12 6:51 
GeneralRe: Refresh particular parts on masterpage Pinmembercdpsource17-Dec-12 6:59 
GeneralRe: Refresh particular parts on masterpage PinmemberMatt U.17-Dec-12 7:06 
GeneralRe: Refresh particular parts on masterpage Pinmembercdpsource17-Dec-12 8:23 
SuggestionRe: Refresh particular parts on masterpage PinmemberChandrabhan Sangale18-Dec-12 18:04 
Questionsession variable / temp data PinmemberxnaLearner17-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) Pinmembervaibhav.baldha17-Dec-12 3:47 
AnswerRe: Salable Comet (server hang while more user) PinmemberChandrabhan Sangale18-Dec-12 17:49 
QuestionThe underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Pinmemberkapil sharma 4917-Dec-12 2:02 
AnswerRe: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Pinmemberryanb3118-Dec-12 4:58 
QuestionCan only book for yourself and not other users? PinmemberxnaLearner17-Dec-12 1:29 
QuestionRe: Can only book for yourself and not other users? PinmemberZaf Khan19-Dec-12 5:49 
QuestionEval + onclientClick Gridview Error [modified] Pinmemberjojoba201116-Dec-12 20:38 
QuestionRe: Eval + onclientClick Gridview Error Pinmemberryanb3118-Dec-12 4:59 
QuestionSound transmission Pinmemberleone16-Dec-12 5:16 
QuestionRe: Sound transmission Pinmemberryanb3118-Dec-12 5:00 
AnswerRe: Sound transmission Pinmemberleone18-Dec-12 23:22 
GeneralRe: Sound transmission Pinmemberryanb3119-Dec-12 1:38 
GeneralRe: Sound transmission Pinmemberleone19-Dec-12 2:54 
QuestionDropDownList changed after reading SelectedValue !!!! [modified] PinmemberAdore C++15-Dec-12 9:11 
AnswerRe: DropDownList changed after reading SelectedValue !!!! Pinmemberrakak15-Dec-12 18:29 
GeneralRe: DropDownList changed after reading SelectedValue !!!! PinmemberAdore C++16-Dec-12 4:18 
GeneralRe: DropDownList changed after reading SelectedValue !!!! Pingroupchester_it2116-Dec-12 9:10 

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 1 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid