分页: 26/119 第一页 上页 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 下页 最后页 [ 显示模式: 摘要 | 列表 ]

OleDbType 枚举

[不指定 2008/05/26 14:32 | by Else ]
[quote]成员名称
说明


  
BigInt
64 位带符号的整数 (DBTYPE_I8)。它映射到 Int64。


  
Tags:

iis6启用gzip

[不指定 2008/05/26 01:32 | by Else ]
在iis6启用压缩,网站,服务,前面两个打勾(http压缩)
最好,把临时目录设在别的地方,

文件名:MetaBase.xml

<IIsCompressionScheme  Location ="/LM/W3SVC/Filters/Compression/deflate"
    HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
    HcCreateFlags="0"
    HcDoDynamicCompression="TRUE"
    HcDoOnDemandCompression="TRUE"
    HcDoStaticCompression="FALSE"
    HcDynamicCompressionLevel="10"
    HcFileExtensions="htm
      html
      txt
      swf
      jpg
      gif"
    HcOnDemandCompLevel="10"
    HcPriority="1"
    HcScriptFileExtensions="asp
      dll
      exe
      aspx
      php
      js
      css"
  >
</IIsCompressionScheme>
<IIsCompressionScheme  Location ="/LM/W3SVC/Filters/Compression/gzip"
    HcCompressionDll="%windir%\system32\inetsrv\gzip.dll"
    HcCreateFlags="1"
    HcDoDynamicCompression="TRUE"
    HcDoOnDemandCompression="TRUE"
    HcDoStaticCompression="TRUE"
    HcDynamicCompressionLevel="10"
    HcFileExtensions="htm
      html
      txt
      swf
      jpg
      gif"
    HcOnDemandCompLevel="10"
    HcPriority="1"
    HcScriptFileExtensions="asp
      dll
      exe
      aspx
      php
      js
      css"
  >
</IIsCompressionScheme>

本来想把js 和css放到html那部分,测试的结果没有压缩成!
所以正确的结果应该放在下面的部分
Tags: , ,

mb_substr的應該用

[不指定 2008/05/25 23:08 | by Else ]
utf-8下,php對長度的截取
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php

mb_internal_encoding("UTF-8");  //這個一定要設,要不然就顯示"我們",你可以測試一下
$string = "我們還好了什麼和什麼";
$mystring = mb_substr($string,0,6);
echo $mystring;


?><br />
<?php
echo $string;
?>
Tags: ,

死不了

[不指定 2008/05/25 14:11 | by Else ]

jq更新到1.2.5

[不指定 2008/05/23 14:05 | by Else ]
前几天刚更新到1.2.4 我更新了,没有想到这次又这么快更新了!
详细:jquery.com

引用
Ticket  Summary  Owner  Component  Type  
#2897
  Widget factory doesn't allow passing parameters to plugin methods
  None  core  bug  
#2865
  Opera 9.5 (at least this version) doesn't like null username being sent into XMLHttpRequest, this creates a login prompt in Opera, so jQuery should circumvent this
  None  ajax  bug  
#2852
  jQuery 1.2.4a - Safari 2.0.4 Mac - hide() is broken
  None  core  bug  
#2842
  missing url in $.ajax fails (instead of using the current url)
  flesler  ajax  bug  
#2820
  $.extend not deep copying arrays
  flesler  core  bug  
#2819
  $.fn.load is being overwritten
  flesler  event  bug  
#2816
  erroneous behavior with IE when re-ajaxifying links in an ajax-loaded div
  None  ajax  bug  
#2811
  2 bugs on jQuery.fn.add
  flesler  core  bug  
#2806
  $.ajax: support for dynamic data arguments
  joern  ajax  feature  
#2803
  Faster Map
  flesler  core  enhancement  
#2802
  jQuery.curCSS failes in Safari 2.x
  None  core  bug  
#2787
  Attribute filter ignores elements not appended to DOM tree
   core  bug  
#2771
  jQuery.index cannot index the jQuery object
  flesler  core  bug  
#2743
  Potpourri of small improvements to code size and perfomance
  None  core  enhancement  
#2709
  globalEval works incorrectly in IE6 if the current page has tag in the HEAD
  None  core  bug  
#2708
  Cross Browser event object
  None  core  enhancement  
#2705
  eval scripts in AJAX response does not work well in IE
  None  core  bug  
#2688
  beforeSend should be able to cancel the Ajax call
  yehuda  ajax  enhancement  
#2662
  attr "action" of form and Selectors' attribute filter
  None  core  bug  
#2655
  jQuery.event module optimizations
  None  event  enhancement  
#2619
  Extend makeArray
  None  core  enhancement  
#2613
  bind() breaks event.preventDefault()
   event  bug  
#2605
  data should accept null values
   core  bug  
#2600
  jQuery.extend() should not ignore properties with null values
   core  bug  
#2570
  Opera 9.2.6 AJAX requiring authentication
  None  ajax  bug  
#2567
  $.ajax should allow filtering JS and JSON responses to remove security measures
  flesler  ajax  feature  
#2565
  event.fix performance tweaks patch
  None  event  enhancement  
#2558
  $(...).attr returns different values in IE7 and Firefox
  None  core  bug  
#2548
  .attr() proposal
  None  core  enhancement  
#2543
  Useless variable (re)declarations
  flesler  event  bug  
#2537
  attr() can return undefined instead of 0
  None  core  bug  
#2522
  Remove isFunction from jQuery.event.trigger
  None  event  enhancement  
#2521
  Internet Explorer doesn't seem to like attributes
  None  core  bug  
#2510
  Optimizations for the merge() method
  None  core  enhancement  
#2486
  jQuery.map() string as callback parameter is broken
  None  core  bug  
#2453
  attr(...) function returns undefined when value is 0
  None  core  bug  
#2416
  setting a form field's value to empty string fails
  None  core  bug  
#2378
  Events toggle( fn, fn )
  None  event  enhancement  
#2352
  Simulated click event on anchors in IE6 does not work
  brandon  core  bug  
#2249
  Addition of "once" event handler
  None  event  enhancement  
#2181
  JQuery fails to execute search in pages containing applets.
  None  core  bug  
#2170
  attr() fails to get/set value for maxlength attribute on textarea elements
  None  core  bug  
#2119
  attr('value') confusion
   core  bug  
#2056
  performance enhancements
  None  core  enhancement  
#1871
  fix() in event propagation is slow
  None  event  bug  
#1802
  "mousemove" consumes lots of CPU time in Firefox
  None  event  bug  
#1675
  expando related problem on removeData()
  None  core  bug  
#1591
  IE "Invalid Argument" $('table').attr('non-existent')
  None  core  bug  
#1562
  $.extend is not working properly when using deep extension
  flesler  core  bug  
#1480
  isFunction fails in certain cases
  flesler  core  bug  
#1362
  $.ajax(): pass 'settings' object to 'success' callback
  None  ajax  feature  
#1318
  save some bytes in grep
  None  core  enhancement  
#1170
  attr("style","...") doesn't work in IE7
  john  core  bug  
Tags:

新闻直播地址

[不指定 2008/05/22 16:32 | by Else ]
Windows Media Player文件

新闻直播地址
Tags: ,

现在怎么办?

[不指定 2008/05/22 09:43 | by Else ]
先做后台,在写cs

还是边做边写,目前我走的是这条路! 把函数写在文件上!在aspx里面写函数,能用,这个我应该算入门了,目前现vs2005里面,建好了两个目录了!现在先忙公司的,等一等在过来,开始,完成昨天的工作,在开启下一个文件的工作!

点击在新窗口中浏览此图片
Tags:

C#的商品分类,商品修 改删除

[不指定 2008/05/21 18:08 | by Else ]

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8"%>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO dbo.cuku_cat (catname, catlist, catcont) VALUES (?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
Expression='<%# Request.Form["MM_insert"] == "form2" && Request.Form["id"]=="" && Request.Form["catname"]!="" %>'
CreateDataSet="false"
SuccessURL='<%# "adminproducts.aspx?act=class" %>'
FailureURL='<%# "adminproducts.aspx?act=class" %>'
Debug="true"
>
  <Parameters>
    <Parameter Name="@catname" Value='<%# ((Request.Form["catname"] != null) && (Request.Form["catname"].Length > 0)) ? Request.Form["catname"] : "" %>' Type="VarChar" />
    <Parameter Name="@catlist" Value='<%# ((Request.Form["catlist"] != null) && (Request.Form["catlist"].Length > 0)) ? Request.Form["catlist"] : "" %>' Type="Integer" />
    <Parameter Name="@catcont" Value='<%# ((Request.Form["catcont"] != null) && (Request.Form["catcont"].Length > 0)) ? Request.Form["catcont"] : "" %>' Type="VarChar" />
  </Parameters>
</MM:Insert>

<MM:Update
runat="server"
CommandText='<%# "UPDATE dbo.cuku_cat SET catcont=?, catlist=?, catname=? WHERE id=?" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
Expression='<%# Request.Form["MM_update"] == "form2" && Request.Form["id"]!="" %>'
CreateDataSet="false"
SuccessURL='<%# "adminproducts.aspx?act=class" %>'
Debug="true"
>

  <Parameters>
    <Parameter Name="@catcont" Value='<%# ((Request.Form["catcont"] != null) && (Request.Form["catcont"].Length > 0)) ? Request.Form["catcont"] : "" %>' Type="VarChar" />
    <Parameter Name="@catlist" Value='<%# ((Request.Form["catlist"] != null) && (Request.Form["catlist"].Length > 0)) ? Request.Form["catlist"] : "" %>' Type="Integer" />
    <Parameter Name="@catname" Value='<%# ((Request.Form["catname"] != null) && (Request.Form["catname"].Length > 0)) ? Request.Form["catname"] : "" %>' Type="VarChar" />
    <Parameter Name="@id" Value='<%# ((Request.Form["id"] != null) && (Request.Form["id"].Length > 0)) ? Request.Form["id"] : "" %>' Type="Integer" />
  </Parameters>
</MM:Update>



<MM:Delete
runat="server"
CommandText='<%# "DELETE FROM dbo.cuku_cat WHERE id=?" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
Expression='<%# ((Request.QueryString["act"] == "del") && (Request.QueryString["do"]=="class")) %>'
CreateDataSet="false"
SuccessURL='<%# "adminproducts.aspx?act=class" %>'
FailureURL='<%# "adminproducts.aspx?act=class" %>'
Debug="true"
><Parameters>
  <Parameter Name="@id" Value='<%# ((Request.QueryString["id"] != null) && (Request.QueryString["id"].Length > 0)) ? Request.QueryString["id"] : "" %>' Type="Integer" />  
</Parameters>
</MM:Delete>

<!--插入产品-->
<MM:Insert
runat="server"
CommandText='<%# "INSERT INTO dbo.cuku_products (prodoucts, catid, content, recom, uptop, isnew, cont, pic) VALUES (?, ?, ?, ?, ?, ?, ?, ?)" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
Expression='<%# Request.Form["MM_insert"] == "form1" && Request.Form["id"].Trim()=="" %>'
CreateDataSet="false"
SuccessURL='<%# "adminproducts.aspx" %>'
FailureURL='<%# "adminproducts.aspx?act=add" %>'
Debug="true"
><Parameters>
  <Parameter Name="@prodoucts" Value='<%# ((Request.Form["prodoucts"] != null) && (Request.Form["prodoucts"].Length > 0)) ? Request.Form["prodoucts"] : "" %>' Type="VarChar" />  
  <Parameter Name="@catid" Value='<%# ((Request.Form["catid"] != null) && (Request.Form["catid"].Length > 0)) ? Request.Form["catid"] : "" %>' Type="Integer" />  
  <Parameter Name="@content" Value='<%# ((Request.Form["content"] != null) && (Request.Form["content"].Length > 0)) ? Request.Form["content"] : "" %>' Type="VarChar" />  
  <Parameter Name="@recom" Value='<%# ((Request.Form["recom"] != null) && (Request.Form["recom"].Length > 0)) ? Request.Form["recom"] : "" %>' Type="Boolean" />  
  <Parameter Name="@uptop" Value='<%# ((Request.Form["uptop"] != null) && (Request.Form["uptop"].Length > 0)) ? Request.Form["uptop"] : "" %>' Type="Boolean" />  
  <Parameter Name="@isnew" Value='<%# ((Request.Form["isnew"] != null) && (Request.Form["isnew"].Length > 0)) ? Request.Form["isnew"] : "" %>' Type="Boolean" />  
  <Parameter Name="@cont" Value='<%# ((Request.Form["cont"] != null) && (Request.Form["cont"].Length > 0)) ? Request.Form["cont"] : "" %>' Type="VarChar" />  
  <Parameter Name="@pic" Value='<%# ((Request.Form["pic"] != null) && (Request.Form["pic"].Length > 0)) ? Request.Form["pic"] : "" %>' Type="VarChar" />  
</Parameters>
</MM:Insert>
<MM:Update
runat="server"
CommandText='<%# "UPDATE dbo.cuku_products SET cont=?, content=?, isnew=?, recom=?, catid=?, pic=?, prodoucts=?, uptop=? WHERE id=?" %>'
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
Expression='<%# Request.Form["MM_update"] == "form1" && Request.Form["id"].Trim()!="" %>'
CreateDataSet="false"
SuccessURL='<%# "adminproducts.aspx" %>'
Debug="true"
>
  <Parameters>
    <Parameter Name="@cont" Value='<%# ((Request.Form["cont"] != null) && (Request.Form["cont"].Length > 0)) ? Request.Form["cont"] : "" %>' Type="VarChar" />
    <Parameter Name="@content" Value='<%# ((Request.Form["content"] != null) && (Request.Form["content"].Length > 0)) ? Request.Form["content"] : "" %>' Type="VarChar" />
    <Parameter Name="@isnew" Value='<%# ((Request.Form["isnew"] != null) && (Request.Form["isnew"].Length > 0)) ? Request.Form["isnew"] : "" %>' Type="Boolean" />
    <Parameter Name="@recom" Value='<%# ((Request.Form["recom"] != null) && (Request.Form["recom"].Length > 0)) ? Request.Form["recom"] : "" %>' Type="Boolean" />
    <Parameter Name="@catid" Value='<%# ((Request.Form["catid"] != null) && (Request.Form["catid"].Length > 0)) ? Request.Form["catid"] : "" %>' Type="Integer" />
    <Parameter Name="@pic" Value='<%# ((Request.Form["pic"] != null) && (Request.Form["pic"].Length > 0)) ? Request.Form["pic"] : "" %>' Type="VarChar" />
    <Parameter Name="@prodoucts" Value='<%# ((Request.Form["prodoucts"] != null) && (Request.Form["prodoucts"].Length > 0)) ? Request.Form["prodoucts"] : "" %>' Type="VarChar" />
    <Parameter Name="@uptop" Value='<%# ((Request.Form["uptop"] != null) && (Request.Form["uptop"].Length > 0)) ? Request.Form["uptop"] : "" %>' Type="Boolean" />
    <Parameter Name="@id" Value='<%# ((Request.Form["id"] != null) && (Request.Form["id"].Length > 0)) ? Request.Form["id"] : "" %>' Type="Integer" />
  </Parameters>
</MM:Update>



<MM:DataSet
id="rs"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
CommandText='<%# "SELECT * FROM dbo.cuku_cat ORDER BY id DESC" %>'
Debug="true"
></MM:DataSet>
<MM:DataSet
id="editrs"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
CommandText='<%# "SELECT * FROM dbo.cuku_cat WHERE id = ?" %>'
Debug="true"
>
  <Parameters>
    <Parameter  Name="@id"  Value='<%# ((Request.QueryString["id"] != null) && (Request.QueryString["id"].Length > 0)) ? Request.QueryString["id"] : "" %>'  Type="Integer"   />
  </Parameters>
</MM:DataSet>
<MM:DataSet
id="pds"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
CommandText='<%# "SELECT *  FROM dbo.cuku_products,dbo.cuku_cat  WHERE dbo.cuku_cat.id = dbo.cuku_products.catid  ORDER BY dbo.cuku_products.id desc" %>'
CurrentPage='<%# ((Request.QueryString["pds_CurrentPage"] != null) && (Request.QueryString["pds_CurrentPage"].Length > 0)) ? Int32.Parse(Request.QueryString["pds_CurrentPage"]) : 0     %>'
PageSize="20"
Debug="true"
></MM:DataSet>

<MM:DataSet
id="editpds"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
CommandText='<%# "SELECT *  FROM dbo.cuku_products  WHERE id = ?" %>'
Expression='<%# Myac=="add"  %>'
Debug="true"
>
  <Parameters>
    <Parameter  Name="@id"  Value='<%# ((Request.QueryString["id"] != null) && (Request.QueryString["id"].Length > 0)) ? Request.QueryString["id"] : "" %>'  Type="Integer"   />    </Parameters>
</MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>产品管理</title>
<link href="images/admin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script>
function del(ids,what)
{
  if(confirm("你确定要删除吗?")){
    window.location.href="?act=del&do="+what+"&id="+ids;
  }else{
    return
  }

}
</script>
<script runat="server">
private string myac;  
public string Myac
{
  get { return this.myac; }
  set { this.myac = value; }
}

public string Checked(string chkstr)
{
  return chkstr=="True" ? "checked=\"checked\"":"";
}  

public void Page_Load(Object Src, EventArgs E)
{
  
  if (Request.QueryString["act"]== null)
  {
    
  Myac="go";
  }
  
  else
  {
   Myac=Request.QueryString["act"].Trim();
  }
}
</script>
<mm:if runat="server" expression='<%# Myac=="go" %>'>
  <contentstemplate>
    <table width="600" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td height="25" colspan="5" background="images/bg_lead.png">&nbsp;&nbsp;产品管理</td>
      </tr>
      <tr>
        <td width="6%" align="center" bgcolor="#CCEAFA">编号</td>
        <td width="25%" align="center" bgcolor="#CCEAFA">产品名称</td>
        <td width="23%" align="center" bgcolor="#CCEAFA">分类</td>
        <td width="23%" align="center" bgcolor="#CCEAFA">属性</td>
        <td width="23%" align="center" bgcolor="#CCEAFA">管理</td>
      </tr>
      <ASP:Repeater runat="server" DataSource='<%# pds.DefaultView %>'>
        <ItemTemplate>
          <tr>
            <td height="21" align="center" bgcolor="#CCEAFA"><%# pds.FieldValue("id", Container) %></td>
            <td bgcolor="#CCEAFA"><%# pds.FieldValue("prodoucts", Container) %></td>
            <td bgcolor="#CCEAFA"><%# pds.FieldValue("catname", Container) %></td>
            <td bgcolor="#CCEAFA"><%# pds.FieldValue("isnew", Container) %><%# pds.FieldValue("recom", Container) %><%# pds.FieldValue("isnew", Container) %></td>
            <td align="center" bgcolor="#CCEAFA"><a href="?act=add&amp;id=<%# pds.FieldValue("id", Container) %>">修改</a> <a href="javascript:del('<%# pds.FieldValue("id", Container) %>','pro')">删除</a></td>
          </tr>
        </ItemTemplate>
      </ASP:Repeater>
      <tr>
        <td colspan="5" align="center" bgcolor="#CCEAFA">首页 上一页 下一页  末页</td>
      </tr>
    </table>
  </contentstemplate>
</mm:if>
<mm:if runat="server" expression='<%# Myac=="add" %>'  >
  <contentstemplate>
    <form action="" method='POST' enctype="multipart/form-data" name='form1' id="form1" runat='server'>
      <table width="600" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
        <tr>
          <td height="27" colspan="2" background="images/bg_lead.png" bgcolor="#EFF9FE">&nbsp;&nbsp;修改/添加商品</td>
        </tr>
        <tr>
          <td width="121" height="23" align="center" bgcolor="#CCEAFA">产品名称</td>
          <td width="479" bgcolor="#CCEAFA"><label>
            <input name="prodoucts" type="text" id="prodoucts" value="<%# editpds.FieldValue("prodoucts", Container) %>" />
            <input name="id" type="hidden" id="id" value="<%# editpds.FieldValue("id", Container) %>" />
          </label></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">产品分类</td>
          <td bgcolor="#CCEAFA">
          
            <select name="catid" id="catid">
      <ASP:Repeater runat="server" DataSource='<%# rs.DefaultView %>'>
        <ItemTemplate>
              <option value="<%# rs.FieldValue("id", Container) %>"><%# rs.FieldValue("catname", Container) %></option>
        </ItemTemplate>
       </ASP:Repeater>
            </select>
          </td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">商品图片</td>
          <td bgcolor="#CCEAFA"><label>
            <input name="pic" type="text" id="pic" value="<%# editpds.FieldValue("pic", Container) %>" />
          </label></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">上传图片</td>
          <td bgcolor="#CCEAFA"><label>
            <input type="file" name="fileField" id="fileField" />
          </label></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">说 明</td>
          <td bgcolor="#CCEAFA"><input name="cont" type="text" id="cont" value="<%# editpds.FieldValue("cont", Container) %>" /></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">商品属性</td>
          <td bgcolor="#CCEAFA"><label>
            <input name="isnew" type="checkbox" id="isnew" value="true" <%# Checked(editpds.FieldValue("isnew", Container))%> />
            新商品
            <input name="recom" type="checkbox" id="recom" value="true" <%# Checked(editpds.FieldValue("recom", Container))%>/>
            推荐
            <input name="uptop" type="checkbox" id="uptop" value="true" <%# Checked(editpds.FieldValue("uptop", Container))%>/>
            置顶
</label></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">介 绍</td>
          <td bgcolor="#CCEAFA"><label>
            <textarea name="content" id="content" cols="45" rows="5"><%# editpds.FieldValue("content", Container) %></textarea>
            </label></td>
        </tr>
        <tr>
          <td height="23" align="center" bgcolor="#CCEAFA">&nbsp;</td>
          <td bgcolor="#CCEAFA"><label for="button"></label>
            <input type="submit" name="button" id="button" value="提交" />
            <label>
            <input type="reset" name="button2" id="button2" value="重设" />
            <input name="button3" type="button" id="button3" onclick="history.go(-1)" value="返回" />
            </label></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form1" />
      <input type="hidden" name="MM_update" value="form1" />
    </form>
  </contentstemplate>
</mm:if>
<mm:if runat="server" expression='<%# Myac=="class" %>'  >
  <contentstemplate>
    <table width="387" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
      <tr>
        <td height="25" colspan="5" align="center" background="images/bg_lead.png">&nbsp;&nbsp;分类列表</td>
      </tr>
      <tr>
        <td width="27" height="23" align="center" bgcolor="#CCEAFA">编号</td>
        <td width="79" align="center" bgcolor="#CCEAFA">分类名称</td>
        <td width="30" align="center" bgcolor="#CCEAFA">顺序</td>
        <td width="175" align="center" bgcolor="#CCEAFA">说明</td>
        <td width="60" align="center" bgcolor="#CCEAFA">管理</td>
      </tr>
      <ASP:Repeater runat="server" DataSource='<%# rs.DefaultView %>'>
        <ItemTemplate>
          <tr>
            <td height="23" align="center" bgcolor="#CCEAFA">&nbsp;<%# rs.FieldValue("id", Container) %></td>
            <td align="center" bgcolor="#CCEAFA"><%# rs.FieldValue("catname", Container) %></td>
            <td align="center" bgcolor="#CCEAFA"><%# rs.FieldValue("catlist", Container) %></td>
            <td bgcolor="#CCEAFA"><%# rs.FieldValue("catcont", Container) %></td>
            <td bgcolor="#CCEAFA"><a href="?act=class&amp;id=<%# rs.FieldValue("id", Container) %>">修改</a> <a href="javascript:del('<%# rs.FieldValue("id", Container) %>','class');">删除</a></td>
          </tr>
        </ItemTemplate>
      </ASP:Repeater>
    </table>
    <form runat='server' id="form2" name='form2' method='POST' action="">
      <table width="387" border="0" align="center" cellpadding="3" cellspacing="1">
        <tr>
          <td height="25" colspan="2" background="images/bg_lead.png">&nbsp;&nbsp;产品分类添加</td>
        </tr>
        <tr>
          <td width="100" align="center">分类名称</td>
          <td width="272"><label>
            <input name="catname" type="text" id="catname" value="<%# editrs.FieldValue("catname", Container) %>" />
            <input name="id" type="hidden" id="id" value="<%# editrs.FieldValue("id", Container) %>" />
            </label></td>
        </tr>
        <tr>
          <td align="center">分类顺序</td>
          <td><input name="catlist" type="text" id="catlist" value="<%# editrs.FieldValue("catlist", Container) %>" /></td>
        </tr>
        <tr>
          <td align="center">分类说明</td>
          <td><input name="catcont" type="text" id="catcont" value="<%# editrs.FieldValue("catcont", Container) %>" /></td>
        </tr>
        <tr>
          <td align="center">&nbsp;</td>
          <td><label>
            <input type="submit" name="button4" id="button4" value="提交" />
            <input type="reset" name="button5" id="button5" value="重置" />
            <input type="button" name="button6" id="button6" value="返回" />
            </label></td>
        </tr>
      </table>
      <input type="hidden" name="MM_insert" value="form2" />
      <input type="hidden" name="MM_update" value="form2" />
    </form>
  </contentstemplate>
</mm:if>
</body>
</html>
Tags:

jquery 更新到1.2.4修復的bug52個

[不指定 2008/05/20 17:06 | by Else ]
1.2.4的下載地址
http://jquery.com/
引用
Download jQuery 1.2.4 (15kb, Minified and Gzipped)
Great for production use.

Download jQuery 1.2.4 (95kb, Uncompressed)
Great for testing, learning and development.

Download jQuery 1.2.4 (29kb, Packed)
For those that can't Gzip their JavaScript.

jQuery 1.2.4 Release Notes
What was changed in the release.


Tags:

c#.net 的一个显示记录!

[不指定 2008/05/20 09:26 | by Else ]
昨天晚上dw坏了,做了一个简单的测试,没有做出来,后来想重新安装,没有想到碰到了一个坏的dw,安装时间超过了我的极限,所以今天来到公司,把这个放出来,

<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="DataSet1"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_conn"] %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_conn"] %>'
CommandText='<%# "SELECT * FROM dbo.em" %>'
Debug="true" PageSize="10" CurrentPage='<%# ((Request.QueryString["DataSet1_CurrentPage"] != null) && (Request.QueryString["DataSet1_CurrentPage"].Length > 0)) ? Int32.Parse(Request.QueryString["DataSet1_CurrentPage"]) : 0  %>'
></MM:DataSet>
<MM:PageBind runat="server" PostBackBind="true" />
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="665" border="1">
  <tr>
    <td>id</td>
    <td>password</td>
    <td>name</td>
    <td>emal</td>
    <td>cp_num</td>
  </tr>
  <ASP:Repeater runat="server" DataSource='<%# DataSet1.DefaultView %>'>
    <ItemTemplate>
      <tr>
        <td><%# DataSet1.FieldValue("ID", Container) %></td>
        <td><%# DataSet1.FieldValue("p", Container) %></td>
        <td><%# DataSet1.FieldValue("n", Container) %></td>
        <td><%# DataSet1.FieldValue("e", Container) %></td>
        <td><%# DataSet1.FieldValue("c", Container) %></td>
      </tr>
    </ItemTemplate>
  </ASP:Repeater>
  <tr>
    <td colspan="5" align="center"><a href="<%# Request.ServerVariables["SCRIPT_NAME"] %>?DataSet1_currentPage=0">首页</a> <a href="<%# Request.ServerVariables["SCRIPT_NAME"] %>?DataSet1_currentPage=<%# Math.Max(DataSet1.CurrentPage - 1, 0) %>">上一页</a> <a href="<%# Request.ServerVariables["SCRIPT_NAME"] %>?DataSet1_currentPage=<%# Math.Min(DataSet1.CurrentPage + 1, DataSet1.LastPage) %>">下一页</a> <a href="<%# Request.ServerVariables["SCRIPT_NAME"] %>?DataSet1_currentPage=<%# DataSet1.LastPage %>">末页</a></td>
  </tr>
</table>
</body>
</html>
Tags:
分页: 26/119 第一页 上页 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 下页 最后页 [ 显示模式: 摘要 | 列表 ]