TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ali Ghaffari
973
680
27.2k
Login Form with Dropdownlist in asp.net mvc with EF
Sep 6 2017 9:21 AM
Hello!
Can anyone know? actually i am making login form in asp.net mvc using entity framework.
I have a table(User) in database. In this table i have only UserType, UserName and password.
I want a one thing, i have dropdownlist on login view page for User Type: like Admin, Teacher, Student will be showing in dropdownlist for select.
When I want to select Teacher from dropdownlist and enter the username and password and click on #Login Button then Dashboard of Teacher should be open.
but here conflict is that how to show the User Types in dropdownlist and then how to match with database in asp.net mvc entity framework.
Attachment:
AsifSaleemSchool.zip
Reply
Answers (
4
)
Control asp:xml tag by JS
Datalist inside gridview with no records