In this section, we generate a simple image as an entry-level training for ASP. NET graphics processing.
First, use Visual Studio. NET 2003 to create a web application.
Program , Named gditec, create a new web form named gdi_sample1.aspx, we write
///
/// Custom information dialog box
///
Public class MessageBox
{
///
/// Define a web page to Display User-Defined error message
///
System. Web. UI. Page P;
///
/// For an instance, the parameter is this, for example, MessageBox
Java strutsProgramMembers should know that struts has a template tag. Although it is complicated to use, it brings a lot of convenience for a large number of page programs. However, there is no ready-made implementation available in ASP. NET, which
Author: Robert lair and Jason lefebvr intensity software, Inc.
Translation: easychen exlcsoft.com
Overview
An ongoing debate in the development circle is about which platform in PHP and ASP is more suitable for website development. This
I learned ASP. NET soon and used C # To writeCodeIn learning C #, I found that many beginners do not have a special understanding of inheritance and polymorphism. Therefore, I have provided this example to help you. The example is very simple.
Page
ASP built-in Components
In the first three lectures, we mainly introduced four built-in objects provided by ASP:L response object: send information to the browser.L request object: access the information sent from the browser to the server (for
$ Aspservername: this variable must have an IP address inIn the/etc/hosts file.
$ Aspport: ASP file server port number.
$ Asppath: the ASP file path on the server side.
$ Aspfile: ASP file name
$ Aspurlredirect: $ ASP file parameters.
//
PHP versus ASP
Thu, Aug 17,200 0; by John Lim.
Order:
Microsoft ASP is a powerful dynamic web page technology. I have used ASP for one year and used it to create many web sites, but now my company is trying to turn to another Internet technology
Create a WAP application using JSP/asp
(By: Darkman)
It is very easy to use ASP or JSP to create dynamic WML content. The only thing to note is to configure the server to set its Script output type to "text/vnd. WAP. WML", or directly set the
Ajax.html
CopyCode The Code is as follows:
1: Show "OK"; other characters: Show "error"
detect
T. aspCopy codeThe Code is as follows: Response. contenttype = "text/XML"Response. charset = "gb2312"If request. querystring ("T1") = "1"
URL encoding is an encoding method that must replace characters with special meanings to transmit information through URLs. In ASP, we all know that there is a server. the urlencode function can complete this function. That is:
If there are spaces,
Code batch modification programs implemented using asp, fso-related
This is a small batch code modification task for your work.Currently, file types that can be processed:. asp. inc. htm. html can be modified and added by yourself.
Function
Replacing the template tag when FSO generates a static HTML file has always been a very troublesome problem. At least I think so. Do not create another template. This is troublesome !, I saw a way to solve this problem today.
Such as a normal
1. Obtain the value of column j in row I of the data table.
// Create and open a database connectionOleDbConnection conn = new OleDbConnection ();Conn. ConnectionString = strConnectionString; // strConnectionString is the database connection
I have been writing ASP with JS for a long time. It is not a special reason, but I learned JS at the beginning. Later I learned that ASP could also be written with JS, so I didn't learn VBS. when I first learned ASP in the past few months, I
Copy codeThe Code is as follows: 'Create a folder Function
Function CreateFolder (strFolder) 'parameter is relative path
'The first choice is to determine whether the folder to be created already exists
Dim strTestFolder, objFSO
StrTestFolder =
Copy codeThe Code is as follows: '================================================ ==================================== Check the validity of the submitted data
Function CheckInput ()
'-------- Definition section ------------------
Dim Fy_Post,
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.