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

aspx 生成HTML 静态页


aspx 生成HTML 静态页 :http://www.cnblogs.com/ejiyuan/archive/2007/11/09/954325.html
 
cs 页:
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.IO;
using System.Net;
namespace WebHtml
{
    public partial class _Default : System.Web.UI.Page
    {
         protected void Page_Load(object sender, EventArgs e)
        {
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            string strDate = DateTime.Now.ToString("yyMMdd") + "\\" + DateTime.Now.ToString("yyyymmddhhmmss");
            string strFileName = strDate + ".shtml";//存储到数据库中
            string strTitle=Request.Form["Title"].ToString().Trim();//接收传过来的标题
            string strContent=Request.Form["Content"].ToString().Trim();//接收传过来的内容
            string[] content = strContent.Split(new Char[] {'|'});//对内容进行拆分,并保存到数组
            int upbound = content.Length;//数组的上限
            //SqlServerDataBase db = new SqlServerDataBase();
           // bool success = db.Insert("insert into inNews(Title,Content,FilePath)values('" + st


相关文档:

关于struts使用html:select标签的默认选项

方法一:
<html:select property="id">  //这里一定不能再用vlue属性了,只用一个property就可以了   
 <c:forEach var="row" item="${rs.rows}">      
  <html:option value="row.id">  
     ......

javascript 控制 html元素 显示/隐藏


javascript 控制 html元素 显示/隐藏
1。编写js函数
 <script type="text/javascript">
function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";} 
function $(s){return document.getElementById(s);}
 </script>
2. 要显示/隐藏的html元素加上 id 属性
< ......

HTML的颠覆者HTWL(维语言)

      创新,云计算,web2.0,还极有可能web3.0、web4.0...请扪心自问,有创新吗?IT够混乱吗?也许有些人不承认,他们只会说那些是最先进的技术。真的如此?真实的情况是他们想搅乱这个世界,趁浑水摸鱼,也就是想乱世出英雄而已。
      很多人应该知道,web应用的那 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号