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?http://www.xvna.com";
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").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>"%>