資源簡介
企業信息管理系統,c# .NET,asp.net做的,企業信息管理,職工管理等等,有數據庫SQLSERVER2005的,附加就可以用了,相當方便,值得參考

代碼片段和文件信息
using?System;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Web;
using?System.Web.SessionState;
using?System.Web.UI;
using?System.Web.UI.WebControls;
using?System.Web.UI.HtmlControls;
namespace?ST_GROUP.EnterpriseOnlineInfoManage
{
///?
///?ST_Admin_addnews?的摘要說明。
///?
public?partial?class?ST_Admin_addnews?:?System.Web.UI.Page
{
ST_Database?ST_database?=?new?ST_Database();
protected?void?Page_Load(object?sender?System.EventArgs?e)
{
if?(Session[“admin“]?==?null)
{
//Response.Write(“ript>alert(\“您還沒有登錄,不能進行接下來的操作,請登錄后斷續!\“); ript>“);
Response.Redirect(“ST_contraller.aspx?cname=noadmin“);
}//?在此處放置用戶代碼以初始化頁面
if(!Page.IsPostBack)
{
DataTable?ST_dt?=?new?DataTable();
string?strsql?=?“select?*?from?ST_newsclass“;
ST_dt?=?ST_database.ReadTable(strsql);
newsclass.DataSource?=?ST_dt;
newsclass.DataTextField?=?“ST_classname“;
newsclass.DataValueField?=?“ST_classname“;
newsclass.DataBind();
}
//?在此處放置用戶代碼以初始化頁面
}
#region?Web?窗體設計器生成的代碼
override?protected?void?OnInit(EventArgs?e)
{
//
//?CODEGEN:?該調用是?ASP.NET?Web?窗體設計器所必需的。
//
InitializeComponent();
base.OnInit(e);
}
///?
///?設計器支持所需的方法?-?不要使用代碼編輯器修改
///?此方法的內容。
///?
private?void?InitializeComponent()
{????
}
#endregion
protected?void?Button1_Click(object?sender?System.EventArgs?e)
{
string?ST_strsql;
ST_strsql?=?“insert?into?ST_tNews?(ST_newstitleST_newscontentST_newsclassST_addtimeST_newsclick)?values?(‘“+?newstitle.Text?+“‘‘“+?newscon.Text?+“‘‘“?+?newsclass.SelectedValue?+?“‘‘“+?System.DateTime.Now.ToString()?+“‘0)“;
ST_database.execsql(ST_strsql);
Response.Write(“ript>alert(\“新聞發表成功!\“); ript>“);
newscon.Text?=?““;
newstitle.Text?=?““;
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1310720??2006-08-14?18:43??第3章企業信息管理\數據庫\Databa
?????文件????1048576??2006-08-14?18:43??第3章企業信息管理\數據庫\Databa
?????文件???????2115??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\App_Code\AssemblyInfo.cs
?????文件???????1401??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\App_Code\Global.asax.cs
?????文件???????3463??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\App_Code\ST_Databa
?????文件???????1901??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\css\ST_Admin_st
?????文件???????1486??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\css\ST_content.css
?????文件????????637??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\css\ST_st
?????文件?????????88??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\Global.asax
?????文件????????661??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\Admin_left_2.gif
?????文件????????918??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\admin_top_bg.gif
?????文件????????110??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\admin_top_close.gif
?????文件????????586??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\admin_top_icon_1.gif
?????文件????????111??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\admin_top_open.gif
?????文件?????????61??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\arrobas_accueil.gif
?????文件???????3790??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\barre2.jpg
?????文件????????661??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\barre_accueil.gif
?????文件????????663??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\barre_interviews.gif
?????文件?????????48??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\bg.gif
?????文件?????????64??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\dot_1.gif
?????文件????????478??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\perso.gif
?????文件????????201??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\pointilles2.gif
?????文件?????????49??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\space.gif
?????文件????????649??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\ti
?????文件??????13701??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\topbanner.jpg
?????文件????????750??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\top_bg2(1).gif
?????文件????????750??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\images\top_bg2.gif
?????文件?????109793??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\productpic\cpu.jpg
?????文件??????69791??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\productpic\ibm.jpg
?????文件???????4738??2006-08-14?18:43??第3章企業信息管理\源代碼\ST_EnterpriseOnlineInfoManage\productpic\mp3.jpg
............此處省略79個文件信息
評論
共有 條評論