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.//
绑定下拉列表框datalist
System.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;%>

8.//
弹出确定按钮

<%# &quot; <A >Cookie

Cookie.Expires=[DateTime];
Response.Cookies(&quot;UserName&quot;).Expires = 0

相关文章:

  • 2021-08-04
  • 2021-08-06
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2022-01-28
猜你喜欢
  • 2021-06-11
  • 2021-11-18
  • 2021-06-11
  • 2021-07-22
相关资源
相似解决方案