In Asp.net 3.5, if menucontrol is used, the table format is used, that is:
It will generate the table method. Of course this is not very good, because it is now in the DIV and CSS era, to Asp.net 4Then, the
Passing parameters to functions in ASP is really a headache. When there are a large number of parameters (for example, there are seven or eight parameters or more parameters), it is almost impossible to see them, number one by one. What's even worse
In the ASP. NET 2.0 login control (for details, see my
Article , Recovery), in which passwordrecovery (restoring the user password control, when the user enters the password to answer the question, after the answer, the user's user name and
1. image problems
Excellent solution
With runat = "server" added, the PATH uses the absolute path ~ /It is basically OK.
2. CSS file reference
The magic here is that the href of The Link file is automatically adjusted with the
There is no special page navigation control in ASP. NET 2.0, but it can be implemented using sitemapdatasource configuration and datalist.In the sitemapdatasource control, you must create a web. sitemap XML file that stores the website structure,For
Disadvantages of ASP:1. VBScript and JavaScript are only two scripting languages available in ASP. They are basic untyped languages. Strong languages cannot be used in ASP.2. The ASP page needs to be explained, making it slow to execute.3. The ASP
Because of the Course Design of the school database, ASP. NET is helpless for a period of one week. From nothing in the past week, I learned what is. net, why is Microsoft introducing. net, and why so many people reject. net. Let me start to speak
About configuration control panel ---- add or delete programs ---- add Windows Components ----- IIS. After adding the content, go to your control panel-management tools-Internet Information Service, double-click the icon on the left to expand-find
'Personal code style annotation (the first lowercase alphabet in the variable name represents the variable type) 'I: integer;'s: string; function u2utf8 (byval a_inum) dim sresult, suf8 dim itemp, ihexnum, I ihexnum = trim (a_inum) If ihexnum = ""
The screenshot is as follows:
The itemcreated and itemcommand events of the DataGrid are as follows:
Private void maid (Object sender, system. Web. UI. webcontrols. datagriditemeventargs E){Switch (E. Item. itemtype){Case listitemtype.
See http://www.microsoft.com/china/msdn/library/webservices/asp.net/URLRewriting.mspx
The simplest implementation is to judge and rewrite the request URL in application_beginrequest or application_authenticaterequest event processing in global. asax.
I recently learned ASP. NET MVC and compared the previous webform with no ispostback judgment, event processing is also replaced by action. In the webform of MVC, a large number of events are bound to the UI, mixed JS injection, and style changes
How to register Components
1. absolute path of the regsvr32 component
Example: regsvr32 C:/test/fc1.dll
The component can be used as long as it is registered, so it is irrelevant to the position of the component.
2. Register in COM + component
For a long time, I want to write some component applications. During this time, I can finally write something I like.
I hope you can write your own components as you like after learning these tutorials.
Each article may not be associated, but it is
Let's take a look at the application object.
Previously, application objects were often used for the connection string between counters and databases.
Take the counter as an example:
Check the global. Asa file first. This is relatively simple.
Session is much simpler than session.
View
Open VB6 and create an ActiveX dll project. Change project name to fcom and class name to fz3Reference the "Microsoft Active Server Pages object" Object Library.Create two component events: onstartpage and
Array Problems
Arrays are used in many programs and are prone to problems.
Let's take a look at the small example
Open VB6 and create an ActiveX dll project. Change project name to fcom and class name to FC4
Choose> Tools> Add process.
Enter
Let's make a component, a component that can generate a guid
Guid)
A guid can be expressed as a 32-character hexadecimal format. Com provides a system-level function named cocreateguid, which can be used to generate a new guid. This function relies
We often see the following when connecting to the database and opening the record set:
Rs. Open strsql, Conn, adopendynamic, adlockpessimistic
When you type ",", a cursor type or lock type list is displayed.
Sometimes, for simplicity, Rs. Open
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