It is easy to use ASP. NET to output documents of the Word, Excel, txt, htm, and other types of specified content. It can be completed in three steps.
1. Define document type and character encoding
Response. Clear ();Response. Buffer = true;Response. charset = "UTF-8 ";
// The following line is very important. The attachment parameter indicates downloading as an attachment. You can change it to online.// Filename=fileflow.xls specifies the nam
allows web page producers to create complex pages that combine text with images that can be browsed by anyone on the web, without the limitations of the system or browser.HTML and HTM:In fact, there is no essential difference between HTML and HTM, it means the same file, only applicable to different environments, but also to meet the DOS can only recognize the 8.3 version of the file name, because some old system does not recognize the four-bit suffi
display a paged list without pagingif ($total Output Paging listEcho $pdiv;?>Here is the related static generation page, although the code is not correct but the idea is no problem.Copy CodeThe code is as follows:$tmpBody = "FJKA;FJSA; {page} batch build into file and add pagination code ";$TMPURL = ' www.jb51.net ';$tmpUrlarray = Explode ('. ', $TMPURL);$tmpArray = Explode (' {page} ', $tmpBody);$total = count ($tmpArray);$id = "2";if ($total >1){$TMPSTR = ";for ($i =0; $i {if ($i ==0){$str. =
The difference between. htm. html. shtml1. The. htm and. html do not differ in nature, representing the same file, but only for different environments.2, DOS can only recognize 8+3 file name, so *.htm naming method can be DOS recognition, and *.html file naming mode cannot be recognized.3. In UNIX systems, the Web page must use the. html extension, if it is an
=109543package_id=118368 jacob.zip. After download, unzip, put the Jacob.jar under the project/web-inf/lib. Put Jacob. dll under c:/windos/system32/and Java/jdk*.*/jre/bin. This is the configuration is complete. Say code:1 Importcom.jacob.activeX.ActiveXComponent;2 ImportCom.jacob.com.Dispatch;3 Importcom.jacob.com.Variant;4 Public BooleanChageformat (String folderpath,string FileName) {5String FileFormat = "";6 System.out.println (folderpath);7FileFormat = filename.substring (Filename.length (
Html=htm, only the former is the full name, the latter is abbreviated, there is no difference. ? ? So why are there two file formats? ? ? HTM is derived from the old 8.3 file format, the DOS operating system can only support the suffix length of 3, so is the HTM, but in Windows does not matter the HTM and html,html is
/*
Bulk convert all. txt files in a directory to the corresponding HTM file, which contains CSS styles that are easy to read
The generated HTM files are placed in the same directory under the HTM directory
Parameter 1: The path to the directory to be converted
Execute PHP txt2htm.php "c:\\txt\\"
PHP txt2htm.php "/tmp/txt/"
PHP txt2ht
Symptoms: file icons suffixed with htm and HTML are displayed as unassociated applicationsProgramIcon, or ie7.0 has been uninstalled, but the icon is still the ie7.0 icon (it looks quite uncomfortable !) In addition, modification by setting folder attributes does not work, and changing the default program in the context menu does not work.
Cause: after the office is installed, a program is installed to change the
Some netizens have encountered such a problem: how to use regular matching suffix name is not. jpg,. css,. js,. html,. htm,. png files, the problem details are:How do I use regular matching suffix names for. jpg,. css,. js,. html,. htm,. png files?, I search you through the Internet to collect some of the relevant solutions, hope to have the same or similar problems to help users, as follows:Solution 1:---t
$pdiv. = "Last link
$pdiv. = "$pdiv. = ' Output content
echo $arr [$nowpage-1];
No paging list is displayed without paging
if ($total Output Paging list
Echo $pdiv;
?>
The following is a related static generated page, although the code is not correct but the idea is no problem.
Copy Code code as follows:
?
$tmpBody = "FJKA;FJSA; {page} batch generation divided into files and plus paging code ";
$TMPURL = ' www.jb51.net ';
$tmpUrlarray = Explode ('. ', $TMPURL);
$tmpArr
Jacob.jar under the project/web-inf/lib. Put the Jacob. dll under c:/windos/system32/and Java/jdk*.*/jre/bin. This means that the configuration is complete. Say code:Import com.jacob.activeX.ActiveXComponent;Import Com.jacob.com.Dispatch;Import com.jacob.com.Variant;public boolean Chageformat (String folderpath,string FileName) {String FileFormat = "";System.out.println (FolderPath);FileFormat = filename.substring (Filename.length () -4,filename.length ());System.out.println (FileFormat);if (Fi
asp.net| static//51aspx.com generate static page demo file, reprint please keep this information
2 Public partial class _default:system.web.ui.page
3.. {
4 protected void Page_Load (object sender, EventArgs e)
5.. {
6
7}
8
9//According to the template generated, remain in the HTML folder (part of the source code collection on the network)
protected void Button1_Click (object sender, EventArgs e)
11.. {
12//Source code is the replacement of the feature characters in the template
13
Mbpath =server
, now time is 4:50 A.M., I am easy. The purpose of authentication is to prevent others from illegally browsing the page or using certain features without permission. Of course, there is no absolute security in the world, now MD5 encryption has been cracked by our countrymen, is the best example.
Careful people may have found out that ASP.net's security credentials are only for. aspx,. ascx ... such as asp.net files, and the normal pages and files are "blind", such as.
Now I want to create a department permission control page. First, I wrote several arrays in the PHP file, including Level 1 department, level 2 department, and Level 3 department. These three departments are affiliated. For example, the first-level department is a one-dimensional array, the second-level department is a two-dimensional array, and the third-level department is a three-dimensional array. In the htm file, I want to use loop display. Add a
For security concerns,
You want to upload a picture at the same time, in the image of the directory automatically generated a blank HTM file.
The picture catalog is defined by time, so the directory is a bit more.
How does PHP implement this?
Reply to discussion (solution)
Like this
if (!file_exists (' index.html ')) { file_put_contents (' index.html ', ' Hello World ');}
Touch (' index.html ')
Ecmall's:
function Ecm_mkdir ($absolu
Open another post, or the problem about htm output php original post: http://topic.csdn.net/u/20120516/14/14e8916b-59cf-49d7-8dc0-0e9112b67b66.html? Seed = 440870802 amp; r = 785 open another post, or about htm output php
Original: http://topic.csdn.net/u/20120516/14/14e8916b-59cf-49d7-8dc0-0e9112b67b66.html? Seed = 440870802 r = 78580743 # r_78580743
The latest situation is as follows: The program is php
Control VB6 can easily write OCX control and DLL components, to use the use of DLL components in the Web site is very simple, directly in the ASP using Server.CreateObject ("project name. Component Name") can be called on the server side of the component. OCX use is because of the need to download to the client and become more complex, here are some of my experience:
OCX packaged as an Internet package:
Shipment Packaging Program: Menu "Add-Ins"-"Add-Ins Manager"-"Enable the Package and expand
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.