A section of ASP turn PHP

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 //-------------------------------

ASP output Word Document Program

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:

asp.net mvc in the foreground page submit data to the background controller

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

ASP Read Page Keywords

chr

' 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

asp.net MVC3 site to set the HTML default home page method

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

ASP FSO on-line compression decompression code

ASP FSO on-line compression decompression code''=====================' FSO on-line compression and decompression' Automatically generate Hytop.mdb''=====================Sub Addtomdb (Thepath)On Error Resume NextDim Rs, Conn, Stream, ConnStr,

asp.net MVC3 View placeholder Rendersection Usage Example

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

ASP link Check tool source download

ASP link Check tool source downloadIf Not IsEmpty (Request.QueryString ("D")) ThenDM = Request.QueryString ("D") Set obj = Server.CreateObject ("Liuganext.friendlink")arr = obj.getlinks (DM)Linkarr = arr (0)LinkCount = arr (1)PageCount = arr (2) '

ASP crawl Baidu included page number code

ASP crawl Baidu included page number code Response.Expires =-1Response.AddHeader "Cache-control", "No-cache"Response.AddHeader "Pragma", "No-cache"Wd=request ("D")If Request ("s") = "Baidus" ThenBaiduurl= "Http://www.baidu.com/s?wd=domain%3A"

ASP Youdao Capture Code

ASP Youdao Collection crawl code Response.Expires =-1 Response.AddHeader "Cache-control", "No-cache" Response.AddHeader "Pragma", "No-cache" Wd=request ("D") If Request ("s") = "Youdaos" Then youdaourl= "http://"

ASP Thief program source code

Class Cls_ajax Private Oajax, Oajax_rs Private Oajax_beta, Oajax_method, Oajax_url, Oajax_char, Oajax_err Private Sub Class_Initialize Oajax_beta = "MSXML2." XMLHTTP " Oajax_method = "Get" Oajax_char = 1 Oajax_err = "" End Sub ' Get Ajax Object

ASP file download code

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

ASP generates picture thumbnail code

'======================================================' File name: inc/clsjpeg.asp' File function: Watermark + thumbnail class' Last Updated: 2008.08.02'====================================================== Dim

ASP imitation MD5 encryption algorithm

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

ASP Database Connection Program

On Error Resume NextResponse.Buffer = TrueDim startimeDim connDim connstrDim Sqldatabase,sql_pass_word,sql_user_id,sql_data_sourceStartime=timer ()Set conn = Server.CreateObject ("ADODB. Connection ")ConnStr = "Provider=SQLOLEDB.1; Password= ' 888885

ASP General UBB Code conversion Program

Const imagepath= "images/" function Ubbcode (strcontent) strcontent= filterjs (strcontent) Dim Re Dim Po,ii Dim Recontent Set Re=new RegExp Re. IgnoreCase =true Re. Global=true po=0 ii=0   Re. Pattern= "[IMG] (HTTP|HTTPS|FTP):///(. [ ^[]*

ASP common Paging Class

Class Cls_pageviewPrivate sbooinitstatePrivate SstrpageurlPrivate SstrpagevarPrivate SstrsqlPrivate Sstrsqlcount Private SintrecordcountPrivate sintpagesizePrivate SintpagenowPrivate Sintpagemax Private Sobjconn Private Sstrpageinfo Private Sub

ASP character handler function

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

ASP Simple Cryptographic algorithm

function Encrypt (Ecode)Dim textsDim iFor I=1 to Len (Ecode)Texts=texts & Chr (ASC (ecode,i,1) +i)NextEncrypt = textsEnd Functionfunction Decrypt (Dcode)Dim textsDim iFor I=1 to Len (Dcode)Texts=texts & Chr (ASC (dcode,i,1)-i)NextDecrypt=textsEnd

How ASP Gets the URL of the current page

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

Total Pages: 1800 1 .... 1331 1332 1333 1334 1335 .... 1800 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.