The same is the disk quota, but ASP is used, but it seems much simpler.

ASP: Disk = request. querystring ("disk ")User = request. querystring ("user ")If disk = "" or user = "" thenResponse. Write "no disk or user (disk, user) specified )"Else Set coldiskquotas = Createobject ("Microsoft. diskquota.1 ")Coldiskquotas.

Asp.net (two methods)

Private void getimagesize (){System. Drawing. Image image = system. Drawing. image. fromstream (uploadfile. postedfile. inputstream );System. Drawing. Size size = new size (image. Width, image. Height );This. label1.text = size. Width. tostring

Use ASP and ASP. NET to create folders and files.

ASP: Sub writefile (file)Response. Write "file:" + FileDim FSO, TFSet FSO = Createobject ("scripting. FileSystemObject ")Set TF = FSO. createtextfile (file, true)TF. writeline ("Testing 1, 2, 3 .")TF. writeblanklines (3)'Write a row.TF. Write

ASP. NET web page capturing-capturing hyperlinks

Here, a textbox is used to receive the input URL, which can capture all the hyperlinks on the webpage. Code As follows:String HTTP = txthttp. text. tostring (); // target webpage URL system. net. webrequest request = system. net. webrequest.

Asp.net uploads, saves, and displays binary files to solve the problem of garbled Chinese Characters in file streams.

A few days ago, in order to solve cross-origin file interaction and upload files. Converts a file to binary for transmission, facilitating storage.   First, there is a problem when uploading files, that is, the desktop files on the computer and

Basic ASP. NET gridview operations

1. Bind The gridview and perform paging operations   Protected void gv_bind (){Datatable dt = new datatable ();If (txt_search.text.trim () = "")Dt = g_cc.getlist (this. getuserid (). Tables [0];ElseDt = g_cc.getsearch (txt_search.text.trim (), this.

Asp.net user control calls JS Problem Solution

The previous day, a user control was written for the convenience of calling. To verify the text box, I use Js for verification. However, it is found that the JS written in the user control is not called on the page at all. After checking some

Asp.net implements Desktop shortcuts

If you want your website to create a shortcut on the desktop, click the shortcut icon to open the website. You must use a URL file.   I wanted to simulate kaixin.com's "set as a desktop icon". Unfortunately, PHP cannot be used in Asp.net. In

Server Object, ASP 0177 (0x800401f3) Error Solution

After debugging the Image Upload Program (aspjpeg component) on the Enterprise computer today, an error is returned:   Server Object, ASP 0177 (0x800401f3)Invalid category string/Ijuqing/upzip/upld. asp, Row 3.   However, when I debug this component

Asp.net with C # Learning personal talk

Asp.net with C # Learning personal talk Statement: I do not understand Asp.net and C #, and I have never studied Asp.net. I have only guided a few people to learn. They have learned well and have found a good job. But I still want to say that the

Asp.net angle brackets

In the Asp.net application, common , , and On the Asp.net page. Use to bind a resource project to a global project, and use to bind viewdata to Asp.net MVC. It is mainly used to define pages, introduce controls, components, and set cache on Web

ASP. NET -- get client browser information and server host name and IP address

String hostname = DNS. gethostname (); // obtain the host name IPaddress [] Addresslist = DNS. gethostbyname (hostname ). addresslist; // obtain the IP list httpbrowsercapabilities BC = request. browser; // lab_info is used to display the

Asp.net forms form verification (role)

Go to http://www.cnblogs.com/stg609/archive/2009/03/12/1408296.html   Asp.net forms form verification experience and verification process analysis Recently, a login page was designed to address security issues. I remember that in my course on

Using structuremap with the ASP. net mvc Framework

Address: http://www.bengtbe.com/blog/post/2009/02/27/Using-StructureMap-with-the-ASPNET-MVC-framework.aspx Using structuremap with the ASP. net mvc Framework Friday Author: bengtbe Here I want to explain how to use the structuremap class under the.

Asp.net 2.0 ie print directly-the skill example only prints the printed content

  As the project needs to be printed, and not the actual content on the Web page needs to be printed, only part of the content is printed.The following code is provided to share with you. Skill examples only print printed .Page code: print.

C #, Asp.net, MD5 Encryption

Create a Windows application and add two textbox text boxes and one button; 2. Add a class MD5 and introduce the namespace: using system. Security. cryptography. The class MD5 code is as follows: Using system;Using system. Collections.

ASP: HTML writing at the background to generate a front-end table

Background VB: If not newtable is nothing and newtable. Rows. Count> 0 thenDim STR as stringbuilder = new stringbuilder ()Str. append (" ")For I = 0 to newtable. Rows. Count-1If I mod 3 = 0 thenStr. append (" ")End ifDim path as string = newtable.

ASP. NET callback

Aspx: test Aspx. VB: Partial class _ defaultInherits system. Web. UI. PageImplements system. Web. UI. icallbackeventhandlerDim _ callbackresult as string = nothingProtected sub page_load (byval sender as object, byval e as system. eventargs)

A Disk Quota code that uses ASP. NET to operate on com.

Using system; Using diskquotatypelibrary; Namespace ex3cut3. Libraries {/// //////Public class quotaclass {private diskquotacontrolclass _ diskquotacontrol; // This path as to be in this format or// Else is going to give an error of invalid

Use urlrewrite and Asp.net to dynamically generate HTM pages [favorites]

When I was working on a project some time ago, I was always looking for a method to dynamically generate HTM pages. The configuration was simple and had nothing to do with the project. I finally found it. I only need to perform simple configuration

Total Pages: 1800 1 .... 1152 1153 1154 1155 1156 .... 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.