将Html模板转换为Asp.net2.0(Html Template into Asp.net2.0)
我有一个HTML页面,图像和CSS的模板。 现在我想转换或使其成为代码隐藏的asp页面。 解决办法是什么? 谢谢
I have an html template having html pages , images and css. Now I want to convert or make it asp pages with code behinds. what is the solution? Thanks
原文:https://stackoverflow.com/questions/5993080
更新时间:2019-11-07 04:58
最满意答案
创建一个新的Web应用程序项目。 删除为您创建的default.aspx页面。 添加一个母版页。 然后根据母版页添加一个新的内容表单。 这个表单(.aspx页面)将自动为你创建代码隐藏:)
创建一个图像文件夹和css文件夹; 添加一个新的样式表到css文件夹。
Create a new Web application project. Delete the default.aspx page that is created for you. Add a master page. Then add a new content form based on the master page. This form (.aspx page) will have the code-behind already created for you automagically :)
Create an images folder and css folder; add a new stylesheet to the css folder.
相关问答
我觉得这个网站蛮不错的:http://www.knowsky.com/aspnet.asp 有空去看看吧! 对了,本人有一个技术论坛,现在需要志同道合的人加盟。 论坛名称:≯笾晟技术论坛≮ 论坛地址:http://nuode.5d6d.com 论坛说明:提供【.Net技术】【SQL SERVER】【Oracle数据库】【JavaScript】【HTML/CSS】【Ajax技术】【XML技术】等多方面的资料。
http://www.verycd.com/topics/2800166/传智播客的宣传视频,经典的入门,然后 你再结合一本c#的书,比如visual c#2005完全自学手册这样的书(要下载书的源代码),自己看一遍,做一遍,结合视频,入门是没问题了,精通的问题是不看书就可以的,是要练出来的,你要多练才精通。asp.net的可以看北大青鸟的视频,感觉不错(个人观点。呵呵)
遵循几个步骤: 安装NuGet包: Microsoft.AspNet.Identity.EntityFramework 将connection string添加到您的web.config / app.config 现在您必须定义您的自定义Database Context : public class MyContext : IdentityDbContext
{
public MyContext()
: base()
...
创建一个新的Web应用程序项目。 删除为您创建的default.aspx页面。 添加一个母版页。 然后根据母版页添加一个新的内容表单。 这个表单(.aspx页面)将自动为你创建代码隐藏:) 创建一个图像文件夹和css文件夹; 添加一个新的样式表到css文件夹。 Create a new Web application project. Delete the default.aspx page that is created for you. Add a master page. Then add
...
这是您需要做的一个小修改: Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.BinaryWrite(binary);
Response.End();
Here's a minor modification you need to make: Response.Clear();
Response.ContentType = "application/x-zip-compressed"
...
如果你将同一主页链接到另一个空白页面说 - Default.aspx那么它将自动在主页面中使用css apply 在这里阅读母版页相关教程 http://www.asp.net/web-forms/tutorials/master-pages if you link same master page to another blank page say - Default.aspx then it will automatically use css apply in master page rea
...
如果您只是想要一个字符串或文本文件,那么您可以使用http://saxonica.com/html/documentation/dotnetdoc/Saxon/Api/Serializer.html并设置http://saxonica.com/html/documentation /dotnetdoc/Saxon/Api/Serializer.html#SetOutputFile(string)如果你想要一个文件或创建一个StringWriter并将其传递给http://saxonica.com/
...
完整的文章可以在 http://raufnicole.wordpress.com/2011/07/08/jquery-jalert/