Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʹÓÃxml flashÓëASPͨÐŵļ¸ÖÖ·½·¨

FlashÖеÄXML¶ÔÏóÒ²Óз½·¨¿ÉÒÔ½«XMLÊý¾ÝÏò·þÎñÆ÷·¢ËÍ¡£¼´sendºÍsendAndLoad¡£send·½·¨Ïòij¸ö URL ´«µÝ XML ¶ÔÏ󣬷µ»ØµÄÐÅÏ¢¶¼±»·¢Ë͵½ÁíÍâÒ»¸öä¯ÀÀÆ÷´°¿Ú£»sendAndLoad ·½·¨Ïòij¸ö URL ·¢ËÍÒ»¸ö XML ¶ÔÏó¡£·µ»ØµÄÐÅÏ¢¶¼·ÅÔÚÒ»¸öXML¶ÔÏóÖС£
ÔÚijÖ̶ֳÈÉÏ£¬ XMLµÄsend·½·¨ºÍsendAndLoad·½·¨ÀàËÆÓÚloadVars¶ÔÏóµÄsend·½·¨ºÍsendAndLoad·½·¨¡£
ÒÔloginϵͳΪÀý¡£Ê×ÏȽ«FlashÖÐÐèÒª´«Ë͵ÄÐÅÏ¢£¨Óû§ÃûºÍÃÜÂ룩ת»»³ÉÒ»¸ö XML ¶ÔÏó£¬È»ºó½«Êý¾Ý×÷Ϊ XML Îĵµ·¢Ë͵½·þÎñÆ÷¶Ë½Å±¾¡£ÔÚ·þÎñÆ÷¶ËÎÒÃÇ»¹ÊÇ´ÓÊý¾Ý¿âÖÐÌáÈ¡ÏàÓ¦µÄÊý¾Ý£¬ÔÚ·þÎñÆ÷¶Ë½Å±¾ÖжÔÕâÁ½ÖÖÐÅÏ¢ÑéÖ¤¡£×îºó½«ÑéÖ¤³É¹¦µÄÐÅÏ¢Ò²ÒÔXML¸ñʽ´«ËÍ»ØFlash¡£Í¼1ÏÔʾÁËÕâÖֽṹ£º
Ê×ÏÈ£¬¿´¿´Êý¾Ý¿âµÄ½á¹¹£¬ºÜ¼òµ¥£¬ÓÃAccess×öÒ»¸öÃûΪlogin.mdb£¨´æ´¢µ½Í¬swf£¬aspÎļþͬͬһĿ¼Ï£©µÄÊý¾Ý¿âÎļþ£¬È»ºóн¨Ò»¸öÃûΪadminµÄ±í£¬µÚÒ»¸ö×Ö¶ÎÃû³ÆÊÇ”id”£¬Êý¾ÝÀàÐÍÊÇ×Ô¶¯±àºÅ£»µÚ¶þ¸ö×Ö¶ÎÃû³ÆÊÇusername£¬Êý¾ÝÀàÐÍÊÇÎı¾¡£×ֶδóС¸ÄΪ16£»µÚÈý¸ö×Ö¶ÎÃû³ÆΪpassword£¬Êý¾ÝÀàÐÍÊÇÎı¾£¬×ֶδóСҲ¸ÄΪ16¡£±í½á¹¹Èçͼ2Ëùʾ£º
½Ó×Å£¬ÎÒÃÇÓÃFlash×öÒ»¸öµÇ¼½çÃ档ΪÁËʹµÃÕâ¸ö½çÃæÔÚÆäËûµØ·½Ò²ÄÜÓõ½£¬¿ÉÒÔ½«ËùÓеÄÔª¼þ¶¼¼¯Öе½Ò»¸öÃûΪloginµÄMCÀïÃæ¡£Õâ¸öMCµÄ»ù±¾½á¹¹ÈçÏ£º
bg²ã£ºÓÃÀ´·ÅÖõǼ½çÃæµÄ±³¾°¡£µÚ¶þÖ¡¼Ó¹Ø¼üÖ¡£»
Title²ã£ºÓÃÀ´·ÅÖñêÌâMC£¬MCÃû×ÖΪtitle£¬ÒòΪֻÊÇÒ»¸ö±êÌ⣬¾Í²»ÁгöÕâ¸öMCµÄ½á¹¹ÁË¡£µÚ¶þÖ¡¼Ó¹Ø¼üÖ¡£»
Inputbg²ã£ºinputÎı¾µÄ±³¾°¡£
InputTXT²ã£ºÁ½¸öinputÎı¾£¬µÚÒ»¸öµÄvarΪname£¬µÚ¶þ¸öµÄvarΪpass£¬ÀàÐÍΪPassword£¬ÎÒÃÇÒªÏò·þÎñÆ÷·¢Ë͵ıäÁ¿¾Í´ÓÕâÀï»ñµÃ£»
Pushbt²ã£ºÒ»¸öÈ·¶¨°´Å¥(Ãû×ÖΪpushbt)£¬ÓÃÀ´·¢ËÍÒ»¸öXML±äÁ¿£¬ÆäactionÈçÏ£º
Action for pushbt:
on (release, keyPress "<Enter>") {
//н¨Ò»¸öxml¶ÔÏ󣬽ڵãÃ÷ΪLOGIN¡£ÔÚÊôÐÔ
//Öдæ·ÅÓû§ÃûºÍÃÜÂë
loginXML = new XML();
loginElement = loginXML.createElement("LOGIN");
loginElement.attributes.name = this.name;
loginElement.attributes.pass = this.pass;
loginXML.appendChild(loginElement);
//н¨Ò»¸öxml¶ÔÏó£¬ÓÃÀ´´æ·Å´Ó·þÎñÆ÷·µ»ØµÄÐÅÏ¢
loginReplyXML = new XML();
loginXML.sendAndLoad("http://localhost/chklogin.asp", loginReplyXML);
Msg = "ÕýÔڵȴý·þÎñÆ÷ÑéÖ¤";
gotoAndStop(2);
}
ÕâÒ»²ãÓÐÁ½Ö¡£¬µÚÒ»Ö¡µÄactionΪstop();µÚ¶þÖ¡ÉϵÄactionΪ


Ïà¹ØÎĵµ£º

ÈçºÎÔÚaspÖÐÉèÖÃ302ºÍ301Ìøת


³£ÓõÄÖض¨Ïò·½Ê½ÓÐ: 301 redirect, 302 redirect Óë meta fresh£º
ASP ÖУ¬ÎÒÃÇÏ°¹ßʹÓà Response.Redirdect À´ÊµÏÖÒ³ÃæµÄÌøת£¬µ«ÊÇÕâÖÖÌøת·½Ê½µÄ״̬ÊÇ 302 µÄ£¬ÊôÓÚÁÙʱÌøת£¬¶ÔÓÚËÑË÷ÒýÇæÀ´Ëµ£¬ÊÇÒ»ÖÖ²»ÓѺõÄÖض¨Ïò·½Ê½¡£
ASP 3.0 ÖУ¬ÓÐÁËÁíÒ»ÖÖ·½Ê½£¬¼´ Response.Transfer ¡£¹ØÓÚÕâ¸ö£¬¿ÉÒÔ²éѯÏà¹ØµÄÐÅÏ¢¡£
......

C#Éú³Écom×é¼þ£¬¹©aspµ÷ÓÃ

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
{
   ......

asp·À¶ñÒâ×¢²á¼°¹àË®

֮ǰд¹ýÒ»¸ö²»ÓÃÑéÖ¤ÂëµÄ·À×¢²á»ú·½·¨£¬Ê¹ÓÃÁ˽«½ü2Äêºó£¬³¹µ×ʧЧ¡£
½ñÌìżȻײ¼ûÒ»¸ö·ÀÖ¹¶ñÒâ×¢²áµÄ·½·¨£¬ÕýÔÚ˼¿¼ing¡£ÏÈ°Ñ·½·¨ÁÐÏ£º
»ñÈ¡¿Í»§¶ËÌá½»µÄÐÅÏ¢£»
½«ÐÅÏ¢´æÈë Session£»
Éú³ÉÒ»¸öËæ»úÊý£¨³ÆΪ ticket£©£»
½«Ëæ»úÊýÒ²´æÈë Session£»
Óà JavaScript µÄÐÎʽ½«Ëæ»úÊýÒÔÁ´½ÓµÄÐÎʽÊä³ö£¬²¢Ìáʾ¿Í»§µã»÷ÉÏÒ ......

asp·ÖÒ³ÏÔʾԴ´úÂë

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!-- #include file="conn.asp" -->
<!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">
<head>
<meta http-equi ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ