Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Anyone please help me to create the dynamic form using MVC4 razor and sql server as per the Admin.
Means for each project Admin will create the form like control (textbox,dropdown,label etc) and all set the layout and alignments for the same so that when normal user open as per his rights to the project he/she will see the form which have been configured for him.

I have made the enum like public enum dataFieldType
{
TextBox = 0,
TextArea = 1,
DropDown = 2,
CheckBox = 3,
Label = 4
}
and database fields like
CREATE TABLE [dbo].[pr_tblFields](
[id] [int] IDENTITY(1,1) NOT NULL,
[pid] [int] NULL,
[Name] [nvarchar](250) NULL,
[Type] [nvarchar](50) NULL,
[Required] [bit] NULL,
[choices] [nvarchar](max) NULL,
[ordinal] [int] NULL,
[Datecreated] [datetime] NULL,
[Datemodified] [datetime] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

i don't know how to go through.Urgent for my projec
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900