• Log in or sign up for an account here: https://www.sythe.org/login

I got a problem for ASP.net MCV database controllar

meodows92

Active Member
Joined
Jun 8, 2009
Sythe Gold
0
Messages
232
I got a problem for ASP.net MCV database controllar
Hi to alll sythe member, i got a problem to ask you all, which around me about 2 months.

My project is about web programming and we encounter this problem which is Register, the code of the controller is below.


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
//____________________________________________________
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;


namespace MVC_eLibrary.Controllers
{
[Bind(Exclude = "UserID")]
public partial class Order
{
[ScaffoldColumn(false)]
public int UserID { get; set; }
[ScaffoldColumn(false)]

public int Username { get; set; }
[Required(ErrorMessage = "Username is required")]
[StringLength(20)]

public string Password { get; set; }
[Required(ErrorMessage = "Password is required")]
[StringLength(20)]

public string Email { get; set; }
[Required(ErrorMessage = "Email is required")]
[StringLength(50)]

public string Phone { get; set; }
[Required(ErrorMessage = "Phone is required")]
[StringLength(10)]


public string Company { get; set; }
[StringLength(30)]

public string Address { get; set; }
[StringLength(50)]


[RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}",ErrorMessage = "Email is is not valid.")]
[DataType(DataType.EmailAddress)]
public string Email { get; set; }
[ScaffoldColumn(false)]

public List<OrderDetail> OrderDetails { get; set; }

}
}





I just want to know how to store information to the Data Base which just type in the webpage of database. No spamming hear ok i need to submit this project.
 
Runescape Gamblingrunescape gambling
Back
Top