FMUSER Wirless Transmit Video And Audio More Easier !
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
1. How to protect your ASP source code from leaking?
Answer: Download Microsoft's windows script encoder to encrypt ASP scripts and client-side javascript and vbscript scripts. After the client-side script is encrypted, only versions above ie5 can be executed. After the server-side script is encrypted, only script engine 5 (ie5 can be installed on the server) can be interpreted and executed.
2. Why does the global.asa file always not work?
Answer: It is only valid if the global.asa file is placed in the root directory of a certain site in the web publishing directory, and it does not work if it is placed in a subdirectory of the publishing directory. In addition, you can also use iis4's internet service manager to set a subdirectory as a site.
3. Why the ASP file is not always interpreted and executed?
Answer: On the iis server, there is no permission to interpret the ASP file as a script, so the ASP file is not interpreted and executed as a script code by the web server, but is regarded as a general page file. It is recommended to create an ASP directory in the web publishing directory, store all ASP files in this directory, and give the ASP directory the script interpretation authority.
4. The error "the http headers are already written to the client browser. any http header modificaTIons must be made before wriTIng page content" is caused when response.redirect(url) is used in the ASP file. How can I solve it?
Answer: This error means that the http title is written into the client's browser after the page content is written. Any http header modification must be done before writing the page content. The solution is to add response.buffer = true at the beginning of the ASP file and response.flush at the end of the file.
5. Why does the session disappear sometimes?
Answer: Session is very similar to a temporary cookie, except that its information is stored on the server (sessionid is stored on the client). There are several possibilities for the disappearance of session variables. For example, the user’s browser does not accept cookies, because the session relies on cookies to track users; the session expires after a period of time, and the default is 20 minutes. If you want to change it, you can set microsoft The web directory→properTIes→virtual directory→applicaTIon settings→configuration→app options→session timeout option of the management console can change the timeout period of the session, or it can be set in the ASP script, such as session.timeout=60, the timeout period can be set For 60 minutes.
6. How can I know some information about the visitor?
Answer: Get the visitor's browser type through request.servervariables("http-user-agent"); request.servervariables("remote-addr") can get the visitor's ip address; and the visitor's language environment can be through request .servervariables("http—accept—language") to get.
7. How can I transfer query string from one ASP file to another ASP file?
Answer: Add the following code to the previous ASP file: response.redirect("second.ASP?"&request.servervariables("query-string")).
8. How to control cookies in ASP?
Answer: If you want to write cookies, it is available: response.cookies ("the name of the coookies to be written") = the data to be written. To read cookies, use: read data=request.cookies("the name of the cookies to be read"). Attention, the response.cookies program segment written into cookies must be placed before the <html> tag, and there can be no other html code. In addition, expires must be used to set the validity period in cookies, so that cookies can be written to the client's hard disk, otherwise they are only temporary.
9. How to send mail with ASP?
Answer: Users need to install the smtp service function of windows nt option pack. The implementation code is as follows: 〈% set mail = server.createobject("cdonts.newmail") mail.to ="[email protected]" mail.from ="[email protected]" mail.subject ="Subject" mail. body ="e-mail content" mail.send %〉
10. Is it necessary to set dsn on the server to connect ASP and database?
Answer: Not necessarily. There are two ways to connect ASP to the server's database, one is to establish a connection through dsn, and the other is to establish a connection without dsn. Connecting to the database through dsn requires the system administrator of the server to set a dsn in the odbc in the control panel of the server. If dsn is not set on the server, as long as you know the database file name (such as access, paradox, foxpro database) or data source name (such as sqlserver database), you can access the database, and you can directly provide the parameters required for the connection. The connection code is as follows: set conn=server.createobject("adodb.connection") connpath="dbq="&server.mappath("yourtable.mdb") conn.open"driver={microsoft access driver (?.mdb)}; "&connpath set rs=conn.execute("select?from authors")
11. How to pass variables from one page to another?
Answer: Use the hidden form type to pass variables. 〈Form method="post"action="mynextpage.ASP"〉 〈% for each item in request.form %〉 〈input namee="〈%=item%〉"type="hidden" value="〈%=server .htmlencode(request.form(item)) %〉"〉 〈% next %〉 〈/form〉 Use session to save variables. 〈%Session("bh")= request.form ("bh")%〉 Use querystring to save variables. 〈A herf="action.ASP?bh=10"〉Query〈/a〉 〈%request. querystring ("bh")%〉
12. How to use ASP to realize online population statistics?
Answer: The number of online users refers to the statistics of the number of visitors within a period of time, and the length of time is set by the designer. During this period, the total number of different ips visiting this site is the current online number of people. In ASP, the session object is used to implement statistics, and the implementation code is as follows: golobal.asa file <script language="vbscript"runat="server"〉 sub session—onstart application("online")=application("online")+1 end sub sub session—onend application("online")=application("online")-1 end sub sub application—onstard application("online")=0 end sub "sub application onend=0 sub 〈/script〉 online.ASP file content〈% tmp=application("online") tmp=cstr(tmp) dim disp(20) dim images(20) dbbits=len( to disp to dbbits= 1 dbbits= 1 to disp i)=left(right(tmp,i),i-(i-1)) next for i=dbbits to 1 step -1 images(i)="〈img src="&"http://xxxx.com .cn/pic"&"/"&disp(i)&".gif〉" response.write"document.write(′"&images(i)&"′);" next %〉
13. How to calculate the running time of the ASP program?
Answer: The code to determine the execution time of the ASP program is as follows: 〈% dim t1,t2 t1=now() 'The detected ASP code t2=now() response.write"To run this ASP code, use "&cstr() cdbl((t2-t1)*24*60*60))&"sec" %〉
14. Do I need to return a RecordSet object after Excute?
Answer: No, such as deleting records in the table. Let's take a look at the following example-delete the record with Job_ID 1 in the Employee table, and there is no need to return a RecordSet: set conn= Server.CreateObject("ADODB.Connection") conn.ConnectionString=”driver={ SQL Server};server=srv;”&_ “uid=sa;pwd=;database=pubs” conn.open conn.Excute “Delect From Employee Where Job_ID=1;”,,adCmdText
15. Which is better, Insert into or AddNew? In ASP, what is the difference between using the "Insert into" statement directly and using the AddNew method in ADO? Which one is better?
Answer: The essence of the AddNew method is to encapsulate the "Insert into" statement. Therefore, when we need to operate on a large amount of data, the "Insert into" statement should be preferred. Because the SQL statement is used directly, the interpretation time of ADO is reduced, and the speed of accessing data will obviously be greatly accelerated.
16. Can't log in to SQL SERVER?
Answer: This is because the NT authentication mode is used when SQL SERVER is installed, and ASP runs as an anonymous identity and is not qualified to access the database server. Solution: Change SQL SERVER to mixed authentication mode (including SQL authentication)
17. Permission issues
Answer: ASP does not have permission to access certain folders. So running components written in VB may go wrong. Set the attributes of the system32 folder, and give the IUSR user run permissions. ASP also does not have permission to access the registry. This can be achieved with components. Register the component in COM+, and then specify it to run as an advanced identity; or cancel the "anonymous access" of the virtual directory and let the guest enter the administrator password, then ASP will be promoted to run as an administrator. ADSI is the same. If the Access database is placed in a protected folder, the 80004005 error will occur. At this time, you also need to set the permissions of the folder.
18. How many ways are there to read HTML form fields in ASP files?
Answer: In addition to reading the parameters attached to the URL, the Request object can also read the content of HTML form fields. The frequently used syntax structure is as follows: < Form name =Formname method="Get|Post"Action=" URL ">< Form> The method can accept two transmission methods, Get or Post. Post is a method that allows large amounts of data to be transmitted, and the Get method appends the data to be transmitted to the URL and then sends it to the server together. , So the amount of data transferred will be limited, but the execution efficiency is better than the Post method. The data can be sent to the server using the Get or Post method. The corresponding method of using the Request object to receive data is as follows: Get: Request.QueryString ("field name"), or it can be written as Request ("field name") Post: Request. Form ("field name"), can also be written as Request ("field name")
19. You can use both VBScript and Jscript in ASP pages. Can you mix script engines?
Answer: Although both VBScript and JScript can be used in ASP pages. However, it is not advisable to use both JScript and VBScript on the same page. Because the server must instantiate and try to cache two (rather than one) script engines, this increases the burden on the system to a certain extent. Therefore, in terms of performance, you should not mix multiple script engines on the same page.
20. When we create an ASP file and it conforms to the grammar, enter the following address through the browser, or open and browse through the explorer: c:\inetpub\wwwroot\a.asp, an error that cannot be run will appear and a prompt will appear The permissions are incorrect or the file cannot be accessed, why can't the ASP file be run normally?
Answer: This is because the ASP file first requires the site to have the "execute (script)" attribute; then it requires the address to be entered in the URL format, not the DOS format. We need to install and start the Web service platform on the computer, and ensure that the ASP The file is stored in the virtual directory of the Web server and can be browsed through HTTP format. In the address bar of the browser, enter: "http://Web site name (or site IP address)/ASP file name" and press Enter Then you can see the result of the server executing the ASP file in the browser.
21. What is ASP.NET? What does it have to do with ASP?
Answer: Active Server Pages (ASP, Active Server Pages) is a relatively simple programming environment, in which HTML, scripting languages and a small number of components can be mixed to create server-side Internet applications; ASP.NET is a powerful feature promoted by Microsoft In the programming environment, you can use C# and other high-level languages and scripting languages, HTML, XML, XSL, etc. to create network-based applications. ASP.NET regards C# as an object-oriented language. In many respects, C# will become Microsoft's language similar to Java. C# is one of the most important functions in ASP.NET development, and Microsoft will develop C# into a strong opponent of Java. This is also an important part of the Microsoft .Net framework. I think C# is the main tool for Microsoft to beat its opponents in the field of programming languages. ASP.NET is superior to ASP programs in terms of object-oriented, database connection, large-scale site applications, etc. ASP.NET also provides more other new features, such as: built-in object cache and page result cache; built-in XML Support, can be used for simple processing of XML data sets; server control provides a more adequate interactive system, etc. ASP.NET is still completely locked in Microsoft's operating system. To truly realize the potential of ASP.NET, you have to use C# or vb.net. These two languages will become the core scripting languages of the ASP.NET standard.
22. Is ASP a programming language?
Answer: ASP is not a programming language, but a development environment. ASP provides an environment for executing instructions on the server side. It uses special symbols () to distinguish HTML from commands that must be translated by the server before being sent to the client. The instructions it can execute include HTML language, Microsoft VBScript and Microsoft Jscript, etc., so powerful Web applications can be created.
23. Can I use PWS if I host multiple web sites on the web server?
Answer: Only one Web site can be accommodated on PWS. In order to accommodate multiple Web sites on the same computer, you need to use Windows NT Server or Windows 2000 Server/Professional and IIS.
24. How to use 6 built-in ASP objects?
Answer: ASP provides a number of embedded objects, which can be directly accessed and used in instructions without creating them. These six objects mainly include: request (Request) object, response (Response) object, session object, Application object, Server object, Cookies object, the Server object of these six objects can load other components, which can extend the function of ASP. Use Server.CreateObject to create an object, its life cycle starts when it is created, and ends when the webpage program it is in ends. If you want the object to be used across web pages, you can use the Session object to record the object created by Server.CreateObject.
25. Why did the following error occur when using Response.Redirect: "The header is wrong, the HTTP header has been written into the client browser, and any HTTP header modification must be made before writing the page content"?
Answer: Response.Redirect can transfer a web page to another web page. The syntax structure used is this: Response.Redirect URL, where the URL can be a relative address or an absolute address, but it is used in IIS4.0 and used in IIS5.0 It's different. The transfer of web pages in IIS4.0 must be performed before any data is output to the client browser, otherwise an error will occur. The so-called data here includes HTML tags, such as: <HTML>, <BODY>, etc., which has been improved in IIS5.0. The buffer is enabled by default in IIS5.0. Such errors are not Reproduce. There is a Buffer attribute in the Response object, which can set whether the website will send data to the client immediately after processing the ASP, but the setting of this attribute must also be before sending any data to the client. To be on the safe side, no matter what ASP platform is used, write <% Response.Buffer=True %> at the beginning of the page and set the buffer to open so that the error will not occur.
26. Does the buffered output affect the transmission of web pages?
Answer: In a relatively large web page, there may be some delay when the first part appears in the browser, but the speed of loading the entire web page is faster than without buffering.
27. Can the value of the query string use the Request.QueryString collection when there is no form submission?
Answer: The Request object is used to read the data of the browser. In addition to reading the contents of the form fields, it can also be used to read the parameters attached to the URL, regardless of how the request string is added to the link address. For Request It's no different. Use the get method to submit a form, or follow a link with an additional query string to query all the values in the string, you can use the Request.QueryString collection.
28. A lot of comments are written in the ASP script, will this affect the server's processing speed of ASP files?
Answer: In the process of writing a program, it is a good habit to make comments. Tested by foreign technicians, the overall performance of ASP files with too many comments will only decrease by 0.1%, which means that the performance of the server will not decrease in practical applications.
29. Do I need to use <% @LANGUAGE=VBScript%> at the beginning of each ASP file?
Answer: Using the <% @LANGUAGE=VBScript %> code at the beginning of each ASP file is used to inform the server that VBScript is now used to write programs, but because the default programming language of ASP is VBScript, the code can run normally if you ignore this , But if the scripting language of the program is JavaScript, you need to specify the scripting language used in the first line of the program.
30. Is it necessary to use "Option Explicit" in every ASP file?
Answer: In practical applications, the concept of VBScript variables has been blurred. Variables are allowed to be used directly instead of using Dim to declare variables. However, this is not a good habit and may easily cause program errors because it may repeatedly define a variable. We can use the Option Explicit statement in the program, so that when using a variable, you must declare it first. If you use an undeclared variable, the program will go wrong when it runs. Practice has proved that using "Option Explicit" in ASP files can minimize the chance of program errors and greatly improve overall performance.
31. What security measures are there when running ASP files?
Answer: ASP provides a good code protection mechanism. All ASP code is executed on the server side and only returns the execution result of the client code. But it still does not rule out malicious people's deliberate damage to the Web server, so you must pay more attention to security issues when writing ASP files. Although the imported file in ASP uses inc as the extension, it is still recommended to use ASP as the extension of the imported file. When these codes are running on a Web Server with a poor security mechanism, you only need to enter the address of the imported file (inc is the extension) in the address bar to browse the content of the imported file. This is because on the Web Server, If a dynamic link library of a certain type (such as inc) is not defined, the file is displayed in source code. In addition, do not put the database file inside the website structure, so that when a malicious person obtains the database path, he can easily obtain the database, and then wantonly change the contents of the database. A better practice is to establish a data source name DSN (Date Source Name) for the database, and store information about connecting to the specified data provider in the DSN, including: "The physical location of the database, the driver used to access the database Type, any other parameters required by the driver to access the database", the DSN can be accessed directly when accessing the database.
32. What is ADO and how does it operate the database?
Answer: The full name of ADO is ActiveX Data Object (ActiveX Data Object), which is an optimized set of special objects for accessing the database. It provides a complete site database solution for ASP. It acts on the server side and provides database information. The content of the homepage of the website allows users to enter, update and delete the information in the site database by executing SQL commands in the browser screen. ADO mainly includes three objects Connection, Recordset and Command. Their main functions are as follows: •Connection object: responsible for opening or connecting to database files; •Recordset object: accessing the contents of the database; •Command object: issuing mobile query instructions to the database, And execute the stored procedures of SQL Server.
33. What is the difference between using the Recordset object and the Command object to access the database?
Answer: The Recordset object will require the database to transmit all data. When the amount of data is large, it will cause network congestion and overload of the database server, so the overall execution efficiency will be reduced. Using the Command object to directly call the SQL statement, the operation performed is carried out in the database server, obviously there will be a very high execution efficiency. In particular, executing the created stored procedure on the server side can reduce network traffic. In addition, due to prior grammatical analysis, the overall execution efficiency can be improved.
34. Is it necessary to create a Connection object for each Recordset object?
Answer: You can use the same Connection object for different Recordset objects at the same time to save resources.
35. What is the difference between using the AddNew method of ADO in ASP and directly using the "Insert into..." statement? Which way is better?
Answer: The AddNew method of ADO just encapsulates the "Insert into" statement. Therefore, when operating a large amount of data, directly using SQL statements will greatly speed up the speed of data access, because it reduces the "translation of ADO" "Time, because the operations performed by the SQL statement are performed directly in the database server, it has a significant advantage especially when the amount of data is large.
36. Why do I use the standard insert record statement insert into books(name,email) values("kitty", "[email protected]") in ASP to make an error?
Answer: SQL (Structured Query Language) is a data query language developed by IBM in the 1970s. It has now become the standard for relational database query languages. SQL statement is an English-based programming language that can be used to add, manage, and access databases. Although double quotation marks can be used in the string when adding in the SQL statement, it is necessary to use single quotation marks in ASP to execute normally. So it should be written as insert into books(name,email) values(‘kitty’,‘[email protected]’).
37. What are ActiveX controls? Where can I get these ActiveX controls?
Answer: Microsoft ActiveX controls are reusable software components developed by software providers. In addition to the embedded objects of ASP, the installed ActiveX controls can also be used in ASP, which can save a lot of valuable development time. In fact, there are also many ActiveX controls embedded in ASP that can be used. Using ActiveX controls, you can quickly add special functions to Web applications and development tools. For example, use AdRotator object to make advertising scrolling board, FileSystemObject object for file access, and Marquee object to achieve scrolling text. Now, there are more than 1,000 commercial ActiveX controls. Various programming languages, such as C, C++, etc., can be used to develop ActiveX controls, as well as Microsoft Visual Java development environment Microsoft Visual J++. Once the ActiveX control is developed, designers and developers can use it as a pre-assembled component for developing client programs. Using ActiveX controls in this way, users do not need to know how these components are developed. In many cases, they do not even need to program themselves to complete the design of web pages or applications. There are currently more than 1,000 commercial controls provided by third-party software developers. Microsoft ActiveX Component Gallery (ActiveX Component Gallery) contains relevant information and related links, which point to various ActiveX controls provided by Microsoft and third-party developers. In the Microsoft ActiveX Component Gallery, you can find a list of companies that develop Internet-enhanced ActiveX controls.
|
Enter email to get a surprise
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
FMUSER Wirless Transmit Video And Audio More Easier !
Contact
Address:
No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620
Categories
Newsletter