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

《ASP.NET常用语句1 20条》

1.//弹出对话框.点击转向指定页面
Response.Write(" <script>window.alert('该会员没有提交申请,请重新提交!')
</script>"
;
Response.Write(" <script>window.location
='http://www.51aspx.com/bizpulic/upmeb.aspx' </script>"
;
2.//弹出对话框
Response.Write(" <script language='javascript'>alert('产品添加成功!')
</script >"
;
3.//删除文件
string filename ="20059595157517.jpg";
pub.util.DeleteFile(HttpContext.Current.Server.MapPath("../file/"

+filename);
4.//绑定下拉列表框datalist
System.Data.DataView dv=conn.Exec_ex("select -1 as code,'请选择经营模式'
as content from dealin union select code,content from dealin"
;
this.dealincode.DataSource=dv;
this.dealincode.DataTextField="content";
this.dealincode.DataValueField="code";   
this.dealincode.DataBind();
this.dealincode.Items.FindByValue(dv[0]["dealincode"].ToString
()).Selected=true;
5.//时间去秒显示
<%# System.DateTime.Parse(DataBinder.Eval
(Container.DataItem,"begtime"
.ToString()).ToShortDateString()%>
6.//标题带链接
<%# " <a class=\"12c\" target=\"_blank\"
href=\"http://www.51aspx/CV/_&amp
;quot;+DataBinder.Eval

(Container.DataItem,"procode"
+".html\">"+
DataBinder.Eval(Container.DataItem,"proname"
+" </a>"%>
7.//修改转向
<%# " <A href=\"editpushpro.aspx?id="+DataBinder.Eval
(Container.DataItem,"code"
+"\">"+"修改
"+" </A>"%>
8.//弹出确定按钮
<%# " <A id=\"btnDelete\" onclick=\"return confirm('你是否
确定删除这条记录吗?');\" href=\"pushproduct.aspx?
dl="+DataBinder.Eval(Container.DataItem,"code"

+"\">"+"删除"+" </A>"%>


相关文档:

asp.net 4种事务


<!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"Cambria Mat ......

关于asp.net页面添加非空校验控件注意事项

从来都很少写博,现在开始写写,方便自己用的时候不用搜索,或许还可以帮助到别人,何乐而不为呢?呵呵。
注意事项一:如果页面点击按钮无法触发验证控件的作用时,解决办法如下:
    c:\WINNT\Microsoft.NET\Framework\v1.1.4322  
   1.开始菜单-->运行cmd    
&nbs ......

asp.net(c#) static关键字用法小结

静态变量
       当我们编写一个类时,其实就是在描述其对象的属性和行为,而并没有产生实质上的对象,只有通过new关键字才会产生出对象,这时系统才会分配内存空间给对象,其方法才可以供外部调用。
       有时候,我们希望无论是否产生了对象或无论 ......

ASP.NET避免页面重新整理时重复发送...

我们可以继承 ASP.NET 的 Page 类别,自行扩充所需的功能!作法如下:
1、继承 System.Web.UI.Page,自订一个 BasePage 类别。
以下为引用的内容:
using
 System;   

  

/// <summary>
  

/// BasePage 的摘要描述
  

///&nbs ......

Flex与ASP.NET结合

1.将flex编译后的程序插入到asp.net页面
flex的最终输出就是一张网页+一个flash(.swf文件)
这么说你明白了吧,其实就是用他生成的网页的方式把那个.swf文件插入到你的asp.net页面就可以了。
假如你的flex3项目名字叫TestApp,最简单直接的办法就是,
把"bin-debug"目录下的:
TestApp.html
TestApp.swf
AC_OETags.js ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号