在上载时,如何过滤掉一些后缀名 在asp.net中如何编写程序.不让用户上传某些后缀名的文件. 如 ".bat"的 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 if(fileupload1.filename.substring(fileupload1.filename.lastindexof('''))!="bat"{ fileupload1.saveas();} string[] allowedException ={ ".doc", ".txt" }; string fileException = System.IO.Path.GetExtension(fn).ToLower();string fn = System.IO.Path.GetFileName(this.FindFile.PostedFile.FileName);bool ok=false; for (int j = 0; j < allowedException.Length; j++) { if (fileException == allowedException[j]) OK = true; } if (OK) { } 为什么要跨页面提交哟 关于很多网站的新闻生成html页面问题? 记得前段时间我看见过jQuery1.4支持iframe跨域访问来自动设置iframe高度的,但是找不到了 GridView使用模板列 关于自定义控件中(UserControls)的问题 Asp.net可输入下拉框服务器控件 来啊 我实在不懂啊 :( 5555555 客户要求能在线编辑,上传图片,音频,视频,编辑各种数学化学等公式。并能打包下载。 真的没有人愿意回答吗?我发了几个帖了 关于  获取上传文件的扩展名! 关于移动默认网站问题 当一个用户试图多次登录失败后,如何锁住这个用户?(在线等待)
{
fileupload1.saveas();
}
string fileException = System.IO.Path.GetExtension(fn).ToLower();
string fn = System.IO.Path.GetFileName(this.FindFile.PostedFile.FileName);
bool ok=false;
for (int j = 0; j < allowedException.Length; j++)
{
if (fileException == allowedException[j])
OK = true;
}
if (OK)
{
}