关于asp.net动态文件转静态的html文件!
如果要转化的页面只有一两个,且两者之间的没什么关联,就可以用替换方法实现,先用html编写好一张网页,在需要用到数据库的地方用特殊的标签标记着,例如&id等。在用.net编写一张aspx网页用于把这些标签替换成想要的数据库内容,这样就行了。不过比较麻烦的是每次更新数据库都要转化一次。
还有就是如果是网页之间有很多关联的动态网页用怎样的方法转静态呢,请知道的读者解答一下,我先谢谢了!
相关文档:
Mysql的connector/net5.0下载地址:
http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.0.6.zip/from/pick
安装好以后,
点属性,然后点查找目标,点向上一层目录,找到Binaries\.NET 2.0,然后将这个文件复制到你的工程目录下,一般这样的DLL文件会保存到bin目录下.
在代码页里输入using Mysql.Da ......
1. 打开新的窗口并传送参数:
传送参数:
response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>")
接收参数:
string a = Request.QueryString("id");
string b = Request.QueryStrin ......
In the last post I showed how to use the ASP.NET 3.5 Routing Engine
for URLRewriting purposes. I want to go further in this post by adding
the ability to add variables into a route path and forward and append
query string variables to the destination Web Form request.
A route can contain one or ......
TinyMCE 在Asp.Net中的使用方法其实挺简单的,从官方网站下载TinyMCE),然后将里面的jscripts目录拷到你的网站目录
假设你的aspx页面中某一个地方需要用到编辑器,则加入
<asp:TextBox ID=”brand” TextMode=”MultiLine” runat=”server” />
并同时在header里加入:
<script ......
using System.Text.RegularExpressions;
/// <summary>
/// 页面数据校验类
/// 李天平
/// 2004.8
/// </summary>
public class PageValidate
{ ......