asp.netÎļþºÍÎļþ¼ÐѹËõ
·¨Ò»£ºµ÷ÓÃwinrar
using Microsoft.Win32;
using System.Diagnostics;
protected void Button1_Click(object sender, EventArgs e)
{
RAR(@"E:\95413594531\GIS", "tmptest", @"E:\95413594531\");
}
/// <summary>
/// ѹËõÎļþ
/// </summary>
/// <param name="DFilePath">ÐèҪѹËõµÄÎļþ¼Ð»òÕßµ¥¸öÎļþ</param>
/// <param name="DRARName">Éú³ÉѹËõÎļþµÄÎļþÃû</param>
/// <param name="DRARPath">Éú³ÉѹËõÎļþ±£´æ·¾¶</param>
/// <returns></returns>
protected bool RAR(string DFilePath, string DRARName,string DRARPath)
{
String the_rar;
RegistryKey the_Reg;
Object the_Obj;
String the_Info;
ProcessStartInfo the_StartInfo;
Process the_Process;
try
{
the_Reg = Registry.ClassesRoot.OpenSubKey(@"Applications\WinRAR.exe\Shell\Open\Command");
the_Obj = the_Reg.GetValue("");
the_rar = the_Obj.ToString();
the_Reg.Close();
the_rar = the_rar.Substring(1, the_rar.Length - 7);
the_Info = " a " + " " + DRARName + " " + DFilePath +" -ep1"; //ÃüÁî + ѹË
Ïà¹ØÎĵµ£º
ASP.NET³ÌÐòÖг£ÓõÄÈýÊ®ÈýÖÖ´úÂë
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
¡¡¡¡´«ËͲÎÊý£º
response.write("£¼script£¾window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)£¼/script£¾")
¡¡¡¡½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string& ......
public void MyGetDepart()
{
string sSql = @"select DepartId,DepartName as 'Ç廪¸½ÖÐ',ParentId from sDepart";
DataTable table = CommClass.GetDataTable(sSql);//BoolDAL.DbHelper.GetDataTabl ......
ÉúÃüÖÜÆÚ²½Öè¸ÅÀÀ
µ±ÎÒÃǶÔASP.NET MVCÍøÕ¾·¢³öÒ»¸öÇëÇóµÄʱºò£¬»á·¢Éú5¸öÖ÷Òª²½Ö裺
²½Öè1£º´´½¨RouteTable
µ±ASP.NETÓ¦ÓóÌÐòµÚÒ»´ÎÆô¶¯µÄʱºò²Å»á·¢ÉúµÚÒ»²½¡£RouteTable°ÑURLÓ³Éäµ½Handler¡£
²½Öè2£ºUrlRoutingModuleÀ¹½ØÇëÇó
µÚ¶þ²½ÔÚÎÒÃÇ·¢ÆðÇëÇóµÄʱºò·¢Éú¡£UrlRoutingModuleÀ¹½ØÁËÿһ¸öÇëÇó²¢ÇÒ´´½¨ºÍÖ´ÐкÏÊ ......
ÔÚasp.netÖÐÉú³ÉhtmlÎļþ´úÂëÈçÏÂ
public static bool CreatHtmlPage(string[] strNewsHtml, string[] strOldHtml, string strModeFilePath, string strPageFilePath)
{
bool Flage = false;
......
ASP.NET Ó¦ÓóÌÐò±ØÐëλÓÚ IIS ÐéÄâĿ¼£¨Ò²³ÆΪӦÓóÌÐò¸ùĿ¼£©ÖС£ASP.NET Ó¦ÓóÌÐò¿É°üº¬ÒѱàÒëµÄ³ÌÐò¼¯£¨Í¨³£ÊÇ°üº¬ÒµÎñÂß¼µÄ DLL Îļþ£©¡¢ÓÃÓÚ´æ´¢Ô¤±àÒë´úÂëµÄÒÑ֪Ŀ¼£¨Ä¿Â¼Ãû×ÜÊÇ \Bin£©¡¢´æ´¢ÔÚ»ùÓÚÎı¾µÄ¡¢Ò׶ÁµÄ Web.config ÎļþÖеÄÅäÖÃÉèÖá¢Ò³¡¢·þÎñÆ÷¿Ø¼þ£¬ÒÔ¼° XML Web ·þÎñ¡£
·þÎñÆ÷ÖÐÈκβ»ÓëÆäËûÓ¦Óà ......