有的时候需要根据MAC来限定登录的计算机,为此查找了不少资料(有来自博客堂和CSDN),下面是获得远程计算机的MAC和局域网中计算机列表的方法。需要引用的命名空间using System;using System.Collections;using System.Diagnostics;using System.Management;using System.Net;using Syst
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net.Mail;
namespace SMTPSendMail
{
public partial class _Default : System.Web.UI.Page
...
void CSkyEducationDlg::OnOK()
{
// TODO: Add extra validation here
//
UpdateData(true);
CString UserName,UserPwd;
UserName = this->m_UserName;
UserPwd = this->m_UserPwd;
...
private void UpdateConfig(string KeyName, string Xvalue)
{
XmlDocument doc = new XmlDocument();
string sPath = Server.MapPath("web.config");
...
sql> shutdown immediate
sql> startup migrate
sql> @/oracle/ora92/rdbms/admin/catpatch.sql
sql> shutdown immediate
sql> startup