Dim conn1 as ADODB. connection dim cmd1 as ADODB. command dim RS1 as ADODB. recordset dim strtmp as string dim connect as string dim drop as string dim create as string dim SP as string dim I as integer dim L as long sconnect = "driver = {SQL Server
ArticleDirectory
1. Basic Structure of the route module.
2. Find the appropriate route to parse the current URL
This article mainly describes the basic working principle of ASP. NET route components. The route component was originally a
Role of the authentication control
1. requiredfieldvalidator-the user must enter the information
2. rangevalidator-check whether the user input is in a certain range
3. comparevalidator-compare whether the input value meets the requirements
4.
The font size of the body has been set to 12 Px in CSS, but when the webpage is submitted, the page font will automatically increase.
Cause: CSCodeResponse. write () is directly output to the page header. In general, the prompt message is as easy
1. Save it to the server
Dim id_srl 'request. querystring ("id_srl ")
Id_srl = 49
If CINT (id_srl)> 0 then
Dim Conn, connstr, RS, SQL, mystream
Connstr = "provider = sqloledb.1; persist Security info = false; user id = fdp_user; initial
Error records: 1. If the updatepanel control is used, the fileupload between updatepanel is invalid! The hasfile attribute of fileupload is always false;2. In this document, 'sys 'is used to define whether the Web configuration is an Ajax
How to Use MasterPage
1. Create a MasterPage with the suffix. master, for example, x. master. is used to define the vacancy. For example:
2. Create a content page.In the NewItem dialog box, select "select master page" and select the MasterPage
Assume that the current model is displayed in GridView and the data source is in DataSet. 10 pieces of information are obtained each time, and 10 pieces of information are displayed on each page.
Sometimes there may be less than 10 data records, and
Document directory
Session configuration information in the Web. config file
Storage of client Session Status in ASP. NET
Storage of server Session Status in ASP. NET
Store Server Session information in the process
Store Server Session
If you are a web developer, you probably are used to using the standard "class" attribute in your HTML. if you typically use ASP. NET Web Forms, you are probably used to using the CssClass property on your web server controls. but, if you are new to
There are many problems with UTF-8-encoded websites. I started to change CODEPAGE = "936" to CODEPAGE = "65001" and change charset = gb2312 to charset = UTF-8, but it is still garbled, as long as the script is used or garbled, the problem is
Recently, I have completed a project and found a small problem. When ReadOnly = "true" is set for TextBox, if a value is added to the control at the front end, it cannot be obtained in the background, the principle of "null" is not clear, and it is
The Page. Validators attribute is used to return the set of verification controls for the current Page. You can use BaseValidator to return the names of all the verification controls. Stephen Walther shows the following code in his book:
Foreach
We know that meta tags serve as response header packets used to simulate the HTTP protocol. there are many places to use, and there are already many online summaries. Here we will not list them one by one, for example, description (the description
The application lifecycle has the following phases:
1. the user initiates an application source from the web server:
Description: The asp.net application originated from a browser that initiates a request to the web server (usually IIS). asp.net is
Function ConfirmDel ()
{If (confirm ("are you sure you want to delete it? Once deleted, it cannot be restored! "))
Return true;ElseReturn false;}I use one.
Function ConfirmReset ()
{If (confirm ("are you sure you want to cancel the operation? Once
First, put an html input (File) control on the page to name it myFile, and then run it as a server disconnection control.Put another Button and add the following code in the Button click event:
If (this. myFile. PostedFile! = Null)
{
String
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.