Introduction to ASP. Net Application

In ASP. Net, the Application usage is the same as that in ASP, and there is almost nothing to say, but it has two more useful events, Application_OnBeginRequest and Application_OnEndRequest. They are placed in the global file like the original

. NET Method Instance for updating CDATA content in Xml

Assume that the content of the Xml file is as follows: 1. XML CodeCopy codeThe Code is as follows: . NET development ]> http://www.jb51.net We can use the following method to modify the content of the CDATA node. C # codeCopy codeThe Code is as

Methods for passing values between ASP. NET forms

Assume that the ParentForm. aspx page contains TextBox1 text box and Open button.Click the Open button to bring up SubForm. aspx. The SubForm. aspx page contains the TextBox1 text box and the Close button.Click Close to Close the SubForm. aspx page,

How does asp.net obtain the value of a column in a row in the GRIDVIEW?

The best way to change the style of a column based on its value is to find a solution in the DataRowBound event of the GridView. After the row in the GridView is bound to data, the DataRowBound event is executed immediately. The DataRowBound event

A simple example of ASP. NET Forms Identity Authentication

Web. configCopy codeThe Code is as follows:Default. aspxCopy codeThe Code is as follows: homepage Login. aspxCopy codeThe Code is as follows: homepage

A small example of using ASP. Net to obtain the MAC address of the client Nic

Copy codeThe Code is as follows:Using System. Text. RegularExpressions;Using System. Diagnostics;Public class test{Public test{}Public static string GetCustomerMac (string IP) // para IP is the clients IP{String dirResults = "";ProcessStartInfo psi =

Example code of VB. NET setting screen resolution, color bits, and refresh rate

Copy codeThe Code is as follows:Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As LongPrivate Declare Function ChangeDisplaySettings Lib "user32" Alias "ChangeDisplaySettingsA" (lpDevMode As Any, ByVal

Implementation of fixed title columns and columns in ASP. NET

APSX Page code: JSCopy codeThe Code is as follows:- // All the above files can be downloaded directly from the Internet $ (Document). ready (function (){GridviewScroll ();}); Function gridviewScroll (){ // Because my GRIDVIEW is to be placed in a

Swfupload ajax example code for refreshing image uploads

Recently, when I was working on a project, I needed to add a function to upload user images. Uploading user images actually involves a lot of things, it is not just an html tag or a FileUpload control blocked by asp.net. Currently, the website does

System. Timers. Timer scheduled execution program sample code

System. Timers. Timer scheduled execution ProgramCopy codeThe Code is as follows:System. Timers. Timer t = new System. Timers. Timer (5000); // set the interval to 5 seconds.Private void Form1_Load (object sender, EventArgs e){T. Elapsed + = new

Introduction to asp.net MVC implementation of image uploading without Components

Example:If I want to upload an image to the server: asp pageCopy codeThe Code is as follows:.... Js Code:Copy codeThe Code is as follows:Function UpLoad (){If there are other values, determine whether it is null.Form1.submit ();} Background codeCopy

Enable database cache dependency to optimize website performance

In many cases, the performance bottleneck of our SERVER is when querying the database, so it is very important for the database cache. Is there a way to implement the SQL SERVER database cache, when the data table is not updated, it is read from the

Create a master page in ASP. NET 2.0

Although master pages and content pages are powerful, their creation and application processes are not complex. This and next sections take the example shown in "create 1" as an example to describe how to use Visual Stuido 2005 to create a master

Idea and implementation of Renaming an ASP. NET file during File Download

Sometimes it is not good to check files one by one to ensure that they will not overwrite the previously uploaded files when they are uploaded, therefore, the GUID can be automatically generated here to rename the file name to the original name of

Some options on the ASP. NET page are prompted to determine the specific implementation

There are two possible cases. Use the ext control and asp control for analysis.1. If it is an asp control, you must obtain the id of the current control when prompted. You can obtain the corresponding options by querying the source code..2. If it is

Several common methods required for Network Programming

Several common methods are required when network programming is involved. 1. Special attributes in ASP. NET:Get Server computer name: Page. Server. ManchineNameGet User information: Page. UserObtain the client computer name: Page. Request.

Several ASP. NET skills

OpenFile Dialog in WebFormIf you need an OpenFile dialog box that opens a File in a browser, you can use the HTML Input to set its Type to File: TOP: 228px; HEIGHT: 25px "type =" file "size =" 58 "id =" txtFilePath ">Page_Load and IsPostBackIn ASP.

A new solution for calling the Stored Procedure Method in ASP. NET

In the process of using. NET, database access is a very important part, especially during the construction of the B/S system, database operations have almost become an essential operation. Calling stored procedures to implement database operations

The DataGrid provides both paging and sorting functions and notes.

When the DataGrid supports both paging and sorting, note that when the data source is rebound, MyDataGrid. CurrentPageIndex = 0;The following is the source code for implementing the above functions, so we will not have to fix the dropdownlist in

Use ASP. NET technology to dynamically generate HTML pages

Ideas1. use a tool such as Dw-Mx to generate an html template, and add special tags (such as $ htmlformat $) where the format needs to be added. When a file is dynamically generated, use the code to read the template, obtain the content entered at

Total Pages: 1075 1 .... 675 676 677 678 679 .... 1075 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.