public bool CheckName(string s)
{
//检查文件名是否合法 bool b=true;
if(s.IndexOfAny(new char[]{'?','/','\\','<','>',':','*','\"','|'})>=0||s=="")
{
b=false;
}
return b;
}
{
//检查文件名是否合法 bool b=true;
if(s.IndexOfAny(new char[]{'?','/','\\','<','>',':','*','\"','|'})>=0||s=="")
{
b=false;
}
return b;
}
解决方案 »
- 如何在程序中队EXCEL进行操作!!
- 如何在c#,asp.net(B/S)项目中实现实时通信??
- <%#Eval("zpdx").ToString()==""?" <%#Eval(\"ypgw\")%/> ":" <%#Eval(\"zpdx\")%/> "%>
- 这里是不是CSDN里除了那些灌水区以外,人气最好的论坛了?
- asp .net 中的javascript问题!
- 关于Response.Write中字符的问题
- 谁安装过国外的CommunityServer 1.0 ,安装数据库怎么老出错?是不是中文环境的问题
- ispai_rewrite authentication问题
- 求一个匹配域名的正则表达式.
- 本人免费提供aspsir.com的二级域名,先抢先得!!!!!
- www服务器运行的不是ASP.NET 1.1版?(高分)
- 默认值怎么才能为日期时间
{
String FobbStr="sex";
if(s.IndexOf(FobbStr)!=0)
return bool ok=true;
else
return bool ok=false;}