Asp. NET Learning Diary Articles Collection

Source: Internet
Author: User
asp.net what the Web service is, and under what circumstances you should use the Web service.

Distributed Applications and Browsers

If you look at current application development, you will find an absolute inclination: people are starting to favor browser-based thin client applications. This is certainly not because thin customers can provide a better user interface, but because it avoids the high cost of spending on desktop application publishing. The cost of publishing desktop applications is high, in part because of problems with application installation and configuration, and the other half because of communication between customers and servers.

Traditional Windows rich client applications use DCOM to communicate with the server and invoke remote objects. Configuring DCOM to work properly on a large network will be a challenging task, as well as a nightmare for many it engineers. In fact, many it engineers prefer to put up with the limitations of the browser, rather than running a DCOM on a LAN. In my opinion, the result is an application that is easy to publish, but is difficult to develop and has extremely limited user interface. The extreme is that you spend more money and time, but develop ...

Read the full text

Look through the Vs.net Data Form Wizard Ado.net

[2005-07-01 14:02:02 | Author: admin | QQ:42100766] On the csdn, people often ask ado.net questions, in particular, the development of information management systems and other closely related to the database program, in the data and interface layer development will encounter a lot of common problems, below we through the vs.net with the data form guide to see what it can help us to refuse what problem.







A Using wizards

Create a new Windows application, add components to the current project, select the Data Form Wizard, and place the name as DataForm1.cs. Click to open the Show Data Form Wizard dialog box. Creates a new typed DataSet myDataSet. Using the Local Data Connection Wizard, here I select the Northwind Library as the data source. Add categories and Products tables in the Select table or view step. Add a relationship between a table named Categoryproductrel. In the Select Display style step, you choose to display the data as a single record in a single control, where data is bound to a text box. You can use data navigation to select a record for the parent table. When the wizard finishes, a oledbconnect is generated ...

Read the full text

Online. NET articles and program source code

[2005-07-01 13:57:01 | Author: admin | QQ:42100766] because often the Netizen requests the source code, therefore from March 2004 to December 2004 part of the article's source put up for users to download
1. Using C # to control the services of a remote computer
Article
Http://blog.csdn.net/zhzuo/archive/2004/03/29/22025.aspx
Code
Http://www.aspx163.com/zhzuo/CsharpControlServices.rar

2. Invoke the implementation of scripts such as VBScript and JavaScript in C #
Article
Http://blog.csdn.net/zhzuo/archive/2004/04/26/22031.aspx
Code
Http://www.aspx163.com/zhzuo/CsharpCallScript.rar

3. Easily master data interaction between Windows Forms in. Net
Article
Http://blog.csdn.net/zhzuo ...

Read the full text

Get your software to support traditional Chinese

[2005-07-01 09:31:42 | Author: admin | QQ:42100766] I use the method:
<%@ Language=vbscript codepage=65001%>
<%
Simplified Chinese is 936, Traditional Chinese is 950, Japanese is 932, and Korean is 949.
<%@ codepage=936%> Simplified Chinese
<%@ codepage=950%> Traditional Chinese
<%@ Codepage=65001%>utf-8
It is best to use charset=utf-8 on a page to support various languages.

This method is also seen online:

Chinese Taiwan, Hong Kong's Chinese characters are BIG5 code, and the Chinese characters are GB code (GB2312 or GBK), Simplified Chinese software directly to the traditional Chinese environment to run, the problem came out.

What do we do?

Our software is a use of c#.net+asp.net developed, the so-called B/s software, the client only need to use the browser to access our server on the line. It is natural to think that all the simplified characters in the code are converted to traditional characters, the problem is not solved?

Do as you say. From the Internet to find a conversion ...

Read the full text

10 tips for writing high-performance WEB applications

[2005-07-01 09:28:22 | Author: admin | QQ:42100766] Choose a Blog from Aqlcrazydog
This article discusses:
Common myths about ASP.net performance
Useful asp.net performance tips and tricks
Some suggestions for processing databases in asp.net
Buffering and using ASP.net for background processing
This article uses the following techniques: asp.net,.net framework, IIS

It's incredibly easy to write a Web application with asp.net. It is so easy that many developers can achieve very good performance without having to spend much time building their applications. In this article, I'll give you 10 tips for writing high-performance WEB applications. My comments are not limited to asp.net applications, as they are just a subset of WEB applications. This article is not an authoritative guide to WEB application Performance tuning-it can be written as a book. On the contrary, this article can be regarded as a good starting point.
I often go to rock climbing before I sleep and work. Before climbing, I always had to look at the lines in the guide book and read the people who had been here before.

Read the full text

ASP.net of the DataGrid under the Multi-layered table (user stickers)

[2005-07-01 09:27:11 | Author: admin | Multi-layered head of DataGrid under qq:42100766]asp.net

[From: Csdn]

First look at the following table:

In fact, the DataGrid under ASP.net is just a htmltable, but on the basis of htmltable add a lot of attributes, methods, into the viewstate mechanism, to generate, control it; With this understanding, things are well done:

We can define the header of a column in the Property Builder, which is actually simply inserting the HTML tag of "</td><td>" between the columns, and so on the above example, you can enter the following in the header in column 3rd, "</td ></tr><TR><TD> Beijing </TD><TD> Shanghai </TD><TD> Shenzhen </TD></TR> ", At this point you will notice that the 2-level table header appears:

But obviously not enough, because we also need row, column merge
We can handle the ItemDataBound event in the DataGrid.

if (E.item.itemtype = = Listitemtype.header)
...

Read the full text

Add multiple buttons to the DataGrid

[2005-07-01 09:14:40 | Author: admin | qq:42100766]aspx file Plus
<script language= "JavaScript" >
<!--
checkbox full selection and inverse selection
function Select_deselectall (Chkval, Idval)
{
var frm = document.forms[0];
for (i=0; i<frm.length; i++)
{
if (Idval.indexof (' Checkall ')!=-1)
{
if (Chkval = = True)
{
Frm.elements[i].checked = true;
}
Else
{
frm.elements[i].checked = false;
}
}
...

Read the full text

Cookie Programming in C #

[2005-07-01 09:10:33 | Author: admin | qq:42100766]cookie is the so-called "cookie", he first appeared in Netscape Navigator 2.0. Cookies are actually files created by the Web server that store information on your computer. So why does the Web server create such a file on the client? This is because when a client sends a request to a Web server (for example, when it is ready to browse the page), the server treats it as the first time, regardless of whether the client is first visited, and the work done by the Web server simply responds and then closes the connection to that user. The disadvantages of this process are obvious. Since Netscape developed cookies, it is possible to use cookies to hold the user's identification information. Cookies can be used to record the pages you have visited on the site, thereby helping you customize the view the next time you visit the site. Cookies can also store personally identifiable information. Personally identifiable information is information that can be used to identify or contact you, such as your name, e-mail address, home or work address, or phone number. However, the site can only access the one you provide ...


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.