Creating Registration Page Using ASP.NET MVC by using ADO.net -


hey stucked in creating registration page using asp.net mvc using ado.net or enterprise library. dont want use entity framework .

my database structure is

    create table registration ( customerid int identity(1,1) not null primary key, name varchar(255) not null, contactno varchar(255) not null, emailid varchar(255) not null, address varchar(255) not null, dob varchar(255) not null,  ); 

and cretaed method in in class library

my model file is

 public string name { get; set; }     public string contactno { get; set; }     public string emailid { get; set; }     public string address { get; set; }     public string dob { get; set; } 

what code write in controller value of cutomer in database

refer this link

what code write in controller value of cutomer in database

you need create controller , views store data database. think new in mvc because mvc stands model view controller.

you have created model.

public string name { get; set; } public string contactno { get; set; } public string emailid { get; set; } public string address { get; set; } public string dob { get; set; } 

but missing primary key customerid, without won't able access corresponding table.

refer this site more.


Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -