A simple asp.net program for managing Web site files

First look at the effect Webfilemanager The code is as follows Copy Code Author: Zhang Haohuadatetime:2012-07-06 03:25-----------------------------------A page program that manages files under a Web site.Provide

Implement file compression and decompression code in asp.net

The code is as follows:Copy code Using System;Using System. IO;Using ICSharpCode. SharpZipLib. Checksums;Using ICSharpCode. SharpZipLib. Zip;Using ICSharpCode. SharpZipLib. GZip; Namespace ZipFile {/// /// Compressed file/// Public class ZipHelp  

Asp.net C # ListBox auto-scroll to bottom method summary

Method 1: The code is as follows:Copy code This. listBox1.Items. Add ("new line ");This. listBox1.SelectedIndex = this. listBox1.Items. Count-1;This. listBox1.SelectedIndex =-1; After adding a record, select the last record. The scroll bar

Asp.net WebRequest Post and Get data instances

Sqlserver/42852.htm target = _ blank> The code is as follows:Copy code  Public class WebRequestHelper     {/// /// Request data in the form of POST/// /// /// /// Public static string PostData (string RequestPara, string Url)        

Summary of common MVC problems in asp.net

In MVC projects, when JQuery and $. Post are used to submit data, Chinese garbled characters are generated?Solution:Data encoding during $. post, using the escape method$. Post ("@ Url. Action (" AddFriendLink "," Setup ")", {"Name": escape (name)},

ASP. NET implements resumable file transfer code

Here, I add an HTTP header to the output stream through the AddHeader method in the Response class. The HTTP header consists of header information and body information. The two are separated by a blank line. Here, the Range segment is added to the

Solution to service application unavailability in ASP.net

The main cause is asp. Net has been installed in advance, and iis was installed later. Therefore, you need to associate. net with iis. This is what I think, right.This is also because the website is placed on the desktop. This can also generate such

In asp.net, multiple options of ListBox binding are selected and deleted.

Let's take a look.Listbox bind multiple options A B C D E  The above is only bound to multiple, but what should I do?Bind multiple options and select multiple optionsAnd. . Aspx: The code is as follows:Copy code . In aspx. cs, the first

Asp.net subform refresh parent form (delegate) method

Child form ff = new child form The code is as follows:Copy code Ff. showdialog ();If (subform. DialogResult = DialogResult. OK){ Datashow ();} This method can be written in the button_click event of the parent form.Another method is to use the

In asp.net, VS control updatePanel implements no refreshing

Page section The code is as follows:Copy code Use The VS control updatePanel to achieve no refreshing& Nbsp; Click the button to obtain the current time from the server -- %>  Background code The code is as follows:Copy code Protected

Introduction to operators in asp.net

Operator Overloading in c: The code is as follows:Copy code Class Test{Public static Test operator + (Test arg1, Test arg2 ){...}} Although CLR knows nothing about operators, it regulates how programming languages provide operator overloading

Implementation code of md5 encryption in asp.net

The code is as follows:Copy code Public class FormatStr{# Region MD5 encryption/// /// MD5 encryption/// /// encrypted string /// Public static string MD5 (string str ){Return System. Web. Security. FormsAuthentication.

Asp.net common page refresh code

Let's take a look at the implementation of ASP. NET page refreshing:First: The code is as follows:Copy code C # codePrivate void button#click (object sender, System. EventArgs e){ Response. Redirect (Request. Url. ToString ());}  Second:C #

Implementation code for reading and writing files in asp.net

Writing can be divided into continued writing and overwriting. You only need to change the value of the first parameter to switch.The code is as follows:   The code is as follows:Copy code /// /// Write the content to a text file/// /// status

Asp imitates the interface program of Lotus Notes

%'Interface program similar to Lotus Notes'Author: Snow in Sebei'Creation date: February 1, March 2002'Modification date: February 1, March 2005'For security and sharing convenience, you can change the asp program tag to a Chinese character, which

Asp beginners 20 ASPS

1. How to use Asp to determine the virtual physical path of your websiteA: Use the Mappath method. The Physical path to this virtual website is: 2. How do I know the browser used by the user?A: use the Request object method.StrBrowser = Request.

Example of deleting a non-empty directory using asp

This is an example of deleting a non-empty directory.'Test. asp'To delete a directory, you must have the permission to modify it.Dim fso, tmpfolder, tmpsubfolder, tmpfile, tmpfilesSet fso = server. CreateObject ("Scripting. FileSystemObject ")Sub

Display on pages using ASP

I. Table structure definition:---- Table name: Product---- Table name: Product---- Segment name: Product No.: Product_Id---- Product name: Product_NameII. Features:---- If the user enters the product number, the user does not have to enter the full

Java-written classes are called in asp/asp.net.

iis

During the development process, you may encounter problems in ASP/ASP. net calls the classes written in JAVA to implement functions previously implemented in JAVA. The following is a simple example to illustrate the detailed usage:1. Create a java

Total Pages: 1800 1 .... 1312 1313 1314 1315 1316 .... 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.