Asp.net (read/write lock)

Most problems are as follows: 1: write some content to a file and report an exception when reading the file content in another process, thread, or subsequent operations.System. IO. IOException: the file "XXX" is being used by another process, so

Asp.net dynamic generation of rdlc report (original)

Copy codeThe Code is as follows:String cCount = "";String dCount = "";String jCount = "";Protected void Page_Load (object sender, EventArgs e){If (! IsPostBack){String id = Request. QueryString ["OrderID"] = null? "1": Request. QueryString ["OrderID"

Use of asp.net DoDragDrop Method

The class library is defined:Copy codeThe Code is as follows:[UIPermissionAttribute (SecurityAction. Demand, Clipboard = UIPermissionClipboard. OwnClipboard)]Public DragDropEffects DoDragDrop (Object data,DragDropEffects allowedEffects) The data

How to restrict the size of files uploaded in asp.net

Where the size of the uploaded file is controlled in web. config:Copy codeThe Code is as follows: MaxRequestLength is the maximum size of the parameter request to control the upload size (in kilobytes ). The default size is 4096 KB (4 MB ).

Asp.net textbox javascript implements enter and ctrl + enter interchange text boxes to send messages and line breaks (similar

1. It may be a bit elementary to explain. I hope that the experts will not "spray" me, because I know that not everyone is a master, and I am afraid that the experts will say that I have installed 13;2. If there is anything wrong with it, I hope you

Basic Steps for database operations in ASP. NET

1. Basic Steps for ASP. NET database operations:Common Methods for ASP. NET data operations:A. ExecuteReader ()The returned result is a SqlDataReader object or OleDbDataReader object. Each return or operation guides a record to be stored in the

Code for implementing a linq page in asp.net

LInq paginationCopy codeThe Code is as follows:TestDataContext dc = new testDataContext ();Public string GetPageNum (GridView GridViewName, int pagesize, IQueryable SQL){Int page;If (HttpContext. Current. Request. QueryString ["page"]! = Null)Page =

Implementation Code for capturing data in the blog garden using HtmlAgilityPack XPath expressions

Web Front-end codeCopy codeThe Code is as follows: TitleAuthorRelease Date 'target = "_ blank"> 'target = "_ blank"> Cs background code:Copy codeThe Code is as follows:Using System;Using System. Collections. Generic;Using System. Linq;Using System.

Asp.net (c #) implements code for accessing binary images from sqlserver

The following describes the main implementation ideas:1. Access Images(1) convert the image file to binary and directly store it in SQL serverCopy codeThe Code is as follows:// UploadHelper. cs/// /// Convert the image into a long binary/// /// ///

Difference between Request. QueryString and Request. Param in asp.net

Request. params is actually a set of requests. querystring, request. form, request. cookies, and request. servervariables.If you want to transmit data on two pages, you can only use request. querystring, request. form, and request. cookies.Request.

Code used to perform cookies in ASP. NET

Copy codeThe Code is as follows:Public class BsCookie{// Cookie of the operationPrivate HttpCookie _ theCookie;// Cookie namePrivate string _ cookieName;Private bool _ httpOnly = true;/// /// Whether to allow access only on the server side. By

Exclude the "parserror" error when JQuery uses HttpGet to call WebService to return Json

JQuery is often used. I didn't pay attention to it in the past. Recently, when I used JQuery to call WebService through HttpGet, I found that the server did not return json data as expected, but returned an error message: parserror.Now the problem

Code for customizing the value of asp.net gridview

In model:Copy codeThe Code is as follows:Public function item ($ items, $ name ){$ ReturnValue = '';Foreach ($ items as $ n => $ item ){If (isset ($ this-> $ name )){If ($ n ==$ this-> $ name ){$ ReturnValue = $ item;}}}Return $ returnValue;}

Solution to bind TextBox carriage return event in asp.net

1. Bind the carriage return events on the page to the buttons.Copy codeThe Code is as follows:Function EnterTextBox (e){Var msie = (document. all )? True: false;Var keycode;If (! Msie) keycode = window. event? E. keyCode: e. which;Else keycode = e.

How to import the page content to the word template under asp.net

1. Create a New word template by searching for the word documents that need to be filled with a program and using "bookmarks" (insert --> bookmarks --> Enter id --> OK) mark and save.2. Add everyone readable to the word template to prevent files

Implementation Code for assigning an object of the entity class to a form in asp.net

One problem is that the form name and object attribute name (you can also use fields for Attribute assignment) must be the same, which is a bit insecure, but the background is quite helpful, many background applications are used to fill in the form

Unicode Chinese transcoding Function Code

I really don't know about TX. the user name encoding actually returns different values. For example, "Lei 52D", there are two types of returned values? Lei? 52D and % 01% u96F7 % u78CA % 0152D. Quite depressing. Fortunately, there is still a Chinese

Some configurations in asp.net Webconfig

Copy codeThe Code is as follows:Note: In addition to manually editing this file, you can also useWeb management tools to configure application settings. You can use"Website"-> "Asp. Net configuration" option.The complete list of settings and

Step by step create a beautiful news list (without refreshing pages, Content preview) Chapter 3

Let's take a look at the demand analysis:3. =: Click the next page to trigger the event, call ajax to search for the data on the next page in the database, and return the data on the page.There are two events, both js events. We use jquery code to

Select rows in the asp.net GridView template Column

Most of the functions are implemented through the template column. To facilitate selection and deletion, the built-in functions and methods are used, which can be easily implemented without any major problems found; however, when deployed to the

Total Pages: 1075 1 .... 853 854 855 856 857 .... 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.