2006年2月28日

三十种常用的代码收集(四)

摘要: 26.对话框 private static string ScriptBegin = "<script language=\"JavaScript\">";private static string ScriptEnd = "</script>"; public static void ConfirmMessageBox(string PageTarget,string Content){ str... 阅读全文

posted @ 2006-02-28 15:53 阿伟 阅读(226) 评论(0) 推荐(0) 编辑

三十种常用的代码收集(三)

摘要: 16.模板列 <ASP:TEMPLATECOLUMN visible="False" sortexpression="demo" headertext="ID"><ITEMTEMPLATE><ASP:LABEL text=’<%# DataBinder.Eval(Container.DataItem, "ArticleID")%>’ runat="server" width="80%" id="l... 阅读全文

posted @ 2006-02-28 15:52 阿伟 阅读(198) 评论(0) 推荐(0) 编辑

三十种常用的代码收集(二)

摘要: 8.关于日期格式 日期格式设定 DataFormatString="{0:yyyy-MM-dd}" 我觉得应该在itembound事件中 e.items.cell["你的列"].text=DateTime.Parse(e.items.cell["你的列"].text.ToString("yyyy-MM-dd")) 9.获取错误信息并到指定页面 不要使用Response.Redirect... 阅读全文

posted @ 2006-02-28 15:49 阿伟 阅读(184) 评论(0) 推荐(0) 编辑

三十种常用的代码收集(一)

摘要: 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id");string b = Request.Query... 阅读全文

posted @ 2006-02-28 15:45 阿伟 阅读(247) 评论(0) 推荐(0) 编辑

2005年8月31日

在asp中调用存储过程的几种方法

摘要: 这几天老板老是叫我帮他把asp脚本改成存储过程 ,拼了命的看书,下面是从网上找到的一篇文章觉得不错,收藏它, (^_^)1 这也是最简单的方法,两个输入参数,无返回值:set connection = server.createobject("adodb.connection")connection.open someDSN Connection.Execute "procname varvalu... 阅读全文

posted @ 2005-08-31 21:53 阿伟 阅读(953) 评论(0) 推荐(0) 编辑

把一个asp页面代码改成存储过程实现(第一天上班的任务)

摘要: 原来的asp代码如下:count8 then Response.Write("www.169.comcount=error") response.end else dim conn,jobb,dtime,ddate1,int,ddate2,ddate3,ddate,dtime1,dtime2 set conn=server.CreateObject("adodb.connect... 阅读全文

posted @ 2005-08-31 21:44 阿伟 阅读(832) 评论(0) 推荐(0) 编辑

导航