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

ASP.NET

 
AnswerRe: Fieldset Alignment Problem Pin
User 41802541-Jul-15 11:29
User 41802541-Jul-15 11:29 
QuestionHiddenField Pin
Member 1116162517-Jun-15 19:10
Member 1116162517-Jun-15 19:10 
SuggestionRe: HiddenField Pin
Richard MacCutchan17-Jun-15 21:25
mveRichard MacCutchan17-Jun-15 21:25 
AnswerRe: HiddenField Pin
Thanuj Kumara AS18-Jun-15 2:41
professionalThanuj Kumara AS18-Jun-15 2:41 
AnswerRe: HiddenField Pin
JagadishBB24-Jun-15 20:09
JagadishBB24-Jun-15 20:09 
QuestionMake upper Div the same height as ViewPort height Pin
maryam.saboor16-Jun-15 19:03
professionalmaryam.saboor16-Jun-15 19:03 
AnswerRe: Make upper Div the same height as ViewPort height Pin
maryam.saboor21-Jun-15 18:07
professionalmaryam.saboor21-Jun-15 18:07 
QuestionEntity framework forien keys Pin
David baghaturia15-Jun-15 12:45
David baghaturia15-Jun-15 12:45 
Hi,

I am new in MVC and Entity framework, so I have some problem in my first project. So sorry if my question is to noob Frown | :(


What I have at this point:
I have table users(ID, Name, Password, TypeID, StatusID) and I have lookup table for this fields TypeID, StatusID UserTypes and UserStatuses.

Here is some code for more clarity

SQL
CREATE TABLE [dbo].[Users](
    [ID] [int] NOT NULL,
    [Name] [varchar](512) NOT NULL,
    [Password] [varchar](128) NOT NULL,
    [TypeID] [int] NULL,
    [StatusID] [int] NULL
)

CREATE TABLE [dbo].[UserStatuses](
    [ID] [int] NOT NULL,
    [Description] [nvarchar](128) NULL
)


CREATE TABLE [dbo].[UserTypes](
    [ID] [int] NOT NULL,
    [Description] [nvarchar](128) NULL
)


In UserStatuses Table I store "active", "Blocked"
and in UserTypes "Admin", "User", "guest"

Values in UserTypes mey change in future so, I don't wont to convert Users.TypeID field in Enum.(this is important for me !)


What I need
How display user friendly values "active", "Blocked" for StatusID and "Admin", "User", "guest" for TypeID field, instead of number editor when I am generating view ?

link to some good article is welcome Smile | :)
AnswerRe: Entity framework forien keys Pin
F-ES Sitecore15-Jun-15 22:09
professionalF-ES Sitecore15-Jun-15 22:09 
QuestionPreventing XSS attacks to dynamically created DOM webpages and dynamically generated javascript event handlers Pin
Steve Holdorf13-Jun-15 18:07
Steve Holdorf13-Jun-15 18:07 
QuestionLearing ASP.NET Security Vulnerability programming Pin
Steve Holdorf13-Jun-15 6:58
Steve Holdorf13-Jun-15 6:58 
QuestionThe requested resource does not support http method 'GET' Pin
Vimalsoft(Pty) Ltd13-Jun-15 0:52
professionalVimalsoft(Pty) Ltd13-Jun-15 0:52 
AnswerRe: The requested resource does not support http method 'GET' Pin
Akhil Mittal16-Jun-15 22:10
professionalAkhil Mittal16-Jun-15 22:10 
QuestionGet text in a textbox Pin
Otekpo Emmanuel12-Jun-15 21:00
Otekpo Emmanuel12-Jun-15 21:00 
GeneralRe: Get text in a textbox Pin
Abhipal Singh13-Jun-15 8:01
professionalAbhipal Singh13-Jun-15 8:01 
SuggestionRe: Get text in a textbox Pin
Richard Deeming15-Jun-15 1:20
mveRichard Deeming15-Jun-15 1:20 
GeneralRe: Get text in a textbox Pin
Abhipal Singh15-Jun-15 5:35
professionalAbhipal Singh15-Jun-15 5:35 
SuggestionRe: Get text in a textbox Pin
Richard Deeming15-Jun-15 1:22
mveRichard Deeming15-Jun-15 1:22 
Generallogin page in asp.net Pin
Member 1155558912-Jun-15 3:16
Member 1155558912-Jun-15 3:16 
GeneralRe: login page in asp.net Pin
Richard MacCutchan12-Jun-15 5:18
mveRichard MacCutchan12-Jun-15 5:18 
AnswerRe: login page in asp.net Pin
ZurdoDev12-Jun-15 5:46
professionalZurdoDev12-Jun-15 5:46 
GeneralRe: login page in asp.net Pin
Vimalsoft(Pty) Ltd18-Jun-15 21:47
professionalVimalsoft(Pty) Ltd18-Jun-15 21:47 
GeneralRe: login page in asp.net Pin
Richard Deeming19-Jun-15 2:00
mveRichard Deeming19-Jun-15 2:00 
GeneralRe: login page in asp.net Pin
Mr Munesh Sharma19-Jun-15 1:12
professionalMr Munesh Sharma19-Jun-15 1:12 
GeneralRe: login page in asp.net Pin
Richard Deeming19-Jun-15 2:02
mveRichard Deeming19-Jun-15 2:02 

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.