ASP. NET Dynamic settings page title

【Abstract] ASP. net, if you want. an element in Cs that controls aspx (whether it is a web control or an HTML control), the runat attribute of this element must be set to server, that is, after the runat attribute of the element is set to server.

How can I use Asp.net + C # to delete files on a local hard disk?

Answer 5:Private void delwenjian (string filename)// Filename is the path of the file to be downloaded and the file name in the corresponding path{Fileinfo Fi = new fileinfo (filename );Response. Clear ();Response. clearheaders ();Response. Buffer =

Asp.net registration page script

There are several methods in the page class: registerclientscriptblock you can send the Code block of the client to the page (of course, it can be a script or other text ), this code is written to the start part of form

Number of online users in Asp.net

This is a simple program that provides Code directly. It mainly modifies the content of the global. asax file... The above are all explained accordingly. in addition, when loading the page, you can assign the application ["counter"] to a control

Use the ASP. NET 2.0 formview control to control the display

The formview control of ASP. NET 2.0 is similar to the detailsview control, because it can easily display a single record of the backend data source. This article will discuss the syntax and application of this control. [Chinese webmaster

Brief Introduction to three methods for generating HTML in ASP. NET 2.0

The database-driven dynamic web page frees our programmers from the cumbersome search replacement, but there are advantages and disadvantages in everything, reducing our work, however, the load on the server is increased, so various static page

Cross-page sending in ASP. NET web pages

By default, buttons and other controls that cause sending back on ASP. NET web pages submit the page back to the page itself. This is part of the round-trip period that ASP. NET web pages will experience during normal processing. For more

ASP obtains the current file name

 Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Function geturl () Dim scriptaddress, servername, Qs Scriptaddress = CSTR (request. servervariables ("script_name ")) Servername = CSTR

Several Functions of Asp.net to filter HTML tags

The following is a reference clip:-----/**//// /// Remove HTML tags/// /// including the source code of HTML /// removed text Public static string nohtml (string htmlstring){// Delete the scriptHtmlstring = RegEx. Replace (htmlstring, @ "

Javascript interaction function, ASP + JavaScript example

Connstr = "provider = Microsoft. Jet. oledb.4.0; Data Source =" + server. mappath ("data. mdb ") Set conn = server. Createobject ("ADODB. Connection ") Conn. Open connstr %> select a Category Strsql = "select * from temp where Reid = 0" Set rs =

Data transmission between pages in Asp.net

1. Get (explicitly passed using querystring)Method: Follow the URL with parameters.Features: simple and convenient.Disadvantage: the string can contain a maximum of 255 characters, and the data is leaked in the URL.Applicable data: simple, small,

Part 3 01 use ASP. NET ajax to asynchronously call WebService (full)

1. methods and parameters[Namespace]: The namespace of the server-side web service. If no explicit namespace Declaration exists, this part can be omitted.[Classname]: The Class Name of the server-side Web Service[Methodname]: defines the name of the

Use ASP. NET ajax to achieve (image) slide Effect

(1) HTML (2) Aspx. CS Using system;Using system. Data;Using system. configuration;Using system. collections;Using system. Web;Using system. Web. Security;Using system. Web. UI;Using system. Web. UI. webcontrols;Using system. Web. UI. webcontrols.

Asp.net operation configuration file

If flexible operations and read/write configuration files are required in. NET 1.1, a configuration file management class is encapsulated in the project for read/write operations. In. net2.0, The configurationmanager and webconfigurationmanager

ASP. NET 2.0 page output Cache

The page output cache is the simplest form of cache. The output cache only keeps the HTML copies sent in response to the request in the memory. When there are other requests, the cache output will be provided until the cache expires. In this way,

Asp.net: access controls on the nested template page

If the control to be accessed is inside the contentplaceholder control on the master page, you must first obtain the reference to the contentplaceholder control, and then call its findcontrol method to obtain reference to the control. In the

Cainiao record: textbox read-only setting method in ASP. net2.0

Test an ASP. for a net2.0 page, a textbox needs to control the user input format and change the content in script mode. To prevent the user from directly inputting the content, the readonly attribute of the textbox is set to true. As a result, no

Compile the CS file into a DLL in Asp.net

The DLL file compiled last time is in the same directory as the CS file, instead of in the bin directory of the virtual directory. The file is compiled into a DLL and automatically stored in the bin folder of the virtual directory? Start -------

Asp.net prevents multiple users from logging on to an account at the same time

During web development, some systems require the same user to log on only once at the same time, that is, if a user has logged on, an error must be reported if the user logs on again before exiting.A common solution is to determine whether the user

Static variable usage in Asp.net

  Static does not need to instantiate the object class. You can directly call this class name to introduce the method, which is equivalent to the execution process. A non-static method is called after an object is instantiated. As long as the

Total Pages: 1800 1 .... 1230 1231 1232 1233 1234 .... 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.