|
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

The FlowLayoutPanel control supports the Anchor and Dock properties in its child controls. To anchor and dock child controls in a FlowLayoutPanel control
1.
Create a FlowLayoutPanel control on your form. 2.
Set the Width of the FlowLayoutPanel control to 300, and set its FlowDirection to TopDown. 3.
Create two Button controls, and place them in the FlowLayoutPanel control. 4.
Set the Width of the first button to 2...
|
|
|
|
Total Hits: 14 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

If you want to create a completely custom control to use on a Windows Form, you should inherit from the Control class. While inheriting from the Control class requires that you perform more planning and implementation, it also provides you with the largest range of options. When inheriting from Control, you inherit the very basic functionality that makes controls work. The functionality inherent in the Control class handles user input through the keyboard and mouse, defines the bounds and size o...
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

HTML server controls are of two slightly different types. The HTML elements most commonly used in forms are available as individual HTML server controls, such as HtmlInputText, HtmlInputButton, HtmlTable, and so on. These HTML server controls expose their own, control-specific properties that map directly to HTML attributes. However, any HTML element can be converted to a control. In that case, the element becomes an HtmlGenericControl with base class properties such as TagName, Visible, and Inn...
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: micro
|
Rating:
|
|

Setting a control's properties defines its appearance and behavior. This topic addresses how to set control properties at design time using Visual Web Developer....
|
|
|
|
Total Hits: 14 | Today: 1
|
Author: Microsoft Corporation
|
Rating:
|
|

Adding HTML server controls is like adding any HTML element, except that you convert the element to a control so that you can work with it in server code....
|
|
|
|
Total Hits: 15 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

#If you are in a visual designer, switch to source-editing view. #Type the element representing the control into the .aspx file. The exact syntax you use depends on the control you are adding, but in general the following applies: * Controls must include the attribute runat="server". * Set the control's ID attribute unless the control is part of a complex control and will be repeated (as in GridView, FormView, DetailsView, Repeater, or DataList controls)....
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

At times it is more practical to create a control at run time than at design time. For example, imagine a search results page in which you want to display results in a table. Because you do not know how many items will be returned, you want to dynamically generate one table row for each returned item....
|
|
|
|
Total Hits: 12 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Caching a page can dramatically increase the performance of a Web application. However, in some cases you need most of the page to be cached and some fragments within the page to be dynamic. For example, if you create a page of news stories that is entirely static for set periods of time, you can set the entire page to be cached. If you wanted to include a rotating ad banner that changed on every page request, then the part of the page containing the advertisement needs to be dynamic....
|
|
|
|
Total Hits: 8 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

To retrieve data from the cache, you specify the key that the cached item was stored under. However, because information stored in the cache is volatile—that is, it might be removed by ASP.NET—the recommended development pattern is to determine first whether the item is in the cache. If it is not, you add it back to the cache and then retrieve the item....
|
|
|
|
Total Hits: 9 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

Data in the ASP.NET cache is volatile — that is, it is not permanently stored. It might be automatically removed from the cache for one of these reasons: * Because the cache is full. * Because the item has expired. * Because an item it is dependent on changes....
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

In most cache scenarios, when an item is removed from the cache, you do not have to be notified when it has been removed. The typical development pattern is to always check the cache for the item before using it. If the item is in the cache, you use it. If it is not in the cache, you retrieve the item again and add it back to the cache....
|
|
|
|
Total Hits: 10 | Today: 0
|
Author: Microsoft Corporation
|
Rating:
|
|

ASP.NET allows you to use the SqlCacheDependency class to create a cache item dependency on a table or row in a database. When a change occurs in the table or in a specific row, the item that has a dependency is invalidated and removed from the cache. You can set a dependency on a table in Microsoft SQL Server 7.0, SQL Server 2000, and SQL Server 2005. If you are using SQL Server 2005 you can also set a dependency on a specific record....
|
|
|
|
|
|