Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
I got a problem for ASP.net MCV database controllar
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 05-09-2011, 08:32 AM
meodows92's Avatar
Active Member
 
Join Date: Jun 2009
Posts: 227
Default 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.
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 04:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1