1. ÈÃIIS7Ö§³ÖASP
Windows VistaÖÐIIS7ÊÇĬÈϲ»°²×°µÄ£¬ËùÒÔÔÚ°²×°ÍêWindows VistaÖ®ºóÈç¹ûÐèÒª°²×°IIS7µÄ»°£¬¾ÍÒª×Ô¼º¶¯ÊÖÁË¡£°²×°µÄ²½ÖèΪ£º¿ªÊ¼¡·¿ØÖÆÃæ°å¡·³ÌÐò¡·´ò¿ª»ò¹Ø±ÕWindows¹¦ÄÜ¡·InternetÐÅÏ¢·þ Îñ(ÒÔÇ°²Ù×÷ϵͳ°æ±¾ÀïÃæµÄ"Windows components” ÔÚVistaÀïÃæ½Ð×ö"Programs and Features")¡£IIS7°²×°Ê±ÐèҪעÒâµÄÊÇ£¬Èç¹ûÐèÒªASP¡¢ASP.NETµÈµÄÖ§³Ö£¬ÊÇÐèÒª°Ñ¹¦ÄÜÄ£¿é¸ø×°Éϵģ¬Ä¬ÈÏÊDz»°²×°µÄ¡£
2. ½â¾öIIS7ÖÐ.mdbÊý¾Ý¿âÎÊÌâ¡£
ĬÈÏ×°ÍêIIS7Ö®ºó£¬Ê¹ÓÃASP³ÌÐò»á·¢ÏÖÌáʾÊý¾Ý¿âÁ¬½Óʧ°Ü£¬ÔÚÍøÉÏÕÒÁËÕÒ£¬ËµÊÇÒòΪMS JetÒýÇæ¸Ä±äÁËÁÙʱĿ¼µÄλÖ㬵«ÊÇÓÖûÓжÔÁÙʱµÄ´æȡȨÏÞ£¬µ¼ÖÂÊý¾Ý¿âʹÓÃʧ°Ü¡£
¸ø“ϵͳÅÌ:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp”Ŀ¼Ìí¼Ó Ò»¸ö“Authenticated Users”µÄÓû§£¬ÆäÖÐAppDataĿ¼ÊÇÒþ²ØµÄ£¬ÔÚ½øÈëµÄʱºò¿ÉÒÔÖ±½ÓÔÚµØÖ·À¸ÊäÈë·¾¶£¬»òÕßÔÚÎļþ¼ÐÑ¡ÏîÀïÏÔʾÒþ²ØÎļþ¡£
ÉèÖÃȨÏÞ²½Ö裺ÓÒ»÷TempÎļþ¼Ð£¬Ñ¡Ôñ“ÊôÐÔ”¡·Ñ¡Ôñ“°²È«”Ñ¡Ï¡·µ¥»÷“±à¼”¡·³öÀ´“Temp µÄȨÏÞ”¶Ô»°¿ò£¬µ¥»÷“Ìí¼Ó”£¬ÔÚÏÂÃæµÄ“ÊäÈë¶ÔÏ ......
<script language="JavaScript">
function CheckAll(form) {
var x=form.elements;
for (var i=0;i<x.length;i++)
{
var e = x[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
</script>
--Ò³ÃæcheckboxÄÚ²¿
<input type='checkbox' value='"&rs("ID")&"' name=id>
//È«Ñ¡°´Å¥checkbox
<input type='checkbox' name=chkall onclick='CheckAll(this.form)'>
<input type="submit" name="action" value="ɾ³ý" onClick="{if(confirm('¸Ã²Ù×÷²»¿É»Ö¸´£¡\n\nȷʵɾ³ýÑ¡¶¨µÄÁôÑÔ£¿')){this.document.book.submit();return true;}return false;}"> ......
´Ó×Ö·û´®Öзµ»ØÖ¸¶¨ÊýÄ¿µÄ×Ö·û¡£
Mid(string, start, length)
²ÎÊý
string
×Ö·û´®±í´ïʽ£¬´ÓÖзµ»Ø×Ö·û¡£Èç¹û string °üº¬ Null£¬Ôò·µ»Ø Null¡£
Start
string Öб»ÌáÈ¡µÄ×Ö·û²¿·ÖµÄ¿ªÊ¼Î»Öá£Èç¹û start ³¬¹ýÁË string ÖÐ×Ö·ûµÄÊýÄ¿£¬Mid ½«·µ»ØÁ㳤¶È×Ö·û´® ("")¡£
Length
Òª·µ»ØµÄ×Ö·ûÊý¡£Èç¹ûÊ¡ÂÔ»ò length ³¬¹ýÎı¾µÄ×Ö·ûÊý£¨°üÀ¨ start ´¦µÄ×Ö·û£©£¬½«·µ»Ø×Ö·û´®ÖÐ´Ó start µ½×Ö·û´®½áÊøµÄËùÓÐ×Ö·û¡£
˵Ã÷
ÒªÅÐ¶Ï string ÖÐ×Ö·ûµÄÊýÄ¿£¬¿ÉʹÓà Len º¯Êý¡£
ÏÂÃæµÄʾÀýÀûÓà Mid º¯Êý·µ»Ø×Ö·û´®ÖдӵÚËĸö×Ö·û¿ªÊ¼µÄÁù¸ö×Ö·û£º
Dim MyVar
MyVar = Mid("VB Script is fun!", 4, 6)
MyVarµÄֵΪ"Script"¡£
×¢Òâ MidB º¯ÊýÓë°üº¬ÔÚ×Ö·û´®ÖеÄ×Ö½ÚÊý¾ÝÒ»ÆðʹÓá£Æä²ÎÊý²»ÊÇÖ¸¶¨×Ö·ûÊý£¬¶øÊÇ×Ö½ÚÊý¡£
......
³öÏÖÕâ¸öÔÒòÊÇinternetÓû§·ÃÎʵÄȨÏÞ²»¹»£¬ÏµÍ³Ä¬ÈÏȨÏÞÊÇÖ»¶ÁµÄ£¬ËùÒÔÎÒÃÇÒª¸øËü·ÖÅä¿ÉÐÞ¸ÄȨÏÞ£¬·Ï»°²»¶à˵£¬½øÈëÖ÷Ì⣺
1.×ÊÔ´¹ÜÀíÆ÷——>¹¤¾ß——>Îļþ¼ÐÑ¡Ïî——>²é¿´
2.½«"¼òµ¥Îļþ¹²Ïí(ÍƼö)"Ñ¡ÏîÈ¥µô
3.Ñ¡ÔñÄãµÄWEBÎļþ¼Ð£¬¿´ÆäÊôÐÔ£¬ÕâʱÄã»á·¢ÏÖ¶àÁ˸ö"°²È«"Ñ¡Ï£¬ÕÒµ½ÆäÖеÄ"Users (ÄãµÄ¼ÆËã»úÃû/users"Óû§£¬ÔÚÏ·½Ñ¡ÔñÔÊÐíÐ޸ĸ´Ñ¡¿òÈ·¶¨¼´¿É¡£ ......
³£ÓõÄÖض¨Ïò·½Ê½ÓÐ: 301 redirect, 302 redirect Óë meta fresh£º
ASP ÖУ¬ÎÒÃÇÏ°¹ßʹÓà Response.Redirdect À´ÊµÏÖÒ³ÃæµÄÌøת£¬µ«ÊÇÕâÖÖÌøת·½Ê½µÄ״̬ÊÇ 302 µÄ£¬ÊôÓÚÁÙʱÌøת£¬¶ÔÓÚËÑË÷ÒýÇæÀ´Ëµ£¬ÊÇÒ»ÖÖ²»ÓѺõÄÖض¨Ïò·½Ê½¡£
ASP 3.0 ÖУ¬ÓÐÁËÁíÒ»ÖÖ·½Ê½£¬¼´ Response.Transfer ¡£¹ØÓÚÕâ¸ö£¬¿ÉÒÔ²éѯÏà¹ØµÄÐÅÏ¢¡£
ÎÒÃÇÕâÀïÒªÌÖÂÛµÄÊÇ 301 Ìøת£¬ÀýÈçÏÂÃæµÄ´úÂ룺
<%@ Language="VBScript" %>
<%
Response.Status = "301 Moved Permanently"
Response.AddHeader "Location", http://www.gzse7en.com
%>
ÕâÖÖ·½Ê½£¬¶ÔÓÚËÑË÷ÒýÇæÀ´Ëµ£¬ÊÇÓÀ¾ÃÐԵģ¬ÌøתºóµÄÒ³ÃæµÄÄÚÈÝ¿ÉÒÔ±»²ÉÓá£ÓÉ´Ë£¬Ï뵽һЩÈËÎʵ½µÄ£¬ÈçºÎʵÏÖͬһ¸ö¿Õ¼ä°ó¶¨¶à¸öÓòÃû¡£Æäʵ£¬Ö»ÒªÕë¶ÔÊäÈëµÄÓòÃû½øÐÐʶ±ð£¬È»ºó½áºÏ 301 ÌøתÀ´Ñ¡ÔñÄ¿±ê¾ÍÄܺܺÃʵÏÖ¡£¼ÙÉèÓÐÓòÃû www.seo-8.com ºÍ http://www.gzse7en.com£¬·Ö±ðÕë¶Ôͬһ¸ö¿Õ¼äÖÐµÄ div_css ºÍ div_css Á½¸öĿ¼£¬ÄÇôÔõôͨ¹ýÁ½¸öÓòÃûÀ´×Ô¶¯È·¶¨·ÃÎÊÄĸöĿ¼ÄØ£¿Çë¿´ÏÂÃæµÄ´úÂ룺
<%
Dim strHost = LCase(Request.ServerVariables("HTTP_HOST"))
Response.Status = "301 Moved Permanently"
Select Case strHost
&n ......
C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ
Ò»¡¢vs2005—н¨ÏîÄ¿—C#Àà¿â
Àà¿âÔ´ÂëÈçÏÂ(°üº¬½Ó¿Ú£¬À࣬ʼþ½Ó¿Ú)£º
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
//GuidÖµµÄ²úÉú£ºProgram FilesMicrosoft Visual Studio 8Common7Toolsguidgen.exe£¬ÔËÐÐËü£¬Ñ¡Öе¥Ñ¡4£¬µã“New Guid”£¬µã“Copy”£¬½øÈëÀà¿â£¬Õ³Ìù¼´¿É
//Àà½Ó¿Ú
[Guid("F2257E71-ECC9-47ef-A065-F5B530F24B07")]
public interface ini_mng_Interface
{
[DispId(1)] //¹Ì¶¨Ð´·¨£¬Ë÷ÒýºÅ´Ó1¿ªÊ¼
string ini_dme(string entryuser, string entrypass, string agentname, str ......
C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ
Ò»¡¢vs2005—н¨ÏîÄ¿—C#Àà¿â
Àà¿âÔ´ÂëÈçÏÂ(°üº¬½Ó¿Ú£¬À࣬ʼþ½Ó¿Ú)£º
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Data.SqlClient;
using System.Runtime.InteropServices;
namespace entryclass
{
//GuidÖµµÄ²úÉú£ºProgram FilesMicrosoft Visual Studio 8Common7Toolsguidgen.exe£¬ÔËÐÐËü£¬Ñ¡Öе¥Ñ¡4£¬µã“New Guid”£¬µã“Copy”£¬½øÈëÀà¿â£¬Õ³Ìù¼´¿É
//Àà½Ó¿Ú
[Guid("F2257E71-ECC9-47ef-A065-F5B530F24B07")]
public interface ini_mng_Interface
{
[DispId(1)] //¹Ì¶¨Ð´·¨£¬Ë÷ÒýºÅ´Ó1¿ªÊ¼
string ini_dme(string entryuser, string entrypass, string agentname, str ......