易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net 实现静态技术问题 - .NET技术 / ASP.NET

静态模板:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>无标题页</title>
  <style type="text/css">
  ul li{float:left; width:200px;}
  p{margin:0}
  </style>
</head>
<body>
<div align="center"><ul><li>zhangsan</li><li>2007-6-25 0:00:00</li></ul></div>
</body>
</html>

生成静态代码:
 protected void Button1_Click(object sender, EventArgs e)
  {
  string mbPath = Server.MapPath("~/temple.htm");
  Encoding code = Encoding.GetEncoding("gb2312");
  StreamReader sr = null;
  StreamWriter sw = null;
  string str = null;
  //读取
  try
  {
  sr = new StreamReader(mbPath, code);
  str = sr.ReadToEnd();
  }
  catch (Exception ex)
  {

  throw ex;
  }
  finally
  {
  sr.Close();
  }
&nb


相关问答:

asp.net分页问题

select top 12 * from Product where [id] not in (select top 12 [id] from Product)
这样可以分页,但是我在后面想加个条件
select top 12 * from Product where [id] not in (select top 12 [id] from Prod ......

asp.net中可输入的下拉框的问题 - .NET技术 / ASP.NET

Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
  ''' <summary>
  '' ......

在asp.net里面脚本出错 - .NET技术 / ASP.NET

function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;

var div1=document.getElementById("divPwd");

if (pwd.value=="")
{
......

求一ASP嵌套页代码 - Web 开发 / ASP

A页面
<table width="200" border="1">
  <tr>
  <td>1</td>
  <td>3</td>
  <td><!--#include/top.html#-- ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号