<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Tutorials Indexs,</title><link>http://teachmeasp.net/</link><description>Asp tutorials,Php tutorials,jsp tutorials,Html tutorials,cgi tutorials,xml tutorials, examples,articles, resources,source code, and links</description><generator>RainbowSoft Studio Z-Blog 1.8 Spirit Build 80722</generator><language>zh-CN</language><copyright>Copyright 2008 teachmeasp.net. Some Rights Reserved.</copyright><pubDate>Thu, 02 Apr 2009 13:49:21 +0800</pubDate><item><title>From ASP migratory to ASP+- - processing conversation is variable</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/371.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/371.html</guid><description><![CDATA[The EVille of existent ASP edition prohibits to the visit of the certain part of the site,Unless the user has loginned.A few functions resemble examining the favourable bargain price in the future,Sign up attend class,And the condition of enter a school with him current knowledge is to get limitative area.If want,this kind of area is visited below the condition that did not login,You can be guided return entry page afresh only.The user inputs their user name and password in a form,Undertake comparative with the student watch of the database next,If log onto a success,A conversational variable that the name is BlnLoggedIn is set to be true.This kind of method is effective to this site,Go up in an onefold server because of its erect.The method of other uses the Web that is used on Web Farms the program,For instance the conversation of ASP+ stores,Or the conversation of SQL stores.<br/><br/>　 　===Affirm the user is inputted===<br/><br/>　 　 code rescripts the page that the part with the largest workload depends on those getting an user to input,The user inputs these information to become EVille member in order to register.The page that one calls Signup.asp,With will let an user input their important information,Existing member also but this updates record information.Before was not being changed,The data of form submits the page that makes Cookie.asp to through HTTP Post means.The data that this page can confirm form is medium,If be put in the mistake,Guide the user answer Signup.asp to increase wrong number in Query String at the same time.Then statement of a Select Case is met have the output that is based on wrong signal transition.The mistake that we check includes:<br/><br/>　 　 * did not input user name<br/><br/>　 　 * did not input a password<br/><br/>Password of 　 　 * and password affirm not agree with<br/><br/>Name of user of 　 　 * already existed in the database<br/><br/>　 　 is passed all input region (Field) changeover accuses into the server,Add RequiredFieldValidators next,The mistake that head of OK and relaxed processing may produce twice.The server after RequiredFieldValidator simply affirms classics ControlToValidate region is differentiated simply accuses in the input is worth:<br/><br/>　 　%26lt;Tr%26gt;<br/><br/>　 　%26lt;Td Valign= %26quot;top%26quot; %26gt;<br/><br/>　 　%26lt;Asp:REquiredFieldValidator Runat=server<br/><br/>　 　 ControlToValidate = "txtUserName "<br/><br/>　 　 Display = "static "<br/><br/>　 　 ErrorMessage= "%26lt;B%26gt;*%26lt;/ B%26gt; %26quot;<br/><br/>　 　 ForeColor = %26quot;#CC3300%26quot; /%26gt;<br/><br/>　 　%26lt;/ Td%26gt;<br/><br/>　 　%26lt;Td Valign=top%26gt;User Name:%26amp;Lt; /td%26gt;<br/><br/>　 　%26lt;Td Valign=top%26gt;<br/><br/>　 　%26lt;Asp:TExtBox Id= %26quot;txtUserName%26quot; Size=25 Runat=server /%26gt;%26lt;/ Td%26gt;<br/><br/>　 　%26lt;/ Tr%26gt;<br/><br/>　 　 this kind of plan is so simple down to we decide to be in add RequiredFieldValidator to all form to input inside the country.In ASP,We can use function of a VBScript to examine normally the input is worth,And we need what we want to affirm to add RequiredFieldValidator every only now accuse in go.<br/><br/>The comparison that 　 　 affirms as to password and password,The CompareValidator that we can use ASP+ .Should accuse allow us to install ControlToValidate,ControlToCompare and Operator attribute (be in this exemple be equal to date,Namely 'Equal' ) .Two when be appointed accuse with Operator (namely operator) attribute is compared each other.With traditional If. . .Then statement photograph is compared,This kind of method wants apparently simple,Quick:<br/><br/>　 　%26lt;Asp:COmpareValidator Runat=server<br/><br/>　 　 ControlToValidate = "txtConfirm "<br/><br/>　 　 ControlToCompare = "txtPassword "<br/><br/>　 　 Type = "String "<br/><br/>　 　 Operator = "Equal "<br/><br/>　 　 Display = "dynamic "<br/><br/>　 　 ErrorMessage= "%26lt;B%26gt;*%26lt;/ B%26gt; %26quot;<br/><br/>　 　 ForeColor = %26quot;#CC3300%26quot; /%26gt;<br/><br/>　 　 is based on different browser,The JavaScript test and verify that ASP+ Validator accuses a can corresponding executive client to carry (be aimed at IE4.0 above version) ,Perhaps carry out a server to carry test and verify (in the light of other circumstance) .No matter test and verify is how carry out,The test and verify that the server carries is indispensable (carry in order to prevent the fellow of certain archness in the client pattern plays on test and verify) .<br/><br/>　 　 was turn for the last mistake now.If refer user name has existed,This is about to beg little page alter.So far,We had used the server that can carry out server end and client to carry code of test and verify to accuse finished all ASP+ test and verify.As to finally this mistake,We should offer a few servers that define oneself to carry test and verify,Whether did because we need to visit a database,the user name that is asked in order to understand already exist.We can use ASP+ CustomValidator to accuse will solve this one problem.<br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/371.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=371</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=371&amp;key=4c422b43</trackback:ping></item><item><title>Five measure of ASP.NET introduction</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/386.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/386.html</guid><description><![CDATA[Author:Rob Howard<br/>2000 year day of 12 of 11 month  Will at 2000 year day of 28 of 12 month files<br/><br/>The welcome visits column of Nothin' But ASP.NET,My general introduces the certain and main new character in ASP.NET deep for everybody below,And technology of a few other.NET Framework.<br/><br/>In the first column,Five step that we will discuss ASP.NET learn the rudiments of a subject.We will discuss the following column in succession the other and outstanding function in ASP.NET (like model of deploy, state government, process, accuse, the change of the respect such as safety) .<br/><br/>Measure 1:Download and install.NET SDK<br/>ASP.NET is as what the one part of.NET SDK offers,It is to found, the gather of all technologies that generate and test the need of applied process place that is based on.NET Framework.Should download and install.NET SDK,Personnel center is developed toward MSDN Online.NET before asking (English) ,Click next " Download The.NET Framework SDK Beta 1 " .Download content has 90 MB about;Nevertheless,An option can be SDK cent a series of little files to undertake download.<br/><br/>Before installing ASP.NET,Need installs Internet Explorer 5.5,You are OK from Http://www.microsoft.com/windows/ie/default.htm (English) download it.<br/><br/>Notice:The technology of SDK previews version to support the Windows 2000 Server that installed Internet Information Services (IIS) 5.0 only,And version of Beta 1 supports Windows NT 4.0 and IIS 4.0.<br/><br/>Measure 2:Install the give typical examples of frequent learn the rudiments of a subject of.NET Framework<br/>If you had installed SDK,The give typical examples of frequent learn the rudiments of a subject that also should install.NET Framework so.The detailed give a demonstration that includes the give typical examples of frequent learn the rudiments of a subject inside.NET SDK to contain all sorts of ASP.NET character and technology of other.NET.<br/><br/>Should install give typical examples of frequent learn the rudiments of a subject:<br/><br/>Open SDK Overview to link (.NET Framework SDK Overview) ,The top of a table that this link already added to you in process of SDK installation.<br/>After HTML page is opened,Click.NET Framework Samples to link.<br/>According to installation move installs give typical examples.<br/>After installation is finished,You can visit give typical examples in Http://localhost/quickstart/default.htm.<br/>Finally,When browsing acquiescent documentation,The ASP.NET that you can choose page top is linked.The list that this link included ASP.NET give a demonstration.<br/>Measure 3:Join list of ASPNG discussion<br/>One of leaders that Charles Carroll regards the ASP.NET that expands ceaselessly as mass organizations,All the time with one one's heart endeavors the landlord is holding the ASP.NET that is based on email to discuss list.In fact,Develop staff meeting from the seven major at the beginning of the month (the daystart of PDC) ,This discussion list exists all the time.<br/><br/>This discusses list is study and the optimal option that issue increasingly rich ASP.NET to develop personnel knowledge.Charles can be checked and choose all words,Ensure issuance text related to this list,Make discuss not to break away from a theme thereby.<br/><br/>Besides the list of community respect,Group of Microsoft.NET Framework still attends to discuss and issue code of give typical examples regularly.Recently is the ASP.NET give typical examples that Scott Guthrie released a trends to create image.<br/><br/>Should join discussion list,Need to visit Http://www.asplists.com/asplists/aspng.asp only (English) .On this page,The complete list that you can find the email of the different subject related to ASP.NET to discuss list.The most active list is ASPNGBeta,We recommend you to join this list.Choose ASPNGBeta from inside list please.You also can visit Http://www.asplists.com/asplists/aspngbeta.asp directly (English) ,The option that chooses what need to receive email to distribute.<br/><br/>Measure 4:Common problem<br/>If I install SDK and use ASP.NET,Can suspend program of existing ASP application?<br/>Won't.Process of ASP.NET application and process of existing ASP application can move at the same time.<br/><br/>The document that ASP uses is patulous renown (if.asp is mixed.asa) the document that uses with ASP.NET is patulous renown (wait a moment like.aspx, .asax, .ascx, .asmx) be complete independence,Won't replace each other.And,The ISAPI that the processing of process of ASP.NET application becomes independent by is patulous undertake.<br/><br/>Explain at one o'clock:Although ASP is mixed,process of ASP.NET application can move at the same time,But although be below same catalog,They also cannot share applied process information.For example,The setting that makes in Global.asa won't affect process of ASP.NET application,And the setting that makes in Global.asax also won't affect process of ASP application.Similar,Applied process and conversational state information also are not shared.Medium a certain user cannot use process of ASP application to be in process of ASP.NET application same a conversational data that the user adds,Unless found this user afresh.<br/><br/>Found ASP.NET page to need to use Visual Studio or other tool?<br/>Do not need.Although Visual Studio.NET will be offerred,breathtaking design, encode is mixed debug an environment,But found process of ASP.NET application not to need to use it.ASP.NET is abided by as identical as ASP " need to save only " design principle:Any editor that are based on text can be used at establishing program of ASP.NET application.When visitting ASP.NET page for the first time,This page can be compiled automatically,The resource that the following request has compiled the visit.<br/><br/>ASP.NET can be mixed in Windows 95, Windows 98 move on Windows Me?<br/>Not OK.You can use one of these platform to undertake developing really,But process of ASP.NET application must move on Web server,Perhaps move on the Windows 2000 that installed IIS or Windows NT 4.0.<br/><br/>Measure 5:Farther understanding<br/>In this one pace,My general is generalized as far as possible a few online, presswork and the important resource of mobile respect.If get new information,I can continue to complement new natural resources and activity.<br/><br/>Give typical examples of IBuySpy Microsoft ASP.NET uses a program<br/>IBuySpy (English) it is the program of application of electronic business affairs with comprehensive function,It introduced how to use ASP.NET to found Web of high-powered, stretch to use a program in detail.You are OK and online the give typical examples that browse uses a program (include whole source code and documentation) ,The applied process that also can download complete C# or version of Visual Basic.NET.<br/><br/>ASP.NET lead plane serves<br/>Brinkster Inc. (English) it is provider of the biggest service of lead plane of free ASP Web,It offers lead plane of free ASP.NET to serve.Every affiliation member can obtain space of 5 MB to be used at check and learning ASP.NET.At the member status of test and study with,The opportunity that offers know clearly to understand this new technology to development staff.The time that Brinkster provides lead plane of free ASP to serve to had had more than one year,In ASP/ASP.NET lead plane service market is in lead position.<br/><br/>Community site and issue list<br/>ASP.NET community (include person, activity, discussion list and newsgroup to wait) it is very wonderful,It is one of best situations that get the result or solve a problem not only,And among them still a few sites are offerred online give typical examples of frequent learn the rudiments of a subject -- this means you to be able to try ASP.NET,And do not need to install it.<br/><br/>Http://www.aspfree.com (English) it is one of sites of more comprehensive ASP.NET community,Manage by Steve Schofield.You can find many ten article about ASP.NET here,And online give typical examples of ASP.NET frequent learn the rudiments of a subject.If you cannot install NET.SDK,The right choice that this is your study ASP.NET.As award,The 1 of A Preview Of ASP.NET that you still can get Wrox Press is published the online version of the chapter.<br/>Http://www.aspng.com (English) it is the ASP.NET relevant site with more comprehensive another.ASPNG includes the link to the following content:The ASP.NET that carries on Charles Carroll kind with the ASP.NET Workshop that carries on Stephen Walther.Finally,ASPNG still includes a more active email to discuss list.Pertinent information refers to Http://www.asplists.com please (English) .<br/>Http://www.ASP101.com (English) relevant article of a few ASP.NET,And organize by clew, the ASP.NET forum that is based on Web discussion.<br/>Http://www.asptoday.com (English) the online magazine of Wrox Press has had 10 piece about the article of ASP.NET,Limits arrives from ADO+ generate a server to accuse.<br/>Http://www.4guysfromrolla.com (English) 4GuysFromRolla includes a few articles and other and relevant resource.The overview that article content involves ADO+ and ASP.NET itself.<br/>Http://www.devx.com (English) finally,Devx.com includes relevant resource of more comprehensive ASP.NET list and practicable.NET.To the activity from site of book, Web,You can find interested thing here.<br/>Book<br/>The book that three explain.NET originally now:<br/><br/>Presenting C# is wraparound introduced neologism character C# (one of a variety of languages that ASP.NET supports) .If you hope to understand C# handily quickly,You may need this book.<br/>A Preview Of ASP+ was covered to all sorts of content that found ASP.NET page from brief introduction ASP.NET,Include Web service, data and accuse.In addition,It still is involved turn to object of ASP.NET, ASP.NET from ASP model and how to use the theme such as COM component in.NET.This book comes out before version of Beta 1.<br/>A Programmer's Introduction To C# by Eric Gunnerson (the member of C# group) ,Discuss to what C# of.NET language had development.<br/>Activity<br/>If you are willing to attend what the conference watchs concerned ASP.NET and.NET Framework,demonstrate,The proposal is as follows:<br/><br/>Wrox (English)<br/>Meeting of staff of development of Wrox Europe will be held in Dutch Amsterdam at day of 29 of 11 month.All sorts of themes related conference discussion and ASP.NET and.NET,Member of panel of.NET Framework will attend this second meeting.Hope you will attend this meeting.<br/><br/><br/>InsideASP (English)<br/>InsideASP conference will be in to 25 day at day of 22 of 2 month of Florida abstruse orchid hold more.The relevant issue that the conference discusses ASP and ASP.NET community only.Like Wrox conference,Member of panel of.NET Framework also will attend this meeting.<br/><br/><br/>ASP.NET crash course (English)<br/>Seminar of four days meets by a definite date how accuse centralized discussion with ASP+ server build system of complex window of seesaw pattern HTML.The newest version that we also will introduce Microsoft ADO to you -- ADO+ .The time that should understand the conference and address,Refer to site of this Web please.<br/><br/>Summary<br/>Anyhow,It is very easy to join and run ASP.NET.Now,Already a few very useful resource can help you learn this kind of skill,Hope you can join the community writer rank that expands increasingly.In the article of next month,The change that we manage position of the conversation in discussion ASP.NET (a of ASP major change) .<br/><br/><br/>If you are right,suggest,Send mail please to Netcolum@microsoft.com.<br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/386.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=386</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=386&amp;key=4c47a722</trackback:ping></item><item><title>ASP 3.0 advanced process designing (three ten nine)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/353.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/353.html</guid><description><![CDATA[8.4.3 founds record volume<br/>       It is very easy to found volume of a record,Will come true through calling the Open method of Recordset object:<br/>       Recordset.Open [Source] , [ActiveConnection] , [CursorType] , [LockType] , [Options]<br/>       If its parameter and specification express 8-3 place to show:<br/>Express 8-3 The parameter of Open method reachs a specification<br/>Join number<br/>Say bright<br/><br/>Source<br/>Data source.Object of string of the inquiry that can be the watch name in the database, memory or process, SQL, Command or the other command object that apply to the person that offer<br/><br/>ActiveConnection<br/>The connection that record volume uses.Can be the Connection object that string of a join perhaps opens<br/><br/>CursorType<br/>Use cursor type.One of the cursor type that must be a definition,Default value is AdForwardOnly<br/><br/>LockType<br/>Use lock decides a type.A kind in locking up calm type must be a definition,Default value is AdLockReadOnly<br/><br/>Options<br/>What is the content of parameter of Source of the person that tell to offer,If string of watch, text is waited a moment<br/><br/>For example,The record volume on watch of the Authors in wanting to open database Pubs:<br/>Dim RsAuthors<br/><br/>Set RsAuthors = Server.CreateObject("ADODB.Recordset" )<br/><br/>RsAuthors.Open "authors" , strConn<br/><br/>' Do Something Here<br/><br/>RsAuthors.Close<br/>Set RsAuthors = Nothing<br/>Notice,A few parameter were not appointed.Actually,All parameter are optional,Corresponding attribute can be installed to be worth for them before opening record market:<br/>Dim RsAuthors<br/><br/>Set RsAuthors = Server.CreateObject("ADODB.Recordset" )<br/><br/>With RsAuthors<br/>       .Source = "authors "<br/>       .ActiveConnection = StrConn<br/>       .CursorType = AdOpenForwardOnly<br/>       .LockType = AdLockReadOnly<br/>       .Open<br/>End With<br/><br/>' Do Something Here<br/><br/>RsAuthors.Close<br/>Set RsAuthors = Nothing<br/>Once open record market,Current index is located in automatically on the first record.If be in,the record was not recorded centrally,So EOF and BOF attribute are True:<br/>RsAuthors.Open "authors" , strConn<br/><br/>If RsAuthors.BOF And RsAuthors.EOF Then<br/>       ' Recordset Is Empty<br/>End If<br/>1.       Options parameter<br/>The Options parameter of Open method allows to assign command text content.It can be one of constant of the following CommandTypeEnum:<br/>·AdCmdText:Text commands,For instance SQL string.<br/>·AdCmdTable:Express a name.<br/>·AdCmdStoredProc:Memory process name.<br/>·AdCmdFile:The saved file name that records part.<br/>·AdCmdTableDirect:Express a name.<br/>·AdCmdURLBind:URL address.<br/>The distinction of AdCmdTable and AdCmdTableDirect is very little,If want to use the entire line in the watch,Use AdCmdTableDirect will be carried out as a result of ADO certain interior is optimized and make traversal speed becomes a bit a few faster.<br/>If did not specify jussive type,The jussive kind that ADO must push cipher out to carry out,This will cause additional expense.<br/>There still are two options here:AdCmdUnspecified expresses to did not specify a type;AdCmdUnknow states jussive type is sealed.Popularly won't use them possibly.<br/>Additional options<br/>Options parameter can be the anyone in above constant,But also can join following ExecuteOptionEnum constant:<br/>·AdAsyncExcute:Asynchronous ground executes an order.<br/>·AdAsyncFetch:After acquiring initiative travel part,Asynchronous ground gets the travel that remain.<br/>·AdAsyncFetchBlocking:Besides get a record not to prevent a command to move beyond,Other as similar as AdAsyncFetch.<br/>·AdExechteNoRecords:The command does not return any records.<br/>Asynchronous processing means backstage to execute an operation,Can run a command,Continue next other job,And do not need to await its to carry out end (synchronous operation) .When founding user interface,This appears particularly convenient,Because can obey the order,return,Show a few content to the user,And get with what duration occupies still backstage undertakes.When returning record volume,This is not very useful to ASP programmer,Do not support ADO incident because of script language,When did record volume already finish fill to move so cannot be informed.Update when processing, delete or insert data command and when returning record volume,Can use asynchronous to operate,The ability below the circumstance that caring a result only namely is used.<br/>On the other hand,AdExecuteNoRecords option is very useful.The order that it tells ADO to carry out does not return any data.So,Not was necessary to found record volume (anyhow,The likelihood is empty) .The inquiry that update or adds data what this meeting is moving quickly is operated.<br/>To add one of these option,Can use Or symbol (be equal at plus " + " )<br/>AdCmdStoredProc Or AdExecuteNoRecords<br/><br/>AdCmdStoreProc + AdExecuteNoRecords<br/>In below one chapter,the introduction that sees pair of relevant content are more detailed,Because this is handling an order (is not record volume) when the meeting is more useful.<br/>2.       In the record concentration moves<br/>Once open market of a record,Often need one by one each record.This need uses EOF property.When arriving at the fine that records part,EOF turns into True,Because can found a loop so:<br/>RsAuthors.Open "authors" , strConn<br/><br/>While Not RsAuthors.EOF<br/>       Response.Write RsAuthors("au_lname:) %26 " , "%26 _<br/>                             RsAuthors(%26quot;au_fname%26quot; ) %26amp; %26quot;%26lt;BR%26gt; %26quot;<br/>       RsAuthors.MoveNext<br/>Wend<br/>The ability when the example above is True to EOF attribute circularly all the time is exited.MoveNext method is used at moving to be recorded to below one.<br/>If record collect to allow to move backward,Can use MovePrevious method.Below this kind of circumstance,The need in the loop detects BOF attribute is worth.The MoveFirst that additionally respectively still shift is recorded with last to the first and MoveLast method:<br/>RsAuthors.Open "authors" , strConn, adOpenDynamic<br/>' Now On First Record<br/><br/>RsAuthors.MoveLast<br/>' Now On Last Record<br/>RsAuthors.MovePrevious<br/>RsAuthors.MovePrevious<br/>' Now Three Rows From The End Of The Recordset<br/><br/>RsAuthors.MoveFirst<br/>' Back At The Beginning Again<br/>3.       Use Fields assembles<br/>Fields gather includes a record to center each field (row) Fields object.The default that Fields gather is record volume assembles,Because of when this is visitting a field, can omiting,Be like the While of Alexandrine face. . The circumstance in.Wend example.Because of this,The method that has a variety of visit fields:<br/>RsAuthors.Fields("au_lname" ).Value<br/>RsAuthors("au_lname).Value<br/>RsAuthors(1).Value<br/>RsAuthors.Fields(1).Value<br/>Can use field name,Or use its position in gather.Use name is best,Because will make so code more safeguard easily.<br/>The default attribute that Value attribute is a field,Also can omit accordingly,For instance:<br/>RsAuthors("au_lname" )<br/>If think all previous is all field,Can use For Each structure:<br/>For Each FldAuthor In RsAuthors.Fields<br/>       Response.Write FldAuthor.Name %26 " : "%26 _<br/>                             FldAuthor.Value %26amp; %26quot;%26lt;BR%26gt; %26quot;<br/>Next<br/>The name that this example will print each field and value.<br/>4.       Bookmark<br/>When the record centers shift when,The place that the likelihood needs to preserve a record,Move again later come back.With true bookmark likeness,Bookmark of volume of a record is an only index that points to single record.<br/>To use a title label pasted on the cover of a Chinese-style thread-bound book,Need to gift Bookmark property value only a variable:<br/>VarBkmk = RsAuthors.Bookmark<br/>Next,Can move centrally in the record,On the corresponding record that can carry contrary command to move the record to had done bookmark to label later:<br/>RsAuthors.Bookmark = VarBkmk<br/>When the record searchs a record centrally,Bookmark is very useful.In this chapter later 8.4.5 have a relevant case in the section.<br/>Notice,Be not all record volume to support a title label pasted on the cover of a Chinese-style thread-bound book,Supports method (discuss below) aux will be able to identifies his to whether support a title label pasted on the cover of a Chinese-style thread-bound book.<br/>Notable a bit more important be,Cannot span to record collect differently to use a title label pasted on the cover of a Chinese-style thread-bound book,Although these record volume are same command,found.Consider the following code:<br/>RsAuthors.Open "authors" , strConn<br/>RsAuthorsOther.Opne "authors" , strConn<br/><br/>VarBkmk = RsAuthors.Bookmark<br/>VarBkmkOther = RsAuthorsOther.Bookmark<br/><br/>Although two records volume is,found with same command,But the bookmark that records part is different.<br/>Can use Clone method to obtain exchangeable bookmark,But here we do not discuss it.<br/>5.       Supportive function<br/>As above,Be not all record volume to support a title label pasted on the cover of a Chinese-style thread-bound book.Still having a lot of other record volume option also is not by what the person that all offerring or record volume kind support,Because this can use Supports method test and verify.<br/>Supports method uses one or more CursorOptionEnum to be worth as parameter,Return True or False to make clear whether to support this option.The list of these values is quite huge,So its in rank appendix F.<br/>For example:<br/>If RsAuthors.Supports(adBookmark) Then<br/>' The Recordset Supports Bookmarks<br/>VarBkMk = RsAuthors.Bookmark<br/>       End If<br/>       Can use Or or plus " + " combine many constant:<br/>       If RsAuthors.Supports(adBookmark Or AdFind) Then<br/>              ' The Recordset Supports Bookmarks And Use Of Find<br/>              VarBkMk = RsAuthors.Bookmark<br/>       End If<br/><br/>8.4.4 filters record volume<br/>       Filtering is record of demarcate of a kind of momentarily a kind of method that records it is thus clear that centrally.If show the certain notes that records concentration only,But do not need to inquire a database afresh every time again,This kind of method is very useful.<br/>1 ． Use condition filters<br/>Filter attribute has many parameter,Among them one is conditional expression,It special the Where in resembling SQL is clausal:<br/>RsAuthors.Filter = "state = 'ca' "<br/>The record that volume of record of this statement demarcate shows to city name is Ca only.Use this to filter the condition will make current index returns the first to match a record to go up.The overall record that can all over all previous to record concentration,And match conditional record only just see.<br/>Not just be confined to is onefold condition,Still can use And or Or to join many conditions together:<br/>RsAuthors.Filter = "au_lname = 'Homer' Or Au_lname = 'Francis' "<br/>This will filter the record that gives a surname to be Francis or Homer.<br/>The example above showed one lists those who match a cost to filter method,Also can use below in operator any a kind:<br/>%26lt; :Be less than.<br/>%26gt; :Be more than.<br/>%26lt;= :Be less than be equal to.<br/>%26gt; = :Be more than be equal to.<br/>%26lt;%26gt; :Do not be equal to.<br/>LIKE:Match accord with.<br/>Should use when be being operated through matching accord with,Can use " * " or " % " symbol.For example:<br/>RsAuthors.Filter = "au_lname LIKE 'Ho%' "<br/>" * " or " % " connect as match accord with,Match any character,In can matching Au_lname field because of the example above this with " Ho " all records that character begins.<br/>Can use empty string clear sky filters condition,Will show overall record so:<br/>RsAuthors.Filter = " "<br/>2 ． Use constant filters<br/>Filter attribute also can regard his as parameter with FilterGroupEnum constant:<br/>·AdFilterNone:Clear sky filters currently condition,As identical as the effect that uses an empty string.<br/>·AdeFilterPendingRecords:Show those already were changed only,But the record that has not sent a server,Updating mode to fall group by group only usable.<br/>·AdFilterAffectedRecords:The record that shows those sufferring to call Delete, Resync, UpdateBatch and CancelBatch method effect last time only.<br/>·AdFilterFetchedRecords:The record in cache of indication high speed,Call the result when reading the order that takes a record last time namely.<br/>·AdFilterConflictingRecords:The record that shows newer in be updated group by group last time failure.<br/>Can see later introduce about what update group by group.<br/>3 ． Use bookmark filters<br/>Last kinds filter the method that records part is to use array of a bookmark.Can use this technology to found list of a record,Apply to filter again next the condition filters to its.For example:<br/>RsAuthors.Open "authors" , strConn, adOpenKeyset, _<br/>                     AdLockReadOnly, adCmdTableDirect<br/><br/>' Save Bookmark For The First Record<br/>AvarBkmk(0) = RsAuthors.Bookmark<br/><br/>' Move Forward Two Records<br/>RsAuthors.MoveNext<br/>RsAuthors.MoveNext<br/><br/>' Save Bookmark For The Third Record<br/>AvarBkmk(1) = RsAuthors.Bookmark<br/><br/>' Move To The End And Save The Bookmark<br/>RsAuthors.MoveLast<br/>AvarBkmk(2) = RsAuthors.Bookmark<br/><br/>' Now Apply The Filter<br/>RsAuthors.Filter = Array(avarBkmk(0) , avarBkmk(1) , avarBkmk(2) )<br/><br/>' Now Loop Through The Recordset<br/>While Not RsAuthors.EOF<br/>       Response.Write RsAuthors(%26quot;au_lname%26quot; ) %26amp; %26quot;%26lt;BR%26gt; %26quot;<br/>       RsAuthors.MoveNext<br/>Wend<br/>Come when the loop when recording collect fine position,Meeting discovery is recorded three times only,Because only three bookmark apply at filtering condition.<br/>Notice,Cannot use array AvarBkmk directly,Must use Array function to change each bookmark into diverse array.<br/><br/>8.4.5 searchs a record<br/>       Search single record to be finished by Find method.It is similar to use condition filter method:<br/>       RsAuthors.Find "au_lname = 'Lloyd' "<br/>       The mainest distinction between them depends on this kind of method can having a requirement only,Do not allow to use And or Or.<br/>       Can use optional parameter to appoint a few additional options,Its complete grammar is as follows:<br/>       Recordset.Find Criteria, [SkipRows] , [SearchDirection] , [Strat]<br/>       SkipRows is a number,The linage that before expressing to beginning to search a record, has jumped.Default is 0,Inquiry begins from current travel.<br/>       SearchDirection can be AdSearchForward,Express to search a record ahead;Or AdSearchBackward,Express to search a record backward.<br/>       Start is a bookmark,Point out the position that begins to search a record.<br/>       If open corresponding record,Current index will be located in on the record that match,If did not find a record,Will be located in so below one of two positions:<br/>       If · is forward search,At the back of be located in position of record volume fine,EOF is installed to be True.<br/>       If · is to be searched backward,Before be located in record volume to begin the position,BOF is installed to be True.<br/>       Use bookmark saves the seat<br/>       If did not find corresponding record,The new fixed position of the record can be solved easily by bookmark,Because can feel current the position makes a title label pasted on the cover of a Chinese-style thread-bound book,The record that if searching a record,place did not find to need in the process,So move again return the seat that saves last.<br/>       For example:<br/>       ' Save The Current Position<br/>       VarBkmk = RsAuthors.Bookmark<br/><br/>       ' Find The Record<br/>       RsAuthors.Find "au_lname = 'Sussman' "<br/><br/>       ' Was It Found<br/>       If Not RsAuthors.EOF Then<br/>              Response.Write "Found: "%26 RsAuthors ("au_lname" ) %26 " , "%26 _<br/>                                   RsAuthors(%26quot;au_fname%26quot; ) %26amp; %26quot;%26lt;BR%26gt; %26quot;<br/>       Else<br/>              Response.Write "Not Found. Moving %26lt;BR%26gt; %26quot;<br/>              RsAuthors.Bookmark = VarBkmk<br/>       End If<br/>       Use Filter attribute is strong a reason at Find method is Find statement can inquire a condition only,And Filter attribute allows to appoint many conditions.That is to say,The field condition that should want to search is more than when,Cannot use Find method.However,Can filter first record,If find a record to be able to be deleted again,filter condition.<br/><br/>8.4.6 alters a record<br/>       Major Web uses indication information only,And Web application process is becoming more and more general.Below this kind of case,If have a reading to occupy only,do not have what good really.Establish an application program,Need revises existent data or be to add new data nearly always,Its method has a lot of.In this section,The method that how uses study Recordset target will alter data.In below one chapter,Will see how to use inquiry to finish same job.<br/>       The means that can set the lock of the place besides AdLockReadOnly to decide a type to cooperate to use Recordset target goes revising data (assume have corresponding limits of authority) .Remember,Default it is read-only that the lock decides a type.<br/>1 ． Add a record<br/>Should add a record centrally in the record,Use AddNew method.The method that has two kinds of use AddNew.The first kind without any parameter,Call AddNew merely,An empty record is added of collect finally in the record.Before calling Update method to save what what do to change,The data in modification field of OK and optional ground:<br/>With RsAuthors<br/>       .Open "authors" , strConn, adOpenDynamic, _<br/>              AdLockOptimistic, adCmdTableDirect<br/><br/>.AddNew<br/>              .Fields("au_id" ) = "123-12-1234 "<br/>              .Fields("au_lname" ) = "Lloyd "<br/>       .Fields("au_fname" ) = "Janine "<br/>       .Fields("contract" ) = 0<br/>.Update<br/><br/>End With<br/>This just added a new record,The setting enforces four times model the field is worth.<br/>The optional parameter that another kind of method is use AddNew method,This is two array,One is field name,Another value that is a field.<br/>With RsAuthors<br/>       .Open "authors" , strConn, adOpenDynamic, _<br/>       AdLockOptimistic, adCmdTableDirect<br/><br/>       .AddNew Array("au_id" , "Au_lname" , "Au_fname" , "Contract" ) , _<br/>                     Array("123-12-1234" , "Lloyd" , "Janine" , 0)<br/>End With<br/>This method does not need to call Update method.<br/>2 ． Editor record<br/>Editor record and the methodological likeness that add a record,Different point depends on needing to call AddNew method:<br/>StrSQL = "SELECT * FROM Authors" %26 _<br/>              "WHERE Au_lname='Lloyd' "<br/><br/>With RsAuthors<br/>       .Open StrSQL, strConn, adOpenDynamic, _<br/>              AdLockOptimistic, adCmdText<br/><br/>       .Fields("contract" ) =1<br/>       .Update<br/>End With<br/>This is will current record merely (the first record is below this kind of circumstance,Because just open record market) the value ode of Contract field is 1.<br/>3 ． Delete a record<br/>Delete a record to need to call Delete method.Delete which record to depend on optional parameter,Can be below one of AffectEnum constant:<br/>·AdAffectCurrent:Delete current record,Default is operated.<br/>·AdAffectGroup:Delete match to filter currently all records of the condition.<br/>·AdAffectAll:The overall record that deletes record concentration.<br/>·AdAffectAllChapters:Delete all paragraph (Chapter) medium record.<br/>The simplest calling a form is:<br/>RsAuthors.Delete<br/>This will delete current record.If one filters condition,Want to delete all records that match this requirement,So need to add proper constant only:<br/>RsAuthors.Delete AdAffectGroup<br/>4 ． The field that increases by degrees automatically<br/>When adding a new record,General meeting encounters a such problems:If why handle what those increase by degrees automatically or label field (Identity Filed) .These fields are the digital field that replaces automatically by the server,Use at offerring an only field to be worth for each commonly.When the database contains many lists,So this only field often is regarded as the external key of associated watch.So,When adding a new record,The value that often needs to find out them.<br/>For example,The list that considers to have two fields,An ID field that increases by degrees automatically (the AutoNumber field in the IDENTITY field in SQL Server or Access) ,The text field that name of a field is Name.The code that considers to add a record below to the middle of the watch now:<br/>With RsData<br/>       .Open "tblTest" , adOpenDynamic, adLockOptimistic, adCmdTableDirect<br/>       .AddNew<br/>       .Fields("Name" ) = "Janine "<br/>       .Update<br/><br/>       IntID = .Fields("ID" )<br/>End With<br/>Look very common,But the kind that whether can the type that relies on cursor to this value, lock take to decide after adding a record and ID field are indexed.Watch 8-4 listed what combination allows to get new the value of insertion ID field.Other the value that cannot return ID field in the combination in the watch without the row.<br/>Express 8-4 The type that the value that gets ID field and cursor, lock decides reachs the relation that whether is ID field indexed<br/>The person that offer<br/>Object<br/>Index<br/>Cursor position<br/>Cursor type<br/>The lock decides a type<br/><br/>ODBC<br/>Access97<br/>Yes<br/>Server<br/>Key collect<br/>Pessimism<br/>Hopeful model<br/><br/><br/>Access2000<br/>Yes<br/>Server<br/>Key collect<br/>Pessimism<br/>Hopeful model<br/><br/><br/><br/>Deny<br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/><br/>SQL Server 6.5<br/>Yes<br/>Server<br/>Key collect<br/>Pessimism<br/>Hopeful model<br/><br/><br/>SQL Server 7.0<br/>Yes<br/>Server<br/>Key collect<br/>Pessimism<br/>Hopeful model<br/><br/><br/><br/><br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/><br/><br/>Deny<br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/>Jet 4.0<br/>Access97<br/>Yes<br/>Server<br/>All<br/>All<br/><br/><br/>Access 2000<br/>Yes<br/>Server<br/>All<br/>All<br/><br/><br/><br/>Deny<br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/>SQL OLE DB<br/>SQL Server 6.5<br/>SQL Server 7.0<br/>Yes<br/>Server<br/>Key collect<br/>Pessimism<br/>Hopeful model<br/><br/><br/><br/><br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/><br/><br/>Deny<br/>Client<br/>All<br/>Pessimism<br/>Hopeful model<br/><br/>This explains clearly must use right combination,The true value that ability assures to be able to acquire ID field.Otherwise,May get 0, empty value or NULL,This depends on assorted means.<br/>When memory process is being handled in issueing one order,The method that will see another kind gets IDENTITY field to be worth from SQL Server.<br/><br/>8.5 management is wrong<br/>       When processing data stores,The possibility that produces a mistake always exists:Security problem,The record that tries to already was deleted newlier by other user,The question of such is very much.Unwarrantable everything moves good,Accordingly must the mistake that compose proposes some kind of form is controlled.<br/>       In the 7th chapter,The common error in studying ASP page is handled,But what involve now is data storage,Must consider to use additional code to undertake the mistake is handled so.See Errors assemble first,The wrong processor that discusses its how to satisfy ASP 3.0 again is made.<br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/353.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=353</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=353&amp;key=a370274e</trackback:ping></item><item><title>The ASP WebApplication frequent learn the rudiments of a subject of.NET (1)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/354.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/354.html</guid><description><![CDATA[The frequent learn the rudiments of a subject of ASP Web Application of.NET (1) 　<br/>What is ASP.NET Application?  <br/><br/><br/>ASP.NET so definition Application:The summation that it is all files below a when move on Web application server fictitious catalog and its subdirectory, page, module and executable code.E.g. ,A "/order" that an Application that is called "order" may be Web server is fictitious catalog.Fictitious catalog can pass Internet<br/>Services Manager is installed,It can include any subdirectory.<br/><br/><br/>Each ASP.NET Application on Web server moves in a distinctive.NET run time to apply inside the country,It assured kind of segregation (won't produce translation to perhaps name conflict) , safe box (prevent pair of specific machines or the visit of network resource) and the segregation of static variable.<br/><br/><br/><br/>In a Web Application whole live in the process,ASP.NET is maintaining pool of example of a HttpApplication,One of allocating these example automatically every HTTP request that receives in order to handle Application.By distributive the request that special HttpApplication example is in charge of managing whole lifetime,When should requesting to end only,Its ability by reuse.This states among them user code does not need to use reentrance.<br/><br/><br/><br/>Found Application<br/><br/><br/>Should found an ASP.NET Application,The fictitious list that we can use presence,Perhaps found a new fictitious directory.For instance,Installing the Windows that includes IIS<br/>On 2000 servers,Can have C:\ of a catalog probablyInetPub\WWWRoot;We use Internet Services Manager to configure IIS,In "Start<br/>-%26gt;Programs -%26gt;Below Administrative Tools " ,With the catalog that mouse right key clicks existence,Perhaps choose New to found a new fictitious directory,The average catalog that perhaps chooses Properties to promote an existence is fictitious catalog.<br/><br/><br/>Look how to spark now ASP.NET Application.We can write document of a Simple.aspx,Place it fictitious catalog to fall,Visit it in the browser next.Go to the lavatory to contrast,The code that we listed three kinds of languages write use VB, C# and JScript:<br/><br/><br/><br/><br/><br/><br/><br/>C#<br/><br/><br/>%26lt;%@Page Language= %26quot;C#%26quot; %%26gt;<br/>%26lt;html%26gt;<br/>%26lt;body%26gt;<br/>%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()); %%26gt;%26lt;/h1%26gt;<br/>%26lt;/body%26gt;<br/>%26lt;/html%26gt;<br/><br/>VB<br/><br/>%26lt;%@Page Language= %26quot;VB%26quot; %%26gt;<br/>%26lt;html%26gt;<br/>%26lt;body%26gt;<br/>%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()) %%26gt;%26lt;/h1%26gt;<br/>%26lt;/body%26gt;<br/>%26lt;/html%26gt;<br/><br/>JScript<br/><br/>%26lt;%@Page Language= %26quot;JScript%26quot; %%26gt;<br/>%26lt;html%26gt;<br/>%26lt;body%26gt;<br/>%26lt;h1%26gt;hello World, %26lt;% Response.Write(DateTime.Now.ToString()); %%26gt;%26lt;/h1%26gt;<br/>%26lt;/body%26gt;<br/>%26lt;/html%26gt;<br/><br/><br/><br/>Code is very simple,The information that just prints a present time in the browser.We can add some of code to use Application target,Save the object for instance for Application limits type.Through founding file of a Global.asax,We still can define all sorts of incident to handle an order,For instance Application_OnStart incident trigger.<br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/354.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=354</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=354&amp;key=02c87266</trackback:ping></item><item><title>The ASP WebApplication frequent learn the rudiments of a subject of.NET (2)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/355.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/355.html</guid><description><![CDATA[The frequent learn the rudiments of a subject of ASP Web Application of.NET (2) 　<br/>Of Application live period<br/><br/><br/>An ASP.NET Application is founded at server first time is requested,There won't be ASP.NET code before that carrying out.After accepting first time to request,Pool of example of a HttpApplication is founded,Shunt excitation lived Application_OnStart incident.HttpApplication example handles this request and the request that happen subsequently,Exit till last example,Spark then Application_OnEnd incident.<br/><br/><br/><br/>Notice,In each example the Init of HttpApplication and Dispose method are called,Because this is between Application_OnStart and Application_OnEnd incident,will be called for many times.In an ASP.NET<br/>In Application,Only these incident are shared in all HttpApplication example.<br/><br/>About multi-line Cheng<br/><br/><br/>If we use a target with Application limits type,We should notice ASP.NET is intercurrent processing request,Thereby Application object can be visited by place of many lines Cheng.Because of this,If below the code in example is visited in the client computer that is differred for a short while together,It is dangerous,The likelihood won't be achieved expect an end.Go to the lavatory to contrast,The code that we listed three kinds of languages write use VB, C# and JScript:<br/><br/><br/><br/><br/><br/><br/><br/>C#<br/><br/><br/>%26lt;%<br/>Application["counter" ] = (Int32)Application["counter" ] + 1;<br/>%%26gt;<br/><br/>VB<br/><br/>%26lt;%<br/>Application("counter" ) = CType(Application("counter" ) + 1, int32)<br/>%%26gt;<br/><br/>JScript<br/><br/>%26lt;%<br/>Application("counter" ) = Int32(Application("counter" ) + 1);<br/>%%26gt;<br/><br/><br/><br/><br/><br/><br/>To realize safe line Cheng to handle,We can treat this Application target through Lock and Unlock method.Look please below the code that three kinds of languages write use VB, C# and JScript:<br/><br/><br/><br/><br/><br/><br/>C#<br/><br/><br/>%26lt;%<br/>Application.Lock();<br/>Application["counter" ] = (Int32)Application["counter" ] + 1;<br/>Application.UnLock();<br/>%%26gt;<br/><br/>VB<br/><br/>%26lt;%<br/>Application.Lock()<br/>Application("counter" ) = CType(Application("counter" ) + 1, int32)<br/>Application.UnLock()<br/>%%26gt;<br/><br/>JScript<br/><br/>%26lt;%<br/>Application.Lock();<br/>Application("counter" ) = Int32(Application("counter" ) + 1);<br/>Application.UnLock();<br/>%%26gt;<br/><br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/355.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=355</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=355&amp;key=a000ed44</trackback:ping></item><item><title>ASP+ is configured, ASP+ configures a concept (three)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/356.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/356.html</guid><description><![CDATA[Administrative levels deploys a system<br/>　 we ever treat of,In the list that there can be many to configure file consist in to differ on the server.When the request of detailed to URL arrives,ASP+ is calculated this URL is in layer<br/>The set in second structure style,The URL that requests for place uses the configuration document that locates in method.<br/><br/>　 for example,The structure of a site is as follows:<br/>Application Root<br/>　 | -----SubDir1<br/>　 　 | -----SubDir2<br/><br/>　 idea is,The set of configuration application process makes all users can visit catalog of applied process root (Application Root) ,Make the user of pitch on can be visited two<br/>Stature catalog.<br/><br/>　 assumes now have file of a Config.web in catalog SubDir1,In Application Root and SubDir2 nonexistent Config.web file.In this fact in the exemple<br/>Two Config.web document was used on border.The Config.web file of top layer is located in %windir%\Complus\Version catalog,It is installed along with NGWS SDK and<br/>Come,The set that included acquiesce.This file is thought to be in machine level to go up,All ASP+ catalog and subdirectory acceded its set.The acquiesce of this file is safe<br/>Nodular set is the visit that allows all users.When the Application Root catalog in the exemple nonexistent configuration file,When editing this set to be worth namely,All<br/>The user will allow to visit this catalog,The set that because this catalog acceded,machine level configures a file.If the Config.web file in SubDir1 catalog included<br/>Safe configuration is nodular,Its set is become allow certain user to visit catalog only,So SubDir2 catalog will accede its set,But Application Root catalog does not suffer his<br/>Influence.So,All users can visit Application Root catalog,But only certain user can visit two stature catalog.<br/><br/>The standard configures set<br/><br/>The Config.web document that ASP+ environment brought a level oneself,The configuration set that it included to abound assembles.This file is located in<br/>%windir%\ComPlus\Version catalog.In class of Machine Level(machine) in configuring a file,We can configure bar in ASP+ standard search below processor<br/>The configuration to the standard is nodular.<br/><br/>SunADM@2K1020<br/><br/><br/><br/>--------------------------------------------------------------------------------<br/>The person that 　 makes 　 　 :SunADM<br/><br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/356.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=356</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=356&amp;key=b28a4eb9</trackback:ping></item><item><title>ASP+ is brand-new contact (1)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/357.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/357.html</guid><description><![CDATA[Next generation version that ASP+ is ASP,However ASP+ is not again come from ASP3.0 natural evolution,In a lot of respects,What ASP+ and ASP are having essence is different.ASP+ is based on module and component completely,It is better to have but expansibility and but custom-built sex,Data processing respect was to introduce a lot of stirring new technologies more,Be these new character that have innovatory sense,Let ASP+ surmount ASP far,The flexibility with also offer Web to develop personnel better at the same time,Shortened effectively the development cycle of Web application process.The perfect combination of ASP+ and Windows 2000 Server/Advanced Server,For medium or small and even the Web commerce model of company level offerred more stable,Efficient,Safe moving environment.<br/><br/>　 　 one. Of tectonic ASP+ move reach development environment<br/><br/>　 　 up to now,ASP+ still is in test phase,As to the testability comment of the concerned ASP+ that we see at present,One part is to be based on the Beta edition ASP+ that the professional development of portion Microsoft released on staff plenary meeting in July 2000 to make,Another part is to be based on.NET Framework SDK to preview the accessary ASP+ in edition to make,.NET Framework SDK is previewed edition is OK download from MSDN.<br/>　 　 ASP+ is become by the design run paralell with ASP move,This means you to be able to use ASP+ at the same time on your machine,ASP two version.　<br/><br/>　 　 is summed up,The systematic requirement that runs ASP+ at present yes:<br/><br/>　 　 1. The server is carried:<br/><br/>　 　 1) Windows 2000 Server/Advanced Server,Or Windows 2000 Professional<br/><br/>　 　 2) IIS5.0<br/><br/>　 　 3) ASP+ or Microsoft.NET Framework SDK<br/><br/>　 　 2. The client is carried:<br/><br/>　 　 Internet Explorer5.5<br/><br/>The development environment of 　 　 ASP+ :<br/><br/>Visual Studio 7.0 of 　 　 first selection (have place to see namely the design of earning implement with debug implement,Only to be based on VB,C# ,The ASP+ process designing of C++ and design) .Of course,If you are ace,Use NotePad or Visual Studio6.0 or it is Visual Interdev not curious also,Just they do not support new object grammar and server end to accuse.<br/><br/>The development language of 　 　 ASP+ :<br/><br/>　 　 VB(is moment says ByeBye to VBScript) ,In fact,Saying well and truly is Visual Basic.NET.Still can be developed in addition with C# and JScript.<br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/357.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=357</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=357&amp;key=3fb2907a</trackback:ping></item><item><title>ASP+ is brand-new contact (2)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/358.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/358.html</guid><description><![CDATA[<br/>　 　 two. The four big new character of ASP+<br/><br/>　 　 1. ASP+ is based on brand-new framework<br/><br/>　 　 ASP+ is the frame when be based on NGWS completely to move.<br/><br/>The frame when 　 　 NGWS moves (the core component that NGWS Runtime Framework) is the.NET framework that the range that Microsoft offers is down generation Web.A kind of brand-new rock-bottom foundation framework that is aimed at Windows is when NGWS moves,It is located in Windows move and between user program,Be used to the execution that manages code.It offers a kind to enclose between developer and operating system,Make Windows process designing becomes more simple.When NGWS moves, be complete be based on an object,It expanded COM(Component Object Model,Package object model) structure,To can expand distributed application process offerred more new buildup the gender serves.When having NGWS to move,Our or else needs to forget to clear of a certain object in ASP+ page concern,Because it is met,rubbish of automatic processing memory reclaims.The visit of the rock-bottom service with a few pairs of crucial at the same time operating systems also becomes more relaxed,Security,Attestation,File system is visited,Network news,Wait a moment etc...Everything is unchallenged!<br/><br/>　 　 2.ASP+ is carried out through compiling<br/><br/>　 　 ASP+ made a lot of improvement in the light of the executive expression of ASP,Page script is carried out no longer through the explanation,Pass NGWS(Next Generation Web Services however,Next generation Web serve) compile compatibly implement compile will carry out.Do not misunderstand!We indicate compiling is not to want you to make.EXE file.<br/><br/>You still mix 　 　 to write code euqally before,When compiling the job to move by NGWS when script code first time receives a request and moving finish automatically,The copy that saves a cache at the same time.Receive a request again when script when,The copy that the system moves cache directly,Implement rate quickly substantially greatly thereby,What move now because of us is the code that the course compiles.<br/><br/>　 　 if source script had alter,The meeting when moving discards automatically to compile version oldly from inside cache,So that be received next time,code is compiled afresh when executive request.<br/><br/>　 　 3. Data cache technology<br/><br/>　 　 became good,We had a faster ASP+ that has compiled now,But this is insufficient still.Imagine such scenario:The ASP+ page that you have a trends to generate,The content of this page results from database of a tiring-room,And this database is likely several talents are able to update...Now,Assume your server received a request that comes from client end,The server can establish link with the database,Executive inquiry,Resumptive record,Feedback gives an user,Very simple,Right?But become,the server should be handled in same time by tens of thousands identical request,The consequence with meeting what kind of generation?Without doubt,The systematic natural resources that is meaningless repetitive operation and dreariness as a result takes up.<br/><br/>Why should this use 　 　 to data cache technology namely.<br/><br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/358.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=358</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=358&amp;key=435ea943</trackback:ping></item><item><title>ASP+ is brand-new contact (3)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/359.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/359.html</guid><description><![CDATA[In ASP+ ,When server first time from inside the database after resumptive data,Data is saved in variable,After the server receives identical request,The data that passes cache delivers a client to carry from the server directly,We need not disturb surely now database.<br/><br/>　 　 of course,The cache time limit that you must set destiny to occupy in code,The time that arrived to set or contented and specific requirement,With respect to clear empty cache,Resumptive new data.As to how to come the deadline of set cache,Depend on completely your demand and skill.<br/><br/>　 　 4.ADO+ ,More the ADO that uses easily<br/><br/>　 　 good horse matchs good saddle,Microsoft is in roll out ASP+ while,Also rolled out brand-new ADO,Namely ADO+ .ADO+ with dimension of a kind of N (of N-dimensional) ,Object-oriented means will process data.In ADO,Data comes out with planar form expression,Go namely,Row.But if there is a specific cavalcade itself in RecordSet,be a RecordSet,Form a new dimension to spend thereby?Such case is very stubborn in ADO,And found with ADO+ such multidimensional the fatigue that RecordSet is raise one's hand only however.<br/><br/>　 　 in fact,The RecordSet that says above is in ADO+ already not answer existence,Those who replace is DataSet.In ADO+ ,The gather that DataSet is equivalent to RecordSet,DataView is similar to RecordSet.<br/><br/>　 　 three. Server end accuses<br/><br/>It is good that another of 　 　 ASP+ inviting place increased more namely used server end accuses,The feedback that Microsoft listened to Web developer well apparently,Add newly control a function that enhanced ASP+ not only,Will let developer before at the same time people a lot of trival reduplicative jobs that have a headache give accuse went finishing.It is to be opposite these accusing below classify roughly:<br/><br/>　 　 1.List Controls<br/><br/>　 　 accuses this kind list is founded to become more relaxed and simple in making you carry a browser in the client,Give you at the same time more but custom-built sex,You can spend fewer energy to go up in page layout now.Example has:Repeater, dataList and DataGrid Controls<br/><br/>　 　 2.Rich Controls<br/><br/>　 　 accuses this kind be used to in the client end is generated more complex,Rich HTML element.Be like:Calender Control<br/><br/>　 　 3.Validation Controls<br/><br/>　 　 test and verify accuses belong to concealed type to accuse,They are used to executive client end and the test and verify that the server carries.This kind accuses what the amount comparatives is much,Can finish the job of sundry test and verify that needs to write code by hand before,Programmer is OK now the If with many leave out. . . Else statement.Be like:RequiredFieldValidator Control, compareValidator Control, rangeValidator Control, and RegularExpressionValidator Control<br/><br/><br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/359.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=359</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=359&amp;key=a0a24282</trackback:ping></item><item><title>ASP+ is brand-new contact (4)</title><author>a@b.com (rain)</author><link>http://teachmeasp.net/post/360.html</link><pubDate>Tue, 03 Mar 2009 09:37:52 +0800</pubDate><guid>http://teachmeasp.net/post/360.html</guid><description><![CDATA[4. is other<br/><br/>　 　 includes Intrinsic Controls,And we yearn for long already SendMail component,Add / decode package,Can note number from the executive expression of the definition implement,The component that can read the log that write NT,The network visits package...Etc.<br/><br/>　 　 four. The final version of ASP+<br/><br/>　 　 is very apparent,Preview the ASP+ of edition is returned with the frame when moving is not perfect.Although their enough reflects the new character of ASP+ ,However this version that the ASP+ of final version is discussing than us supports more functions,And more perfect,It includes a few character that we cannot realize at present:<br/><br/>　 　 1. Support a variety of Windows platform<br/><br/>These 　 　 platform include:Windows 2000,Windows NT4.0,Windows95/98.And preview version to support Windows 2000 Server and Windows Professional only.The ASP+ that is aimed at Windows 95/98 is restricted somewhat on the function,Call its only so " individual edition " .<br/><br/>　 　 2.XHTML is compatible<br/><br/>　 　 is current,The output that carries ASP+ to accuse a generation by the server is basic HTML3.2,With XHTML not compatible.XHTML is recommended by W3C(World Wide Web Consortium) ,If output and XHTML are compatible,So XML parse implement hold correctly control these content,Can make mistake otherwise.<br/><br/>The server end that 　 　 Microsoft is trying to let ASP+ final edition accuses can generate the code with compatible XHTML,The difference that carries a browser as a result of the client however,Compatible degree still is forecasted very hard now.<br/><br/>　 　 3. New administrative tool<br/><br/>The ASP+ of 　 　 final edition will be included can make you relaxed safeguard the administrative tool with configuration program.You will see can manage such as Config.web,The tool of file of Global.asax and so on,The executive state that the interface that it can change with the graph allows you to see a program,And when debugging whole process dog detail.<br/>...]]></description><category>Asp Tutorials</category><comments>http://teachmeasp.net/post/360.html#comment</comments><wfw:comment>http://teachmeasp.net/</wfw:comment><wfw:commentRss>http://teachmeasp.net/feed.asp?cmt=360</wfw:commentRss><trackback:ping>http://teachmeasp.net/cmd.asp?act=tb&amp;id=360&amp;key=30a35470</trackback:ping></item></channel></rss>
