Cookie preset in ASP. NET 2.0

This is a comment on a foreigner's blog this morning: If you use formsauthentication in Asp.net 2.0 and set the cookie to persistent, the duration is 30 minutes by default, instead of 50 years in Asp.net 1.1, because 50 years is too insecure, your

Build a markup language for your ASP Website System

Online Editing is inevitable during the construction of dynamic websites.Article. Html provides a textarea tag, but it does not actually solve this problem, because the text from textarea is plain text. Unless HTML tags are used during input, a text

ASP. NET: optimizes performance by performing a large number of write operations on multiple files at the same time

In my own project, I need to write 65536 files multiple times at the same time. If you open all the files first, repeat the writing, and close all the files. It takes about 16 minutes to complete the first write operation, and 40 minutes to

Several methods and functions that are easy to ignore but important in ASP. NET are introduced.

We will introduce several methods of the path class in. Net: 1. Path. Combine (string, string)Returns a path based on the given two paths.For example:String completepath = system. Io. Path. Combine (@ "C: \ MyApp", @ "Images \ skyline.jpg ");A full

ASP. net2.0 webrource, development of fine-tuning button controls

Now. Many developers are already using the webresource feature of ASP. net2.0. Webresource allows us to embed resourcesProgramCentralized. Including images and text. We have to introduce webresource. axd when introducing webresource. Let's take a

ASP vulnerabilities-advanced

After reading the introductory and advanced articles, you can practice a little bit to crack common websites. However, if you cannot guess the name of the table name, or Program How can I improve the success rate of Injection by filtering some

ASP. NET solution to prevent auto-triggered events from refreshing

When you use Asp.net to refresh the page, events on the server are automatically triggered. For example, after entering the registration information on a registration page, if you press F5 to refresh it, it will be automatically triggered to the

Asynchronous Data Access to data source controls in ASP. net2.0

In part 2 and Part 2, the weatherdatasource control is created. This control runs on the xml api provided by weather.com (English) and uses webrequest and webresponse to access data through HTTP. So far, the service has been accessed synchronously.

ASP vulnerabilities-advanced

In this article, we learned how to judge SQL injection, but it is far from enough to obtain the website's confidential content. Next, we will continue to learn how to obtain the desired content from the database. First, let's take a look at the

Common ASP. NET functions (recommended)

ABS (number) gets the absolute value of the value. ASC (string) obtains the first ASCII code of a string expression. ATN (number) gets the arc tangent value of an angle. Callbyname (object, procname, usecalltype, [ARGs ()]) is used to execute the

SQL datasource for getting started with ASP. net2.0 Databases

When using the sqldatasource control to select data, you can start from two attributes: connectionstring and selectcommand, as shown below: Connectionstring = "Server = myserver; Database = northwind" Selectcommand = "select fieldl, [field

ASP. NET uploads images and generates thumbnails with copyright information

CopyCode The Code is as follows: Void page_load (Object sender, eventargs E){If (! Page. ispostback){Imgpreview. Visible = false;}}Void getthumbnailimage (INT width, int height, string strinfo, int left, int right){String file = "uploads/"

Dynamic creation and use of Web Components Based on XML in ASP. NET

Some time ago, I needed to dynamically create Web Components during development. I thought it was a trivial matter, but it was easy to do it. There are some minor issues. Next I will combine my ownProgramThis section describes how to dynamically

ASP. NET: a classic multi-thread learning code

A classic multi-thread LearningCode. 1. multithreading synchronization is used.2. multithreading sequence is used. If you are interested, read the following code carefully. Pay attention to the sequence of code segments and think about whether

Access Connection for ASP. NET database programming failed

Errors and failures are always inevitable in applications. Program . If someone adds a new folder on the MDB directory and updates the directory tree of the server, what will happen? What if the MDB name is changed? What if the MDB file is damaged?

Examples of inheritance and polymorphism for ASP. NET beginners

I learned ASP. NET soon and used C # To writeCodeIn learning C #, I found that many beginners do not have a special understanding of inheritance and polymorphism. Therefore, I have provided this example to help you. The example is very simple. Page

Save/retrieve images in/from the SQL database in Asp.net

1. store images in the database Use the following knowledge:1. Use stream objects2. Search for the size and type of the image to be uploaded3. How to Use the inputstream Method Necessary Conditions for inserting an image1. # enctype attribute

Page garbled characters in Asp.net

1. Requestencoding = "gb2312"Responseencoding = "gb2312"/> Or 2. Specify the file name when downloading the file. Is the Chinese file name garbled? Response. addheader ("content-disposition", "attachment; filename =" + httputility.

Asp access creates static files/html

Description: Ben Code Extract data from access to Create HTML files without creating folders. If the file name is the same as the file name to be created, it will overwrite it. It is the same principle as SQL updates. To be added: delete and

ASP. NET2.0 Server Control Render Method

Control rendering is the process of writing markup text to the HTTP output stream. The server sends the generated markup text to the client through the HTTP output. The text will be converted to visualized elements through the client browser. By

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