' ******* connection Database tree Graph generator ********
'*****************************
' Suppose you have established the SQL Server database Unittree and created tables in the library:
' Units (ID Unit ordinal integer unique, name unit name
Since the advent of ASP (Active Server Pages), ASP technology has been popular with more and more network programmers as it can create robust, maintainable, platform-independent applications, and more people are using ASP for Web development. But
Related articles See:
http://www.111cn.net/Develop/read_article.asp?id=22695
This article on the basis of a number of additions, add a few suitable for Chinese web site function to go in, there may be some did not add, there are interested friends
1. DataSet base class
The code is as follows
Copy Code
Data set base classPublic abstract class Basetbwhere T:class{private static string _textfile = Path.Combine (configurationmanager.appsettings["Textdbdir"], typeof (
A GUID (global uniform identifier) is a number that is generated on a single machine and is guaranteed to be unique to all machines in the same space-time. Typically, the platform provides an API to generate GUIDs. The generation algorithm is
Gets the full path of the current process, including the filename (process name).String str = this. GetType (). Assembly.location;Result:x:xxxxxxxxx.exe (. exe file directory +.exe file name)
Gets the full path of the main module that is associated
Typically, C # custom events have the following steps:
1, declare a delegate: (for the definition of the type of event)
Such as:
Public delegate void event name EventHandler (Object Serder, EventArgs e); The event name is replaced with your own,
C # version
Upload.aspx
UpLoad.aspx.cs
Using System; Using System.Collections; Using System.ComponentModel; Using System.Data; Using System.Drawing; Using System.Web; Using System.Web.SessionState; Using System.Web.UI; Using System.Web.
A recent Ajax call has been made in asp.net: The client side first takes a page template from the ASP.net server and then takes some relevant data from the server when the page is initialized to implement the dynamic display of the page template.
' ############## returns a directory name for a path #########################################################################function GetPath (Givepath) ' Returns a directory name for a pathDim I,num,pathPath=givepathFor i=0 to Len (path)-1If Mid
' This article provides two ASP file operation function, read opens the file to read the entire content, Wirte writes the content to a file.function read (path)Set Mf=server.createobject ("Scripting.FileSystemObject")Set Mt=mf.opentextfile
for Each statement instance example27 Please input e-mail: >If Request.Form ("submit") = "OK" thenEmail=request.form ("email") ' Read the input stringNames=split (email, "@") ' The Split function is to split the string into multiple substrings with
Sub EFolder (foldername)
Dim fso
Set Fso=server.createobject ("Scripting.FileSystemObject")
If Fso.folderexists (Server.MapPath (foldername)) then
Set fso=nothing
Exit Sub
Else
Fso.createfolder (Server.MapPath (foldername))
End If
Okay, first of all, ignore the data-encoding object that will save our Oscar nomination. Now that we have something more interesting, let's add some labels to the. aspx page to let this thing run. First, add a link to the default style sheet in the
I wrote an ASP. NET article a few days ago to read and write Web. Config. Then I did use the method in this article to rewrite the configuration module of my website. The results showed that the website was restarted from time to time, which was
: What is linq?Linq can be understood as a strongly typed query language embedded in the C # syntax. (Note: Although linq looks similar to SQL queries, its syntax is different .)II. What is the role of linq?Provides a unified and symmetric way for
Asp tutorial. net various page cache detailsImplementationTo implement the page output cache, you only need to add an OutputCache command to the page.Like other page commands, this command should appear at the top of the ASPX page, that is, before
Asp Tutorial: Delegate, Action, Func, and Predicate in. net developmentMany new programs, such as Linq and Lamda expressions, are poorly written. The use and differences of related Delegate, Action, Func, and Predicate are often confusing. Here we
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