Search - Articles - Dev Forums - Favorites - Member Login  
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Thursday, March 18, 2010

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 

FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Knowledge Base > ASP.Net
Search:
What's New - What's Hot
Listings for Administration Tool Administration Tool (4)
Listings for Authentication Authentication (18)
Listings for Browser Browser (10)
Listings for Caching Caching (40)
Listings for code behind code behind (4)
More Categories for Configuration Configuration (3)
More Categories for Database Database (18)
Listings for Debugging Debugging (12)
More Categories for Errors and Bugs Errors and Bugs (41)
Listings for Event Log Enteries Event Log Enteries (4)
Listings for IIS IIS (5)
Listings for Introduction Introduction (2)
Listings for Migration Migration (4)
Listings for Mobile Webform Mobile Webform (3)
Listings for Multiprocessor System Multiprocessor System (2)
More Categories for Office Documents Office Documents (12)
Listings for Security & Encryption Security & Encryption (22)
More Categories for Server Application Server Application (3)
Listings for Server Controls Server Controls (20)
Listings for Server Variables Server Variables (8)
Listings for Session State Session State (7)
Listings for Tips & Tricks Tips & Tricks (57)
More Categories for Web Application Web Application (5)
Listings for Web Controls Web Controls (34)
Listings for Web Form Web Form (37)
More Categories for Web Services Web Services (9)
Listings for XML and ASP.Net XML and ASP.Net (14)
 


How to: Anchor and Dock Child Controls in a FlowLayoutPanel Control    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...

How to: Inherit from the Control Class    Version: 0.00       Price: $0.00   
Total Hits: 14  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...

How to: Set HTML Server Control Properties Programmatically    Version: 0.00       Price: $0.00   
Total Hits: 10  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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...

How to: Set ASP.NET Server Control Properties    Version: 0.00       Price: $0.00   
Total Hits: 10  |  Today: 0 Author: micro       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Add HTML Server Controls to a Web Page Using ASP.NET Syntax    Version: 0.00       Price: $0.00   
Total Hits: 14  |  Today: 1 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Add Server Controls to an ASP.NET Web Page Using ASP.NET Syntax    Version: 0.00       Price: $0.00   
Total Hits: 15  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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)....

How to: Add Controls to an ASP.NET Web Page Programmatically    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

Dynamically Updating Portions of a Cached Page    Version: 0.00       Price: $0.00   
Total Hits: 12  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Retrieve Values of Cached Items    Version: 0.00       Price: $0.00   
Total Hits: 8  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Delete Items from the Cache in ASP.NET    Version: 0.00       Price: $0.00   
Total Hits: 9  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

How to: Notify an Application When an Item Is Removed from the Cache    Version: 0.00       Price: $0.00   
Total Hits: 10  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....

Caching in ASP.NET with the SqlCacheDependency Class    Version: 0.00       Price: $0.00   
Total Hits: 10  |  Today: 0 Author: Microsoft Corporation       Rating:  
Read Reviews | Write Review |   Your 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....



DevASP.Net - Disclaimer - Privacy
© 2002-2010 DevASP.net