摘要:
sql 日期转换到年-月-日 CONVERT(varchar(100), a.getUserDate, 23)自动排版(类似VC6中的Alt+F8) 编辑.格式化选定内容 Ctrl + K,Ctrl + F 根据周围的代码行,正确缩进选定的代码行<td id="t0" onClick="test(1)" style="cursor:hand">转移日志</td><asp:textbox id="Textbox1"runt=serverstyle= "BACKGROUND-IM 阅读全文
摘要:
ALTER procedure PropertGetPivotasBegin DECLARE @ColumnNames VARCHAR(3000) SET @ColumnNames='' SELECT @ColumnNames = @ColumnNames + '[' + [getDeptID] + '],' FROM ( SELECT DISTINCT getDeptID FROM [pArticleGet] group by [getDeptID] )t SET @Column... 阅读全文
摘要:
C#禁止重复提交 1:连续2次提交 Button1.Attributes.Add("onclick", "this.value='正在提交中,请等待……';this.disabled=true;" + this.GetPostBackEventReference(Button1));2:刷新提交: Response.Write(" <script language=javascript> alert( '采购成功 ');window.location.href=window.location.href 阅读全文
摘要:
.net中防止刷新页面重复提交数据的几种方法1.提交数据后,对页面进行重定向(可以重定向到本页或其他页面)。例子:Response.Write( " <script language=javascript> alert( '操作成功 ');window.location.href=window.location.href; </script> "); 2.利用Session,第一次提交数据时把Session设置一个值,如果重复提交的话判断这个Session是否有值存在就可以了。3.区分是:刷新还是提交(摘抄)DetectRefresh 阅读全文
摘要:
aspx:<div id="selDiv" style=" z-index:100; visibility:visible; clip:rect(0px 110px 80px 92px); position:absolute"><%--left:279px; top:167px"--%><asp:DropDownList ID="workerno_list" runat="server" style="z-index:-1" Width="110 阅读全文
摘要:
GridView分页的实现要在GridView中加入//实现分页AllowPaging="true"//一页数据10行PageSize="10"// 分页时触发的事件OnPageIndexChanging="gvwDesignationName_PageIndexChanging"在服务器事件里Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protectedvoid gvwDesi 阅读全文
摘要:
第一步:Scripts/BudBox.js Scripts.rar里面包含了JQURY和 BudBox.JS第二步:添加引用和CSS javascript的引用<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script> <script src="Scripts/BudBox.js" type="text/javascript"></script> <script type=&quo 阅读全文
摘要:
<style type="text/css"> .rowsbg { color: #003366;background-image: url(images/tt_di22.gif);}table { border-style: none; border-color: inherit; border-width: medium; border-collapse: collapse; width: 933px; } td { border: solid #cccccc 1px; }</style> 阅读全文
摘要:
ifobject_id('dbo.fn_split')isnotnulldropfunction dbo.fn_splitgocreatefunction dbo.fn_split ( @inputstrvarchar(8000), @sepratorvarchar(10) ) returns@temptable (a varchar(200)) as begin declare@iint set@inputstr=rtrim(ltrim(@inputstr)) set@i=charindex(@seprator, @inputstr) while@i>=1 begin 阅读全文
摘要:
protected void Button5_Click(object sender, EventArgs e) { if (GridView1.Rows.Count > 0) { //调用导出方法 ExportGridViewForUTF8(GridView1,"computer.xls"); } else { // obo.Common.MessageBox.Show(this, "... 阅读全文
摘要:
Response.Write("<script>window.close()</script>"); 阅读全文