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

ASP.NET

 
Questionexport report failed in crystal report Pin
himadribanik17-Dec-12 6:51
himadribanik17-Dec-12 6:51 
QuestionRefresh particular parts on masterpage Pin
cdpsource17-Dec-12 5:58
cdpsource17-Dec-12 5:58 
AnswerRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 6:51
Matt U.17-Dec-12 6:51 
GeneralRe: Refresh particular parts on masterpage Pin
cdpsource17-Dec-12 6:59
cdpsource17-Dec-12 6:59 
GeneralRe: Refresh particular parts on masterpage Pin
Matt U.17-Dec-12 7:06
Matt U.17-Dec-12 7:06 
GeneralRe: Refresh particular parts on masterpage Pin
cdpsource17-Dec-12 8:23
cdpsource17-Dec-12 8:23 
SuggestionRe: Refresh particular parts on masterpage Pin
Chandrabhan Sangale18-Dec-12 18:04
professionalChandrabhan Sangale18-Dec-12 18:04 
Questionsession variable / temp data Pin
xnaLearner17-Dec-12 4:25
xnaLearner17-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
@Html.DropDownListFor(model => model.HList4DD.First().HolidayDate, new SelectList(Model.PList4DD, "Id", "Name", Model.currentPersonID), "--select--")


My second drop Down on the create view:

C#
@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:
HTML
TempData["CurrentPersonID"] =currentPersonID;


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

HTML
@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
vaibhav.baldha17-Dec-12 3:47 
AnswerRe: Salable Comet (server hang while more user) Pin
Chandrabhan Sangale18-Dec-12 17:49
professionalChandrabhan 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
kapil sharma 4917-Dec-12 2:02 
AnswerRe: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. Pin
ZurdoDev18-Dec-12 4:58
professionalZurdoDev18-Dec-12 4:58 
QuestionCan only book for yourself and not other users? Pin
xnaLearner17-Dec-12 1:29
xnaLearner17-Dec-12 1:29 
QuestionRe: Can only book for yourself and not other users? Pin
Zaf Khan19-Dec-12 5:49
Zaf Khan19-Dec-12 5:49 
QuestionEval + onclientClick Gridview Error Pin
jojoba201116-Dec-12 20:38
jojoba201116-Dec-12 20:38 
QuestionRe: Eval + onclientClick Gridview Error Pin
ZurdoDev18-Dec-12 4:59
professionalZurdoDev18-Dec-12 4:59 
QuestionSound transmission Pin
leone16-Dec-12 5:16
leone16-Dec-12 5:16 
QuestionRe: Sound transmission Pin
ZurdoDev18-Dec-12 5:00
professionalZurdoDev18-Dec-12 5:00 
AnswerRe: Sound transmission Pin
leone18-Dec-12 23:22
leone18-Dec-12 23:22 
GeneralRe: Sound transmission Pin
ZurdoDev19-Dec-12 1:38
professionalZurdoDev19-Dec-12 1:38 
GeneralRe: Sound transmission Pin
leone19-Dec-12 2:54
leone19-Dec-12 2:54 
QuestionDropDownList changed after reading SelectedValue !!!! Pin
AhmedOsamaMoh15-Dec-12 9:11
AhmedOsamaMoh15-Dec-12 9:11 
AnswerRe: DropDownList changed after reading SelectedValue !!!! Pin
rakak15-Dec-12 18:29
rakak15-Dec-12 18:29 
GeneralRe: DropDownList changed after reading SelectedValue !!!! Pin
AhmedOsamaMoh16-Dec-12 4:18
AhmedOsamaMoh16-Dec-12 4:18 
GeneralRe: DropDownList changed after reading SelectedValue !!!! Pin
chester_it2116-Dec-12 9:10
chester_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.