'******************************
' Function: Selplay (strurl,strwidth,strheight)
' Parameters: strURL, animated video path; strwidth, video height; strheight, video height
' Author: Arisisi
' Date: 2007/7/13
' Description: Obtain the user real IP,
Memory is now very cheap-therefore, a great performance improvement can be achieved by implementing caching in the entire application in an intelligent manner. Caching can mask many of the fault caches as a way to get "good enough" performance
1: Replace with the String.Replace function, but not case-supported.
2: Regular System.Text.Regex replacement, with regexpoption modify whether or not to support case.
3: In the case of small data, the use of string.substring and + can achieve
Just beginning to contact ASP.net, about how to log records less, so a simple record of log4net configuration and use, in case you forget later.
first introduced Log4net.dll, about the file of their own Baidu download.
Then configure the
Three elements of ASP.net extension method
(1), Static class
As can be seen from the figure below, Inputextension is a static class first;
(2), static method
Since it is a static class, all of its methods are necessarily static methods, such as
The examples in this article describe the ASP.net method for simply generating XML files. Share to everyone for your reference, specific as follows:
Way one: Use DataSet directly
SqlConnection conn = new SqlConnection ();
Conn.
The example of this paper describes the method of ASP.net to realize the infinite classification generation table. Share to everyone for your reference, specific as follows:
Data Structure Monitor_group
monitor_grp_id monitor_grp_name parent_id
Description of RegularExpressionValidator control expression:
The square brackets "[]" are used with the definition of acceptable characters. [Abc123] indicates that the control can only accept a,b,c,1,2,3 6 characters;
The anti-collection symbol "
First, the preface
Dependencyresolver is an important component of MVC, which, by name, is responsible for the resolution of dependent objects, which can be said to be an IOC container used within the MVC framework. The creation of many objects
PS: This is for the asp.net4.5 version, as if in the latest 5.0 version of the add Owin, thoroughly decoupled and Web server coupling, I have not yet studied, dare not raved that the 4.5 model applies 5.0.
action*0x1: A asp.net model of Dahua
Copy Code code as follows:
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text;
Namespace Test
{
Class Program
{
static void Main (string[] args)
{
var customer = new Customer
{
IsActive = True,
Use on the server side
JavaScriptSerializer serializer = new JavaScriptSerializer ();
Return serializer. Serialize (obj);
For serialization of pairs of images,
For the time type the result is: \/date (1216796600500) \/
The client resolves in the
Some time ago, a friend. To complete this feature, the data is imported into the DataGrid and exported to Excel. This is really superfluous.
Solution:
read out data through LINQ and write directly to the data stream
The code is as follows:
1. Use validation controls
This is client-side validation, and Microsoft developers encapsulate the most common validation features, making our development efficiency significantly higher, and especially the custom validation controls, so flexible
Despise their own, all said the more basic the more prone to problems
Yesterday LP installed IIS under Win2003 want to test an ASP Web site, the result is always prompt ' can't find the page ', but browsing HTML and other static pages is normal,
1. The order of. NET installations should be to install IIS first, then install Vs.net, if the order is reversed, or if IIS is reinstalled, you will need to use Aspnet_regiis.exe-i to reinstall IIS Mapping (primarily for ASPX, ASMX, etc. The
At present, the major search engines such as Google, Baidu, Yahoo has the dynamic page such as asp,php has a good support, as long as the dynamic page after the parameters do not too long, such as control in 3 parameters, the page content to do some
'////////////////////////////////////////////////fso Operation/////////////////////////////////////
' Determine if a folder exists
Function folderexits (Folder)
Folder=server.mappath (Folder)
Set fso= Server.CreateObject
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