Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : asp

aspÖÐ×Ö·û´®×ª»¯ÎªÊµÌåÀàµÄ·½·¨£¨ÓÅ»¯Æª£¬¼òµ¥ÓÅ»¯£©

option explicit
dim str1,str2
str1 ="order|||shiyang:100,mayang:200"
str2 = "book|||shuming:¼ÆËã»ú,dingjia:100"
'ÉùÃ÷2¸öÈ«¾Ö¶ÔÏó
'·ÅÆúÁËÒ»¿ªÊ¼Ï£ÍûÓÃÊý×é´æ´¢µÄ·½Ê½£¬ÄǸöËäȻЧÂʸü¸ß£¬µ«ÊÇÐèÒª×Ô¶¨ÒåµÄarray_pushobjº¯Êý£¬ËùÒÔ´Ë´¦²»×öÌÖÂÛÁË
dim objname_g
dim classname_g
'·µ»ØʵÌåÀà
function getObjmod(byval str)
dim classname,itemlist,i
dim execstr
classname = split(str,"|||")(0)
execstr = "class "&classname&chr(10)
itemlist = split(split(str,"|||")(1),",")
for i = 0 to ubound(itemlist)
execstr = execstr +"public "&split(itemlist(i),":")(0)&chr(13)&chr(10)
next
execstr = execstr&"end class"&chr(13)&chr(10)&_
" set objname_g = new "&classname

classname_g =classname
execute execstr

end function
'¸³Öµ
function getobjcon(byval str)
dim itemlist,i,execstr
if classname_g = split(str,"|||")(0) and isobject(objname_g) then
set getobjcon = objname_g
else
......

ASPÁ¬½Ó´øÃÜÂëµÄACCESSÊý¾Ý¿â ´úÂë¸ñʽ

Ò»:
1 ÃÜÂëÊÇÊý¾Ý¿âÃÜÂ룺
ÉèÖÃÊý¾Ý¿âÃÜÂ룬´ò¿ªÃÜÂëΪ555´ò¿ªÊ±ÐèҪʹÓÃ
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\1.mdb;User ID=admin;Password=;Jet OLEDB:Database Password=555"
2 Óû§×飺
Óû§ÃûΪ admin ÃÜÂëΪ rr Óû§×éÎļþΪ c:\system.mdw£¬´ò¿ªÊ±ÐèҪʹÓÃ
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\1.mdb;User ID=admin;Password=rr;Jet OLEDB:Database Password=1;Jet OLEDB:System database=c:\system.mdw"
¶þ:
--ADOÁ¬½Ó´®(´øMDWµÄÁ¬½Ó´®)£º
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Test.MDB;User ID=admin;Password=;Jet OLEDB:Database Password=;Jet OLEDB:System database=D:\Test_Sys.MDW;Persist Security Info=False
ÆäÖеÚÒ»¸öpasswordΪAccessµÄÓû§adminµÄÃÜÂ룬µÚ¶þ¸öΪAccessÊý¾Ý¿âµÄÃÜÂë ......

ASPÁ¬½Ó´øÃÜÂëµÄACCESSÊý¾Ý¿â ´úÂë¸ñʽ

Ò»:
1 ÃÜÂëÊÇÊý¾Ý¿âÃÜÂ룺
ÉèÖÃÊý¾Ý¿âÃÜÂ룬´ò¿ªÃÜÂëΪ555´ò¿ªÊ±ÐèҪʹÓÃ
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\1.mdb;User ID=admin;Password=;Jet OLEDB:Database Password=555"
2 Óû§×飺
Óû§ÃûΪ admin ÃÜÂëΪ rr Óû§×éÎļþΪ c:\system.mdw£¬´ò¿ªÊ±ÐèҪʹÓÃ
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\1.mdb;User ID=admin;Password=rr;Jet OLEDB:Database Password=1;Jet OLEDB:System database=c:\system.mdw"
¶þ:
--ADOÁ¬½Ó´®(´øMDWµÄÁ¬½Ó´®)£º
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Test.MDB;User ID=admin;Password=;Jet OLEDB:Database Password=;Jet OLEDB:System database=D:\Test_Sys.MDW;Persist Security Info=False
ÆäÖеÚÒ»¸öpasswordΪAccessµÄÓû§adminµÄÃÜÂ룬µÚ¶þ¸öΪAccessÊý¾Ý¿âµÄÃÜÂë ......

[ת]asp:UpdatePanelÖÐFileUpload¿Ø¼þÓ¦ÓÃÎÊÌâ

ÔÚasp:UpdatePanel¿Ø¼þÖÐÖ±½ÓʹÓÃFileUpload£¬·þÎñ¶ËÊÇÎÞ·¨ÕÒµ½ÉÏ´«ÎļþµÄ¡£
Ö»ÒªÔÚ<Trigger>ÖÐÌí¼Óbutton¾Í¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <ContentTemplate>
                <table border="1" cellpadding="0" cellspacing="0" class="tableframe" width="100%">
                    <tr>
                        <td class="titlebar" style="background-color: #cce4f7; width: 100%; height: 30px"
                            col ......

aspѧϰ±Ê¼Ç


VBScript:
¶¨Òå±äÁ¿Ê±ºò²»ÄÜÖ±½Ó¸³Öµ£¬È磺
Dim i=1 ÊÇ´íÎóµÄ£¬Ó¦¸ÃÕâÑù£º
Dim i
i = 1
——————————————
½áÊø³ÌÐò£ºresponse.end
Ìø³öÑ­»·»òÕߺ¯Êý¡¢×Ó³ÌÐòµÈÓÃexit …
——————————————
±äÁ¿Ãû´óСдģºý¡£
——————————————
response.write “” ÖÐÒªÊä³öË«ÒýºÅֻҪʹÓÃÁ½¸öË«ÒýºÅ£º
1
response.write "<a href=""demo.html"">demo</a>"
Êä³ö½á¹û£º
1
<a href="demo.html">demo</a>
——————————————
ÉèÖÃsessionʱ¼ä:
session.timeout = 30 ‘°ëСʱ
——————————————
ÔÚÓÃsqlÓï¾äinsertµÄʱºò,Èç¹ûÓдæÔÚ”Êý×Ö”ÀàÐÍ,Ò»¶¨Òª²åÈëÒ»¸öÊý×Ö,ÄÄÅÂÊÇÁ ......

[ת]aspµÄtextboxµÄjavascriptÓ¦ÓÃ

<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server"> </script>
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<script language="javascript" type="text/javascript">
//javascriptÉèÖÃÎı¾¿òµÄ×î´ó³¤¶È
function Button1_Click()
{
var txtBox1=document.getElementById("TextBox1");
txtBox1.maxLength=10;
return false;
}
//javascriptÉèÖÃÎı¾¿òµÄÊôÐÔΪֻ¶Á
function Button2_Click() {
var txtBox1=document.getElementById("TextBox1");
txtBox1.readOnly=true;
return false;
}
//javascriptÉèÖÃÐÐÊýÓëÎı¾¿òÀàÐÍ //½«<input type=text />¸Ä³É£¼textarea /> //idºÅ²»±ä
function Button3_Click()
{
//ÒƳýTextBox1
var textBox1=document.getElementById("TextBox1");
var textBox1id=textBox1.id; //µÃµ½TextBox1µÄ¸¸ÔªËØ
var parentE=textBox1.parentElement; pare ......

[ת]aspµÄtextboxµÄjavascriptÓ¦ÓÃ

<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server"> </script>
<html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<script language="javascript" type="text/javascript">
//javascriptÉèÖÃÎı¾¿òµÄ×î´ó³¤¶È
function Button1_Click()
{
var txtBox1=document.getElementById("TextBox1");
txtBox1.maxLength=10;
return false;
}
//javascriptÉèÖÃÎı¾¿òµÄÊôÐÔΪֻ¶Á
function Button2_Click() {
var txtBox1=document.getElementById("TextBox1");
txtBox1.readOnly=true;
return false;
}
//javascriptÉèÖÃÐÐÊýÓëÎı¾¿òÀàÐÍ //½«<input type=text />¸Ä³É£¼textarea /> //idºÅ²»±ä
function Button3_Click()
{
//ÒƳýTextBox1
var textBox1=document.getElementById("TextBox1");
var textBox1id=textBox1.id; //µÃµ½TextBox1µÄ¸¸ÔªËØ
var parentE=textBox1.parentElement; pare ......

¹ØÓÚASPÖнű¾Ö´ÐÐ˳ÐòµÄ½¡È«µÄ½²½â

Ô­ÎĵØÖ·£ºhttp://bbs.bccn.net/thread-225295-1-1.html
¡¡¡¡Èç¹û»ú·¿ÂíÉÏÒª¹ØÃÅÁË£¬»òÕßÄã¼±×ÅÒªºÍMMÔ¼»á£¬ÇëÖ±½ÓÌøµ½µÚËĸö×ÔÈ»¶Î¡£
¡¡¡¡ÒÔÏÂÐðÊöµÄ½Å±¾°üÀ¨·þÎñÆ÷¶Ë½Å±¾ºÍ¿Í»§¶ËµÄ½Å±¾£¬·þÎñÆ÷¶Ë½Å±¾Ö¸ÔÚ·þÎñÆ÷ÉÏÔËÐеÄÄDz¿·Ö½Å±¾£¬±ÈÈç³£¼ûµÄResponse.WriteÏÔÈ»ÊÇÔÚ·þÎñÆ÷ÉÏÔËÐеģ¬·þÎñÆ÷¶Ë½Å±¾¿ÉÒÔʹÓÃVBScriptºÍJScriptÓïÑÔÊéд£¬ÔÚ±¾ÎÄÖÐÈ«²¿Ê¹ÓÃVBScript£¬JscriptÒ»¸öµÀÀí¡£
¡¡¡¡¿Í»§¶Ë½Å±¾Ò²¿ÉÒÔÈÏΪ°üÀ¨VBScriptºÍJavaScriptÁ½ÖÖÓïÑÔ£¬ÊÇÔÚ¿Í»§¶Ëä¯ÀÀÆ÷ÉÏÔËÐеĽű¾ÓïÑÔ¡£±ÈÈçÎÒÃÇ·ÃÎÊÒ»¸öÍøÒ³£¬µ¯³öÒ»¸öÏûÏ¢¿ò£¬Õâ¸ö¾ÍÊÇÓÿͻ§¶Ë½Å±¾×öµÄ(alert, msgbox, etc)£¬¶øÇÒÏÔÈ»²»ÊÇ·þÎñÆ÷¶Ë½Å±¾ÄÜ×öµ½µÄ¡£¿Í»§¶Ë½Å±¾Óë·þÎñÆ÷¶Ë½Å±¾»¹ÓÐÒ»¸öºÜ´óµÄÇø±ð(ÔÚIE¡¢FirefoxµÈä¯ÀÀÆ÷ÖÐ)£¬¾ÍÊÇ¿Í»§¶ËµÄ½Å±¾¿ÉÒÔ·ÃÎÊÎĵµ¶ÔÏóÄ£ÐÍ(DOM)£¬¿ÉÒÔ²Ù×÷Ò³ÃæÖеĶÔÏó(±ÈÈçÐÞ¸ÄÒ³Ãæ±êÌâ¡¢ÐÞ¸ÄÒ»¸ödivµÄinnerHTMLÊôÐÔÖ®Àà)¡£
Ê×ÏÈÎÒÃÇÏÈÀ´Á˽âÒ»ÏÂASPÒ³ÃæÖ´ÐеÄÁ÷³Ì
1.IISÕÒµ½ASPÎļþ£¬Ìá½»¸øASPÒýÇæ(Ò»°ãÊÇASP.DLL)´¦Àí¡£
2.ÒýÇæ´ò¿ªÕâ¸öASPÎļþ£¬ÕÒ³ö<%ºÍ%>Ö®¼äµÄÄÚÈÝ£¬µ±È»»¹ÓÐ<script runAt="server">ºÍ¶ÔÓ¦µÄ</script>Ö®¼äµÄÄÚÈÝ£¬ÕâЩÄÚÈݳÆΪ½Å±¾¿é¡£Ö»Óнű ......
×ܼǼÊý:617; ×ÜÒ³Êý:103; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [9] [10] [11] [12] 13 [14] [15] [16] [17] [18]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ