ASP to connect to the Access Database
The local test shows that the static page can be opened.
Create a connection with the databaseCodeConn. Open connstr line error, but the previous test wet can pass.
Find a solution on the Internet, for
There are several sites at handProgramSo I want to take a look at it and install IIS, but the system is XP Home,
Try to install IIS according to the instructions on the Internet. It seems that XP Home does not support IIS, So it turns to Apache.
1. Parameters and stored procedures should be used in data access, so as to improve efficiency and prevent injection attacks.
2. You should manage the connection strings in a unified manner and put them in webconfig or a specific file. If they are
In Asp.net, it is very simple to implement a text box that only allows numeric input. You only need to use the customervalitor control'sFunction. For example, first add a text box, then add a customervalitor control, set the clientvalidationfunction
Use of ListBox multi-choice mode (selectionmode = multiple)
Set the attribute of ListBox to: selectionmode = multipleMultiple ListBox functions can be implemented.To obtain these selected listitems, it is easy to use winform!This.
In ASP. net Ajax, because An ASPX page can only have one scriptmanager control, in the case of a master page, if you need to introduce different scripts in master-page and content-page, you need to use scriptmanagerproxy in content-page instead of
At the beginning of the month, the boss asked the website administrator to upload large files, but the fileupload control provided by Asp.net was a bit embarrassing ", so I searched for a full-day Asp.net upload control on the Internet and tried n
Obtain physical and virtual paths in ASP. NET
// Request. currentexecutionfilepath; the virtual path of the current request is in this format:/virtual directory name/admin/index. aspx// Request. applicationpath // obtain the root path of the virtual
How does Asp.net implement parameter transfer between pages?
QuerystringUsing querysting to pass values between pages is already a very old mechanism. The main advantage of this method is that it is very simple to implement, however, its
I have discussed how to use the page cache, and now I want to learn how to use the data cache. before talking about the data cache, I also want to talk about using the parameter cache on the page. As mentioned above, if varybyparam = "NONE" is set
Using system; using system. collections. generic; using system. web; using system. codedom. compiler; using system. reflection; namespace webapplication1 {/// /// dynamic evaluation // public class formulacalculator {/// /// calculation result,
1. Deployment environment problems
If you first install the framework and then install IIS
Required
Register ASP. NET to IIS again. Open the command line as an administrator and run the following command:
C: \ windows \ Microsoft. NET \ framework \
First view results
Involves 3 files, a database connection class dbutil, a paging class pageutil, and an instance CS file, which is quite easy to use.
Dbutil. CS
Using system;Using system. Data;UsingSystem. configuration;Using system.
IntroductionWith the development of B/S application development, more and more programmers are writing applications using this mode. However, due to the low entry threshold in this industry, the programmer's level and experience are also uneven. A
Yesterday I made two ASP pages, one for UTF-8 and the other for gb2312.So there was a strange thing (mainly because I met it for the first time). Opening these two pages alone won't cause any problems,However, garbled characters appeared when utf8
Through the combination of XMLHTTP and ASP, we can easily complete asynchronous webpage calls.The Code is as follows:1. Create display. asp (this is the front-end display page)Note the four attributes of XMLHTTP. readystate.1: loading; 2: loaded; 3:
At present, there are many upload classes without components. I have probably taken a look at it. Most of them are quite complicated to write, and some can only transmit text. The most important thing is that there are no 10 lines of code or less :),
This job is to operate Excel in ASP, and mark every line in the whole program, and then do the same as filling in the blanks. Now I changed it to dynamically display items in each row, display them one by one, and finally make a summary.1. FSO find
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