Recommended: Learn functions in ASP through example explanation Function: Return an array syntax: Array(list) Applicable type: characters, numbers can be referenced: <%Dim myArray()For i = 1 to 7Redim Preserve myArr
1. Get the client IP
<%myip=Request.ServerVariables(Remote_Addr)%>
2. Get the current address
| The following is the quoted content: <script> document.write(this.location.href); </script> |
3. Write asp
| The following is the quoted content: <input type=hidden id=aspVar> <script> aspVar.value=location.href </script> ------------------ <% dim theAddress thAddress=request.form(aspVar) %> |
Share: Session tips in ASP Anyone who has written a slightly larger ASP knows that Session is really useful. It can be used to record user-owned data variables, which is both safe and convenient. But do you really know how session works? Maybe after you understand, you will never dare to use this again