C # has the mechanism to automatically reclaim memory, but sometimes there is a lag in automatic recycling, need to quickly recycle after variable use, save memory, here to introduce a simple method.
1. Assign null to object first;
2. Use of
RSS for the site has a very important use, this article is an example to show the ASP.net read RSS method for everyone to reference, the specific methods are as follows:
The main functional code is as follows:
///Load rss//////rss address ///
In this article, I'll introduce 8 techniques for improving the performance of the ASP.net Web API.
1 Use the fastest JSON serialization tool
The serialization of JSON has a critical impact on the performance of the entire ASP.net Web API. In one
Code download
Description: The database connection string is in the Web.config file, and the official Northwind database is used for easy running.
Reference (tribute to its authors):
²http://www.loveweb8.com/plus/demo.php?aid=57 This example is
Copy Code code as follows:
to meet two columns, arbitrarily many rows. The background dynamically generates a Drop-down box, and it also needs to be preceded by a cascading level. Using Js+jquery, using server control +ajax is
The first is to add a onscroll= "Javascript:setscolltop ()" Method for the Div (not necessarily div other tagging ideas should be the same)
Copy Code code as follows:
Www.jb51.net
......
The Setscrolltop method here
Copy Code code as follows:
if (E.commandname = "Up")
{
int index = E.item.itemindex;
String TitleID = rgzdgz.mastertableview.datakeyvalues[index]["TitleID"]. ToString (). Trim ();
if (E.item.itemindex > 0)
{
Copy Code code as follows:
The first method of #region parameter transfer
Parameter setting method (first)
SqlParameter sp = new SqlParameter ("@Name", str_name);
SqlParameter SP2 = new SqlParameter ("@Pwd", str_pwd);
Cmd.
First type:
Copy Code code as follows:
Response.Write ("")//Pop-up dialog box asking if you want to close
The second type:
Copy Code code as follows:
Response.Write ("");/no pop-up query
Pass value to Parent page:
Recently do a function, taking into account the ease of use of users, reduce pop-up pages, the use of point "edit" button without pop-up page directly the current row of cell content can be edited. Enter the page to display the following figure:
In the Java EE Web development, there are filters filter filter, the filter can intercept the specified URL access, and execute the filter method, according to the actual application, in the filter to modify the requested code, to determine the
The following are divided into two different cases. Analysis by using the Ext control and ASP's controls respectively
1. If it is an ASP's control, you need to get the ID of the current control when you are prompted, and you can get the
Example:
If I want to upload a picture to the server side: ASP page
Copy Code code as follows:
....
JS Code:
Copy Code code as follows:
function UpLoad ()
{
If there are other values,
In general, a lot of people in the control browser scroll bar is used page.smartnavigation = False, for the page div and so on the scroll bar control, I read someone else's code, wrote a, for reference only:
Copy Code code as follows:
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