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:
Then to replace my second drop down im trying something like:
At the min, any user can book a holiday for ay employee,
I have added [Authorization] to the controllers, and @if (User.Identity.IsAuthenticated)
in the layout so only logged in users can view the pages. But how can I go about only allowing users to book a holiday for them selves
something like if loggedInUserID(is this assigned automatically when a user is created?) =currentPersoID, although this is only a guess and I would prob have to assign the same loggedInUserID to personID.
Hi friends. is it possible to use an asp web site like a telephone. i ve made a website. there are 10 users of this website. ı can understand who is online and who isnt. is it possible to put a button whose text is "talk to this user" next to each user and send and play this sound stream at remote side. I found this Sending and playing microphone audio over network[^] but it is quite complicated to me. Do you have an easier idea.
phone calls via their microphones. I couldn't find an exact solution yet but i am thinking of this:
When a user clicks on a button to talk to someone else, i am planning to create a rtp stream. this stream wont go to anybody's computer. It will go to server itself but with some unique number on it. Somehow i will try to make users decode this stream using those unique numbers.
whatever i select , the dropdownlist changed to item2
i discovered the problem became more complicated than i thought
some more background is needed
the dropdownlist is binded to datasoure ( username , password , user rank), i display the username and i return the password in selected value and the dropdownlist sorted by rank
indeed the dropdownlist working so fine and the selected item remains even after reading selected value but IN ONLY ONE COND. that such username has a unique password
if i choose ccc it will return 34343 selected index 2
if i choose dddd it will return 67657 selected index 3 if i choose aaa it will return 1234 if aaa is higher rank than bbb
if i choose bbb it will return 1234 selected index 1
in my opinion ajax is good and safe control and easy to use but if u want to have more graphical effect u can use nivoo slider it's free and fast.
I have lot's of test with the 3 top of slider that are usual: 1.ajax ,2.nivoo ,3.wowslider
the result is nivoo slider won.