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

C#实现象ASP中的数据添加

我想用C#实现象ASP中的
rs.addnew
rs( "a ")   =   "aaa "
rs( "b ")   =   123
rs.update
这样方法添加数据,问一下,要怎么做啊?
具体方法如下
              string   dbPath   =   "../App_data/WebSeven.mdb ";
                string   db   =   Server.MapPath(dbPath);
                string   connectionString   =   "Provider=Microsoft.Jet.OLEDB.4.0;Data   Source= "   +   db;
                string   strSQL   =   "SELECT   [Svn_title],Svn_Content   from   [Svn_Product] ";
                OleDbConnection   conn   =   new   OleDbConnection(connectionString);
                OleDbDataAdapter   da   =   new   OleDbDataAdapter(strSQL,   conn);
                OleDbCommandBuilder   cb   =   new   OleDbCommandBuilder(da);
                DataSet   ds   =   new   DataSet();
                da.Fill(ds,   "List ");
                //记录的更新
                //   DataRow   dr   =   ds.Tables[ "List "].Rows[1];
                //
                //   dr.BeginEdit();
                //   dr[ "CustomerID "]   =   "******** ";
                //   dr[ "Address "]   =   "------ ";
&nbs


相关文档:

解除ASP上传200KB的限制

一、修改IIS设置,允许直接编辑配置数据库
二、先在服务里关闭iis admin service服务
找到windows\system32\inetsrv\下的metabase.xml,
打开,找到ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K 把它修改为你所需的大小即可。如:512000(500k)
然后重启iis admin service服务。 ......

asp.net (c#) MySQL 大数据快速分页

aspx页:
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True"
OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" CssClass="b">
<asp:ListItem Value="5">5 per page</asp:ListItem ......

使用ASP发送飞信的免费短信

要实现在asp网站上发送飞信,要求是中国移动的手机用户,并且开通移动飞信功能。
     使用以下asp代码,修改参数为你的手机号及飞信密码,就可以实现在网站发免费短信功能。
    
fsend.asp文件源代码如下:
<%
    Dim fno,fp,tofno,rurl
   ......

asp常用的正则表达式实现字符串的替换


asp常用的正则表达式实现字符串的替换,主要包括去除html标签,去除class标签和去除script标签等
去除html标签正则<\/*[^<>]*>
Function LoseHtml(ContentStr)
Dim ClsTempLoseStr,RegEx
ClsTempLoseStr = Cstr(ContentStr)
Set RegEx = New RegExp
RegEx.Pattern = "<\/*[^<>]*>"
......

ASP中使用SQLServer的事务控制及批执行Sql语句

<%
   SQL1 = "update table1 set a=b where id=1"
   Conn.ExeCute SQL1
    SQL2 = "update table2 set a=b where id=2"
   Conn.ExeCute SQL2
   SQL3 = "update table3 set a=b where id=3"
   Conn.ExeCute SQL3
%>
  &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号