Recommended: parse the SRC path of extracting the image in HTML in asp What is RegExp in ASP? Name character checking is the referenced content: Public Function CheckName(Str) Checkname=True Dim Rep,pass Set Rep=New Re
Take these two domain names as examples:
http://www.CuoXIn.com/
http://code.CuoXIn.com/
These two domain names are bound to the same space, ha, but they will jump to different directories. They are not implemented on IIS settings, but just a small piece of ASP code, ha,. . . Let me give you the code and see. Although it is not a profound thing, it is quite practical.
Code: The following is a quoted snippet:
| The following is the quoted content: <% 'Get the HTTP input value and pay the value into HTOST host=lcase(request.servervariables(HTTP_HOST)) 'Start condition jump SELECT CASE host ' If the value of HOST is code.CuoXIn.com/, select the command of event casecode.CuoXIn.com/ CASE code.CuoXIn.com/ ' Below is the redirect command response.redirect homepage/ CASE www.CuoXIn.com response.redirect / 'We use CASE ELSE to fix any other requests CASE ELSE response.redirect / END SELECT %> |
Share: Export Excel files in an instance parsing ASP program One way to use excel in Asp is to link the excel file as a database, and the operation is similar to the access database operation. But this method is not always useful, it should be that excel is not a relational database. For a fixed format,