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 (cdonts. newmail) of email)

Formmail.htm CopyCode The Code is as follows: submit a form to send an email & Lt; TD Height = "440" & gt;Width = "100%">& Lt; TD width = "44%" & gt; last name: & Lt; TD width = "56%" & gt; & Lt; TD width = "44%" & gt; sex: & Lt;

Shortcuts for calling database files in ASP development

Introduction This article focuses on ASP Program The most basic and critical part of the design is "database file calling", and some tips on database file calling in ASP programming are also described. ASP Introduction ASP (Active Server

Implement your own urldecode using ASP applications

That is: If there are spaces, replace % 20. If there are other characters, replace % ASCII. If there are four characters including Chinese characters, replace them with two % ASCII characters. However, sometimes we also need to decode the encoded

ASP intercepts strings in two original applications

1. Purely intercepting strings CopyCode The Code is as follows: function cutstr (thestr1, strlen) Dim L, T, C L = Len (thestr1) If l T = 0 For dxy1 = 1 to L C = ABS (ASC (mid (thestr1, dxy1, 1 ))) If C & gt; 255 then T = T + 2 Else T = t + 1 End if

Byval and byref (commands used to compile ASP subprograms)

Byval transfers a copy of the parameter memory to the caller. That is to say, the stack pressure is directly the passed value. The actual address of the byref transfer parameter memory is sent to the caller. That is to say, the stack medium pressure

Web-based event calendar using ASP and SQL

This article describes how to create a web-based calendar and how to create a web site for developers who are not familiar with Active Server Pages (ASP), SQL, and ADO, it also provides experienced developers with Web site scalability skills.

How to use ADO on the ASP homepage that does not support databases

Many people may have their own ASP personal homepage, but there are not many users with database permissions. Today I will give you a method. You can create a database by yourself. No access or SQL Server format is required. Create a format by

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

Online File compression and decompression using ASP. NET

We often encounter the problem of batch upload and upload all files in a directory to the server. So how can we solve such problems? Previously, the technology generally used ActiveX and other methods. Here I use sharpzlib to implement it. I heard

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?

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

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

Specific Code implemented by the calendar algorithm in ASP

Copy codeThe Code is as follows: 'The following code is implemented using the calendar algorithm in ASP. 'Determine whether a year and month are specified first. If not, it is displayed based on the current year and month.If Request ("ReqDate") =

Total Pages: 1800 1 .... 1134 1135 1136 1137 1138 .... 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.