Develop common Regular Expressions in asp.net (1/3)

"^ D + $" // non-negative integer (positive integer + 0) "^ [0-9] * [1-9] [0-9] * $" // positive integer "^ (-D +) | (0 +) $" // non-positive integer (negative integer + 0) "^-[0-9] * [1-9] [0-9] * $" // negative integer "^ -? D + $ "// integer "^ D

Prevent silverlight application from being referenced by others

Add the following to application_startup of app. xaml. cs: If (! App. current. host. settings. enablehtmlaccess)Throw new exception ("the current application is not allowed to communicate with dom "); String htmlurl = system.windows.browser.htmlpage.

Asp.net fileupload file upload code

Asp tutorial. net fileupload file upload code Id = "fileupload" width = "100%" height = "100%"Codebase = "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">Width = "100%" height = "100%" name = "fileupload" align =

. Net login simple application code

This is an entry-level asp tutorial. net user logon code. Let's take a look at the code below. Login. aspx. cs Protected void btnlogin_click (object sender, eventargs e){ String username = txtusername. text;String userpwd = txtuserpwd. text;

ASP. NET export data to Excel and Output

Asp tutorial. net export data to excel and OutputPublic void import () {If (this. ddl_task.selectedvalue = "-1 "){Function. script. alert ("select a topic! ");Return;}String savepath = server. mappath ("SQL \");If (fileup1.hasfile){Excelengine =

ASP. NET generates image verification Codes

Create a new GetCode. aspx page and paste the following code in the GetCode. aspx. cs code file: Using System;Using System. Collections;Using System. Configuration;Using System. Data;Using System. Web;Using System. Web. Security;Using System. Web.

ASP. NET program Security

1. Identity-Who am I? When considering identity, we can use several unique features to describe ourselves. For example, I am a golden-haired woman who likes to watch sci-fi movies and assemble PCs, but this information is not necessary for anyone

Asp.net verifies the form program

3. Create the Default. aspx and Login. aspx pages on the website.In Login. put the Login and CreateUserWizard controls in the aspx page (because one user in the new library does not exist, the CreateUserWizard control is only used to create a test

ASP. NET 2.0, a new realm of refreshing new pages

ASP. NET 2.0, a new realm of refreshing new pages -- Davey -- "No refreshing page" is just an inaccurate effect description (in fact, there are other methods to achieve this effect). More specifically, it is said: on the page, use JavaScript to

C # code design-Code39

CODE39 is the first bar code that can contain numbers and letters. In addition to the UPC/EAN Code Used in supermarkets and retail, CODE39 code is used in almost other application environments. It can be said that CODE39 Code is one of the most

Free Space for ASP. net2.0

Free ASP. net2.0 free space free ASP. net2.0, 3.5 free space, support MS SQL Server Express2005 and Ftp http://www.qsh.eu/free to provide 50 space and 2g Monthly Traffic 1. First, apply for an account at http://www.qsh.eu/freeafter you have

How to monitor the performance of ASP. NET programs in 32-Bit mode on 64 Systems

How can I monitor the performance of ASP. NET programs in 32-Bit mode on 64 systems? Why can't the performance counters on 64-bit systems monitor ASP. NET performance in IIS32-Bit mode? This problem occurs because the 64-bit Corperfmonext. dll file

Use MS Reporting Services and C # To Generate Reports

Using MS Reporting ServicesAnd C #Generate Reports  C # can also be used in reports. It's rare. Let's take a look! People in the workplace will feel a bit of emotion when writing reports. A neat and beautiful report will add a lot of color to your

Write custom Web Composite controls with managed C ++

Hosting C ++Write custom WebWidget combination   What is a custom Composite Control?Custom Web Composite Control, as its name says: one or more server programs and HTML controls are integrated into a single control. A custom Composite Control is

Key Points of codesmith template writing

Stepwin original, from www.softboss.com original // Basic template knowledge// The first sentence required by any template is used to specify the template editing language and target language:// The parameters that need to be introduced from outside

VB attaching SQL database

: The Code is as follows: Public m As String, l As String, strdata As StringPrivate Sub commandementclick ()Dim cn As New ADODB. ConnectionOn Error GoTo dataErrCn. Open "Provider = SQLOLEDB.1; Persist Security Info = False; Data Source = zhan; User

Notes for using httpwebrequest

When using the post method to access the site, note that post must be in uppercase; otherwise, error 403 is reported.For aspx web pages, you must pay attention to viewstate. If you do not post viewstate, the background program will not process

Multifile upload in ASP. NET

In previous Web applications, uploading files was a very troublesome task. Now, with. NET, File Upload becomes easy. The following example implements the Multifile upload function. You can dynamically add input forms. There is no limit on the number

Close access to ASP. Net (8)

The previous chapter describes how to display information in the database and the basic usage of DataReader and DataSet,Some friends say they are not addicted. I want to write down the following chapters quickly. I am very sorry. I really don't have

Close access to ASP. Net (6)

Use of NamespaceIn the previous program, we can see that I often use .Use the Namespace provided by M $ for us. This is different from ASP. We must first reference the Namespace provided by our operations in ASP.net.The corresponding functions can

Total Pages: 1075 1 .... 882 883 884 885 886 .... 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.