代码语言
.
CSharp
.
JS
Java
Asp.Net
C
MSSQL
PHP
Css
PLSQL
Python
Shell
EBS
ASP
Perl
ObjC
VB.Net
VBS
MYSQL
GO
Delphi
AS
DB2
Domino
Rails
ActionScript
Scala
代码分类
文件
系统
字符串
数据库
网络相关
图形/GUI
多媒体
算法
游戏
Jquery
Extjs
Android
HTML5
菜单
网页交互
WinForm
控件
企业应用
安全与加密
脚本/批处理
开放平台
其它
【
Asp.Net
】
ASPxGridView 日期列格式化
作者:
Dezai.CN
/ 发布于
2013/1/16
/
976
<dxwgv:GridViewDataDateColumn Caption="日期" FieldName="ZCYWSHWCRQ" VisibleIndex="4"> <span style="white-space:pre"> </span><PropertiesDateEdit> <CalendarProperties ClearButtonText="清空" TodayButtonText="今天"> </CalendarProperties> </PropertiesDateEdit> <span style="white-space:pre"> </span></dxwgv:GridViewDataDateColumn> <div class="dp-highlighter bg_html"><div class="bar"><div class="tools"><b>[html]</b> <a href="#" class="ViewSource" title="view plain" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;">view plain</a><a href="#" class="CopyToClipboard" title="copy" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;">copy</a><a href="#" class="PrintSource" title="print" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;">print</a><a href="#" class="About" title="?" onclick="dp.sh.Toolbar.Command('About',this);return false;">?</a><div style="position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index: 99;"><embed id="ZeroClipboardMovie_6" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="0" height="0" name="ZeroClipboardMovie_6" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=6&width=0&height=0" wmode="transparent"></div></div></div><ol start="1" class="dp-xml"><li class="alt"><span><span></span></span></li></ol></div><pre name="code" class="html" style="background-color: rgb(255, 255, 255); display: none;"></pre> <pre></pre> <pre></pre> ASPxGridView 跳转至哪一页 <div class="dp-highlighter bg_html"><div class="bar"><div class="tools"><b>[html]</b> <a href="#" class="ViewSource" title="view plain" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;">view plain</a><a href="#" class="CopyToClipboard" title="copy" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;">copy</a><a href="#" class="PrintSource" title="print" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;">print</a><a href="#" class="About" title="?" onclick="dp.sh.Toolbar.Command('About',this);return false;">?</a><div style="position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index: 99;"><embed id="ZeroClipboardMovie_7" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="0" height="0" name="ZeroClipboardMovie_7" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=7&width=0&height=0" wmode="transparent"></div></div></div><ol start="1" class="dp-xml"><li class="alt"><span><span>跳转到</span><span class="tag"><</span><span class="tag-name">input</span><span></span><span class="attribute">id</span><span>=</span><span class="attribute-value">"txtPageNum"</span><span></span><span class="attribute">runat</span><span>=</span><span class="attribute-value">"server"</span><span></span><span class="attribute">style</span><span>="border-left-style:solid;border-right-style:solid;</span></span></li><li class=""><span>border-top-style:solid;border-left-width:1px;border-right-width:1px;border-top-width:1px;</span></li><li class="alt"><span>width:30px;"<span class="tag">/></span><span>页</span></span></li><li class=""><span><span class="tag"><</span><span class="tag-name">asp:Button</span><span></span><span class="attribute">ID</span><span>=</span><span class="attribute-value">"Button2"</span><span></span><span class="attribute">runat</span><span>=</span><span class="attribute-value">"server"</span><span></span><span class="attribute">Text</span><span>=</span><span class="attribute-value">"GO"</span><span></span><span class="attribute">Width</span><span>=</span><span class="attribute-value">"30px"</span><span></span><span class="attribute">Height</span><span>=</span><span class="attribute-value">"19px"</span><span></span><span class="attribute">Style</span><span>="border:1px;</span></span></li><li class="alt"><span>background-color:Transparent;cursor:hand;"<span class="attribute">OnClick</span><span>=</span><span class="attribute-value">"Button2_Click"</span><span></span><span class="attribute">BorderColor</span><span>=</span><span class="attribute-value">"Black"</span><span></span></span></li><li class=""><span><span class="attribute">BorderStyle</span><span>=</span><span class="attribute-value">"Solid"</span><span></span><span class="attribute">ForeColor</span><span>=</span><span class="attribute-value">"#0033CC"</span><span></span><span class="tag">/></span><span></span></span></li></ol></div><pre name="code" class="html" style="display: none;">跳转到<input id="txtPageNum" runat="server" style="border-left-style: solid; border-right-style: solid; border-top-style: solid; border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; width: 30px;" />页 <asp:Button ID="Button2" runat="server" Text="GO" Width="30px" Height="19px" Style="border: 1px; background-color: Transparent; cursor: hand;" OnClick="Button2_Click" BorderColor="Black" BorderStyle="Solid" ForeColor="#0033CC" /></pre> <div class="dp-highlighter bg_csharp"><div class="bar"><div class="tools"><b>[csharp]</b> <a href="#" class="ViewSource" title="view plain" onclick="dp.sh.Toolbar.Command('ViewSource',this);return false;">view plain</a><a href="#" class="CopyToClipboard" title="copy" onclick="dp.sh.Toolbar.Command('CopyToClipboard',this);return false;">copy</a><a href="#" class="PrintSource" title="print" onclick="dp.sh.Toolbar.Command('PrintSource',this);return false;">print</a><a href="#" class="About" title="?" onclick="dp.sh.Toolbar.Command('About',this);return false;">?</a><div style="position: absolute; left: 0px; top: 0px; width: 0px; height: 0px; z-index: 99;"><embed id="ZeroClipboardMovie_8" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="0" height="0" name="ZeroClipboardMovie_8" align="middle" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=8&width=0&height=0" wmode="transparent"></div></div></div><ol start="1" class="dp-c"><li class="alt"><span><span class="keyword">protected</span><span></span><span class="keyword">void</span><span>Button2_Click(</span><span class="keyword">object</span><span>sender,EventArgse)</span></span></li><li class=""><span>{</span></li><li class="alt"><span><span class="keyword">if</span><span>(txtPageNum.Value==</span><span class="keyword">null</span><span>||txtPageNum.Value==</span><span class="string">""</span><span>){</span><span class="keyword">return</span><span>;}</span></span></li><li class=""><span><span class="keyword">this</span><span>.GVSB.PageIndex=Convert.ToInt32(txtPageNum.Value)-1;</span></span></li><li class="alt"><span>}</span></li></ol></div><pre name="code" class="csharp" style="display: none;"> protected void Button2_Click(object sender, EventArgs e) { if (txtPageNum.Value == null || txtPageNum.Value == "") { return; } this.GVSB.PageIndex = Convert.ToInt32(txtPageNum.Value) - 1; }</pre>
试试其它关键字
日期列格式化
同语言下
.
gzip压缩
.
实现http多线程断点续传下载文件
.
实现多线程断点续传下载大文件
.
生成字符串的 CheckSum
.
根据 UserAgent 获取浏览器的类型和版本
.
根据 Agent 判断是否是智能手机
.
隐藏手机号中间四位为*方法
.
合并图片(二维码和其他图片合并)
.
ASP.NET CORE中判断是否移动端打开网页
.
ASP.NET(C#)实现页面计时(定时)自动跳转
可能有用的
.
C#实现的html内容截取
.
List 切割成几份 工具类
.
SQL查询 多列合并成一行用逗号隔开
.
一行一行读取txt的内容
.
C#动态修改文件夹名称(FSO实现,不移动文件)
.
c# 移动文件或文件夹
.
c#图片添加水印
.
Java PDF转换成图片并输出给前台展示
.
网站后台修改图片尺寸代码
.
处理大图片在缩略图时的展示
Dezai.CN
贡献的其它代码
(
4037
)
.
多线程Socket服务器模块
.
生成随机密码
.
清除浮动样式
.
弹出窗口居中
.
抓取url的函数
.
使用base HTTP验证
.
div模拟iframe嵌入效果
.
通过header转向的方法
.
Session操作类
.
执行sqlite输入插入操作后获得自动编号的ID
Copyright © 2004 - 2024 dezai.cn. All Rights Reserved
站长博客
粤ICP备13059550号-3