background image

1.//弹出对话框.点击转向指定页面 Response.Write(&quot;<script>window.alert('该
会员没有提交申请,请重新提交!')</script>&quot;);

Response.Write(&quot;<script>window.location 
='http://www.51aspx.com/bizpulic/upmeb.aspx'</script>&quot;);

2.//

Response.Write(&quot;<script 

language='javascript'>alert('产品添加成功!')</script >&quot;);

复制代码 3.//删除文件 string filename =&quot;20059595157517.jpg&quot;;

pub.util.DeleteFile(HttpContext.Current.Server.MapPath(&quot;../file/&quot;)
+filename);

复 制 代 码 4.// 绑 定 下 拉 列 表 框 datalistSystem.Data.DataView 
dv=conn.Exec_ex(&quot;select -1 as code,' 请 选 择 经 营 模 式 ' as content from 
dealin union select code,content from dealin&quot;);

this.dealincode.DataSource=dv;

this.dealincode.DataTextField=&quot;content&quot;;

this.dealincode.DataValueField=&quot;code&quot;;    

this.dealincode.DataBind();

this.dealincode.Items.FindByValue(dv[0]
[&quot;dealincode&quot;].ToString()).Selected=true;

5.//

<%# 

System.DateTime.Parse(DataBinder.Eval(Container.DataItem,&quot;begtime&
quot;).ToString()).ToShortDateString()%>

复 制 代 码 6.// 标 题 带 链 接 <%#   &quot;<a   class=\&quot;12c\&quot; 
target=\&quot;_blank\&quot;

 

href=\&quot;http://www.51aspx/CV/_&quot;

+DataBinder.Eval(Container.DataItem,&quot;procode&quot;)
+&quot;.html\&quot;>&quot;+ 
DataBinder.Eval(Container.DataItem,&quot;proname&quot;)
+&quot;</a>&quot;%>

复制代码 7.//修改转向<%# &quot;<A href=\&quot;editpushpro.aspx?id=&quot;
+DataBinder.Eval(Container.DataItem,&quot;code&quot;)
+&quot;\&quot;>&quot;+&quot;修改&quot;+&quot;</A>&quot;%>