The procedure is common ...
The following is the ASP to turn PHP code
Although some places are not clear. Basically, it can be seen that any language can be converted to each other.
Above is the PHP below is the ASP
//-------------------------------
One way to directly produce an ASP page, rather than displaying it in a standard browser, in order to do this you have to change the server's response to the content type of the Word document's HTML.
Put the following line on top of your ASP page:
Mode one:
Data storage models Model: Data storage model is not used in this way, just a simple string type data transfer
foreground receives display Data views View:
The code is as follows
Copy Code
' To get the keyword pageRemoteurl = "http://111cn.net "
' Create a XMLHTTP connectionSet Objxml = CreateObject ("Microsoft.XMLHTTP")Objxml.open "Get", Remoteurl, FalseObjxml.send
' Get the return dataResponsepage = Objxml.responsetext
Set Objxml
The reason is that my asp.net MVC3 project does not have a home page, and the default document index.asp the IIS settings does not take effect.
asp.net MVC3 website Settings first page is HTML or ASP file
Open Global.asax, add the following code
Hared/masterpage.cshtml:
The code is as follows
Copy Code
@ViewBag .title@this. Rendersection ("Head_js", false)@this. Rendersection ("Body_content", True)
Home/index.cshtml:
The code is as follows
Dim Url,strurl,strpath
Dim Strinceptfile
Strinceptfile = "SWF,FLA,JPG,JPEG,GIF,PNG,BMP,TIF,IFF,MP3,WMA,RM,WMV,MID,RMI,CDA,AVI,MPG,MPEG,RA,RAM,WOV,ASF"
url = replace (replace (Request ("url"), "'", ""), "%", "" "," "," "/"
If Len (URL) > 3 Then
If
Function Encrypt (ecode) Dim Texts Dim I for I=1 to Len (ecode) Texts=texts & CHR [ASC (MI D (ecode,i,1)) +i) Next Encrypt = texts End Function Function decrypt (dcode) Dim texts Dim i for I=1 to Len (dcode) Texts=texts & Chr (ASC
function get_substring (str,length)Dim resultresult = StrIf Len (str) >length Thenresult = Left (str,length-1) & "..."End IfGet_substring = resultEnd Function
function GetPage (page)Dim resultIf IsNull (page) or IsEmpty (page) or (not IsNumeric
Sometimes, you may want to get the current page's URL in a browser window to display the URL. For example, if you want your visitors to submit a blog post to Digg you need to get the exact same URL. There are many other reasons too. Here's how you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service