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.// 绑 定 下 拉 列 表 框 datalistSystem.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&
quot;).ToString()).ToShortDateString()%>
复 制 代 码 6.// 标 题 带 链 接 <%# "<a class=\"12c\"
target=\"_blank\"
href=\"http://www.51aspx/CV/_"
+DataBinder.Eval(Container.DataItem,"procode")
+".html\">"+
DataBinder.Eval(Container.DataItem,"proname")
+"</a>"%>
复制代码 7.//修改转向<%# "<A href=\"editpushpro.aspx?id="
+DataBinder.Eval(Container.DataItem,"code")
+"\">"+"修改"+"</A>"%>