摘要:
//写windows日志 if (!System.Diagnostics.EventLog.SourceExists("项目1")) { System.Diagnostics.EventLog.CreateEventSource("项目1", "mylog"); } System.Diagnostics.EventLog eventLog = new System.... 阅读全文
posted @ 2013-01-22 14:42
csdnbbs
阅读(239)
评论(0)
推荐(0)
摘要:
1.新建类库,添加引用:System.EnterpriseServices;2.继承ServicedComponent/// <summary> /// Com+ 事件处理 /// </summary> [Transaction(TransactionOption.Required)] public class clsES:ServicedComponent { public void dbAccess(int pid,float nScore) { System.Data.SqlClient.SqlConnection conn; ... 阅读全文
posted @ 2013-01-22 13:51
csdnbbs
阅读(148)
评论(0)
推荐(0)
摘要:
protected void Page_Load(object sender, EventArgs e) { Control c = this.ParseControl(" <asp:Button ID='Button1' runat='server' Text='Button' CommandArgument = 'b1' />"); PlaceHolder1.Controls.Add(c); Button b = (Button)FindControl("Button1"); 阅读全文
posted @ 2013-01-22 10:53
csdnbbs
阅读(91)
评论(0)
推荐(0)

浙公网安备 33010602011771号