using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace basic
{
///
/// QZCheck 的摘要说明
///
public class QZCheck
{
///
/// 检测附件地址
///
///
public static string CheckFujian(string Fujian)
{
string strResult = "";
if (Fujian.ToLower().Contains("http://"))
{
strResult = Fujian;
}
else
{
strResult = "../" + Fujian;
}
return strResult;
}
///
/// 检测图片是否为空
///
///
public static string CheckPathNull(string Path)
{
string strResult = "";
if (Path == null || Path == "")
{
strResult = "upload/default.jpg";
}
else
{
strResult = Path;
}
return strResult;
}
}
}