如何编辑和使用visual studio 2012上为asp.mvc 4项目提供的模板? [英] how to edit and use the template given on visual studio 2012 for asp.mvc 4 project?

查看:100
本文介绍了如何编辑和使用visual studio 2012上为asp.mvc 4项目提供的模板?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试使用visual studio 2012开发基于asp.net mvc4的Web应用程序。我想使用visual studio已经提供的模板,通过添加幻灯片的图像,但我不知道怎么做那个。



秒,我在sql express 2012中创建了注册数据库表,

创建表注册



RegID int IDENTITY(1,1)主键,

FirstName varchar(50)NOT NULL,

LastName varchar(50)NOT NULL,

用户名varchar(50)NOT NULL,

passeword varchar(50)NOT NULL,

性别varchar(10),

Home_Address varchar(100),

Office_Address varchar(100),

City varchar(25),

状态varchar (25),

Zip varchar(25),

Contact_No int,

电子邮件varchar(25)

);

我需要通过deafult来修改已经可用的registartion表单注册数据库表中可用的信息,如何修改它以使这些字段和存储数据库?

I have been trying to develop a web application based in asp.net mvc4 by using visual studio 2012. I want use the template already provided by visual studio by adding images which will be slide but I coudn't find how to do that.

second, I have registration databse table created in sql express 2012,
Create Table Registration
(
RegID int IDENTITY(1,1) primary key,
FirstName varchar(50) NOT NULL,
LastName varchar(50) NOT NULL,
Username varchar(50) NOT NULL,
passeword varchar(50)NOT NULL,
Gender varchar(10),
Home_Address varchar(100),
Office_Address varchar(100),
City varchar(25),
State varchar(25),
Zip varchar(25),
Contact_No int ,
Email varchar(25)
);
I need to modify the registartion form already availabele by deafult to have the information available in registartion data base table, how i have to modify it to have those fields and store database?

推荐答案

除非您确定,否则不要编辑模板你明白这一切是如何运作的。制作新的Web应用程序的正确方法是基于Web模板(基本Web或MVC)创建新项目,然后修改为您创建的源文件。
Do not edit the template unless you are sure you understand how it all works. The proper way to make a new web app is to create a new project based on the Web template (basic Web or MVC), and then modify the source files that are created for you.


这篇关于如何编辑和使用visual studio 2012上为asp.mvc 4项目提供的模板?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆