資源簡介
ASP.NET 物流信息管理系統(源碼+數據庫)!
值得下載看看!資源免費,大家分享!!
更多免費資源 http://ynsky.download.csdn.net/

代碼片段和文件信息
using?System;
using?System.Data;
using?System.Configuration;
using?System.Collections;
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?Web
{
????public?partial?class?About?:?System.Web.UI.Page
????{
????????protected?void?Page_Load(object?sender?EventArgs?e)
????????{
????????????bindpage();
????????}
????????private?void?bindpage()
????????{
?????????????if?(!IsPostBack)
????????????{
if?(DBFun.ishtm(“0“))
{
//Response.Write(“000“);
}
else
{
//Response.Write(“1000“);
}
string?siteurl=DBFun.isurl();
//Response.Write(siteurl);
????????????????string?strqry;
????????????????LeftContents.strqryp?=?“Select?*?From?T_About?order?by?id?asc“;
????????????????LeftContents.strfieldp?=?“AboutType“;
????????????????LeftContents.strurlp?=?“About.aspx?id=“;
????????????????LeftContents.strmytitlep?=?“關于我們“;
????????????????if?(Request.QueryString.Count?==?0)
????????????????{
????????????????????strqry?=?“Select?top?1?*?From?T_About?“;
????????????????}
????????????????else
????????????????{
????????????????????strqry?=?string.Format(“Select?*?From?T_About?where?id={0}?order?by?id?desc“?Convert.ToInt32(Request.QueryString[“id“]));
????????????????}
????????????????DataRow?drw?=?DBFun.GetDataRow(strqry);
????????????????if?(drw?==?null)
????????????????{
????????????????????lbl_Contents.Text?=?“請在后臺修改內容!“;
????????????????????Master.Page.title?=?Application[“siteName“].ToString()?+?“?-?關于我們“;
????????????????????return;
????????????????}
????????????????
????????????????lbl_Contents.Text?=?drw[“contents“].ToString();
????????????????lbl_title.Text?=?drw[“Abouttype“].ToString();
????????????????this.title??=?drw[“abouttype“].ToString();
????????????}
????????}
????????protected?string?GetLimitChar(string?strChar?int?intLength)
????????{
????????????//取得自定義長度的字符串
????????????if?(strChar.Length?>?intLength)
????????????{?return?strChar.Substring(0?intLength);?}
????????????else
????????????{?return?strChar;?}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????9855783????????????????????1362
評論
共有 條評論