将HttpContext.Current.Handler转换为page对象,就可以象在.aspx.cs文件中使用一样。
Page p = HttpContext.Current.Handler as Page; p.ClientScript.RegisterStartupScript(p.GetType(), "", MessageBox.Alert(string.Format("图片尺寸不正确,请上传{0}*{1}的图片",width,height), true));
将HttpContext.Current.Handler转换为page对象,就可以象在.aspx.cs文件中使用一样。
Page p = HttpContext.Current.Handler as Page; p.ClientScript.RegisterStartupScript(p.GetType(), "", MessageBox.Alert(string.Format("图片尺寸不正确,请上传{0}*{1}的图片",width,height), true));
上一篇:ETL之增量抽取方式
下一篇:NeatUpload的安装使用
没时间,简单粗暴,直接上代码。前端(aspx文件中): $.ajax({ type: "POST", contentType: "a
AssemblyInfo.cs主要用来设定生成的有关程序集的常规信息dll文件的一些参数请看以下具体说明:
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M