Custom exception page in Asp.net

Sort by exception handling priority (0) AddCodeProtected void application_error (Object sender, eventargs E){ Context. clearerror (); Response. Write ("error "); Response. Redirect ("errorpage.htm ");} (1) webform1_error in the background

Two Methods for reading databases in Asp.net

In Asp.net, you can use datareader and dataset to read data from the database, The differences between the two are as follows: The following five steps are required to use a DataSet object to read data: (1) Create a database connection. You can

Asp.net: technology related to the gridview (5-solution for too long fields bound to the template column)

The idea is as follows: Determine the columns to be monitored. When more than one limit value is exceeded, the corresponding operation can be taken. For example, when the value of the field bookid is 123456789, to limit the length of characters,

Build a dnn 4. x module development environment and module instance Based on ASP. NET 2.0 (2)

Some friends in the group have been asking how to build ASP-based systems. NET 2.0 dnn 4. X module development environment, subject to the original ASP. net1.1 Thinking Influence of multiple engineering mechanisms, everyone has been waiting for vs200

Tip: (4) couplets in Asp.net move with the scroll bar

1 Script Language = " Javascript " > 2 Function close_float_left (){ 3 Adlayer1.style. Visibility = " Hidden " ; 4 } 5 Function close_float_right (){ 6 Adlayer2.style. Visibility = " Hidden " ;

ASP. NET 2.0 prevents simultaneous login by the same user

To prevent the same user from logging on at the same time, the home page should record the information of the online user (Here we use the user name as an example), and then determine whether the Login User already exists. Here, we use a cache to

ASP. NET exposed has a serious security defect, which also affects SharePoint

In his blog in September 18, Scott Guthrie, Microsoft Development Manager, proposed ASP.. Net versions (1.0, 1.1, 2.0, 3.5, 3.5sp1, 4.0) all have the same defect. Malicious users can exploit this defect to obtain the configuration file (web. config:

Send email from ASP. NET page

We often see that you can post comments on some blog pages and notify the moderator via email (for example, our blog Park). So how can I use Asp.net to send emails? We can achieve this with the powerful class libraries provided by. net. First,

ASP. NET online resources

ASP. NET influential blogs Bill evjen: www.geekswithblogs.net/evjenScott hanselman: www.hanselman.com/blog/Devin networking: www.geekswithblogs.net/devinKent Sharkey: www.acmebinary.com/blogRob HOWARD: weblogs.asp.net/fig/Scott Guthrie:

Parse HTML code in Asp.net MVC

After capturing the web page recently, you want to display some links of the original website on your website, for example: content area However, Asp.net MVC always outputs the tab. Once the source code "", it is parsed by & quot;This is not

Use the WCF Ria service to support ASP. NET Authentication

To access the service class on the client, you must add the service as an application in APP. xml.ProgramLevel resources: Otherwise, the program prompts that the current instance of webcontext is unavailable. You must instantiate webcontext and

[Original] the world's first ASP. net2.0 control library without viewstate

First, let's see: Viewstate plays an important role in ASP. NET: Viewstate is ASP. A very important feature of net is used to maintain the server status of the Control During page sending back, so that we can easily write in the

Learning ASP. NET 4.5 mvc4.0 (3) with me)

Today, we continue ASP. NET 4.5 MVC 4.0. We were familiar with mvc4.0 updates in vs11 and Win8 two days ago, as well as the basic syntax and several keywords in MVC. After understanding this, we can further understand MVC. I believe many people have

Server Asp.net permission setting problem and solution time:

Human server use environment: Compared with ASP, Win 2003 ASP. NET has different permission settings and cannot run even if it is set incorrectly. All the answers found on the Internet are very junk. None of them can be used. The following is my

How to process images in ASP. NET web applications-useful

Regular, direct analysisCode First, create a table. The field type is image. Normally, you will find that there is no way to store the image, because the length is 50 and cannot be changed. A single image is usually more than 1000 The length

Asp.net 2.0 solution to prevent password box clearing

 1. We often have the following situations:That is, the user must enter a new one due to an incorrect information during registration. However, this process goes through the server PostBack. So the Password box is cleared. In PostBack mode, if the

ASP expert "A Jiang"

A Jiang is a person from Zhengzhou. He was a student from Henan Rural University at the beginning. He once worked in my uncle's company. He took a fancy to him because he typed very fast at the time, later it seems to be in the golden light

[Reprint] ASP. NET prompt box for adding and deleting the gridview

In the gridview, we can directly add a commandfield deletion column to delete a row. However, in order to avoid accidental deletion due to misoperations, the operator is asked to confirm the deletion before deletion. First, we add a template column

Summary of ten problems with upgrading Asp.net 1.0 to ASP. NET 2.0

I have upgraded my 1.1 project over the past few days and found some problems. I will summarize the problems here and remind my friends who have not yet had time to upgrade or prepare for the upgrade to avoid detours during the upgrade process, A

Dynamic addition and deletion of server-side controls in Asp.net

Placeholder: Control container, which is not displayed. It is mainly used to place server controls and only display its child elements (controls in it) Dynamic addition and deletion of server controls placeholderDynamically add server-side controls

Total Pages: 1800 1 .... 1149 1150 1151 1152 1153 .... 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.