Use ASP for development and sort out the methods for connecting ASP to access, sqlserve, and Oracle databases:
1 access (versions earlier than office2003)
Dim DBDB = "XX. mdb"Dim connstr, ConnConnstr = "provider = Microsoft. Jet. oledb.4.0; Data
First, IIS receives the request and sends it to ASP. NET.
The first thing ASP. NET does is to create an httpcontext object.
Then, httpapplication starts to take over.
The first is to trigger the beginrequest event.
Then, authenticate
Then
Substring
Public string substring (INT beginindex) returns a new string, which is a substring of this string. The substring starts with a character at the specified index until the end of the string.
For example:
"Unhappy". substring (2) returns
Disable web page calls Javascript
Or: add this. button1.attributes. Add ("onclick", "window. Close ();") in page_load ();");
Obtain the focus. Create a new class in C #.For example:Sing system;Using system. text;Using system. Web;Using system. Web.
When the Excel component is called in ASP. NET, if the Excel permission in DCOM is not configured, the Program Reports: access is denied.
There are two solutions:
First, set a node in Web. config.
However, this method can only solve the
There are three folders A, B, and C under the project. The positive expression is forms authentication. I want to set their access permissions to A. Anonymous Access to B, normal users can only access C after authorization, and only the
Let me explain the reason for writing this article. Many of my friends want to enter Asp.net, but for some reason, it is not so easy, or the books and tutorials I bought are all control-related, some questions may be raised to beginners who want to
This time I will talk about the event delegation separately.
Understanding 1: Concept of event Delegation
. NET Framework event delegation follows specific signatures and naming conventions. This Convention relies on visual design tools to provide
Delxmlchildnode. asp
Id = request ("ID ")If isnumeric (ID) = false or isnull (ID) thenResponse. Write ("the parameter is incorrect. Please return it! ")Response. EndEnd if
Strsourcefile = server. mappath ("./") & "/books. xml"'Obtain the path of
We can put some configuration information in Web. xml and then read it through the corresponding functions. Asp.net provides a very convenient operation method. As follows:
Add the following content to the appsettings of Web. xml:View
Plain
Sample CodeProject requirements: You need to add a graphic verification code on the homepage logon interface. You can search for it on the Internet, especially if you find a few items. The main problem is that the width of images generated by most
2. Custom role providers
If you want to verify by role, it must involve the role provider. By default, it will connect to the default database, we can write a role provider to implement our own logic.First, add the configuration in Web.
When using DOM in ASP to create a new document, the new document will not be automatically indented. Although the new document is in a good format or valid format in terms of the document content, the entire document is on one line, when you open a
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
Public class vbwordapp
Private owordapplic as word. applicationclassPrivate odoc as word. DocumentPublic sub vbwordapp ()'Activate the com word InterfaceOwordapplic = new word. applicationclass
End sub
'Open a file (the file must exists) and
The theme feature is added in ASP. NET 2.0, which makes it easier for websites to skin over.
Theme implementation includes: CSS, skin, and masterpage.
CSS is used to control the appearance of all HTML tags.
Skin is used to control the appearance of
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
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