Asp.net server controls

Method 1: . AspxCode Runat = "server"> TEXT = "set"> dynamically set the textbox style . Aspx. CS code Private void button#click (Object sender, system. eventargs E){// Set the styleTextbox1.style. Add ("width", textbox1.text. tostring ())

Usage of the ASP. NET + ext js4.0 drop-down list control

Code Repository --> The effect preview is as follows:

ASP database connection method

dsn

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

Work done before Asp.net pageload

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

Asp.net triggers an event when the browser is disabled

Window. onbeforeunload = function () // Author: meizz{VaR n = Window. event. screenx-window. screenleft;VaR B = n> document.doc umentelement. scrollWidth-20;If (B & window. event. clienty {Window. open (". /. aspx "," logout "," toolbar = No,

Substring usage in Asp.net

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

How to close a webpage in Asp.net, and how to make the text box focus

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.

Excel: access is denied in ASP. NET

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

Asp.net permission Control Configuration web. config

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

ASP. NET Series

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

[Original] understanding of event delegation in ASP. NET

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

ASP deletes nodes in XML

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

Asp.net reads configuration information for Web. XML (from: http://blog.csdn.net/donhao/article/details/6678755)

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

A graphic verification code page written by myself (passed by ASP. net2.0)

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

ASP. NET Forms authentication (custom, role provider) 2

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.

Create an XML file in ASP and enable auto indent

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

Asp.net uses swfupload to upload large files

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

[Net] implement word operations in Asp.net

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

[Net] Theme function in ASP. net2.0

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

[Net] How does Asp.net implement parameter transfer between pages?

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

Total Pages: 1800 1 .... 1310 1311 1312 1313 1314 .... 1800 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.