d UserControls

2
this is for sample please download this doc what do you guess about usercontrols aA UserControl is a separate, reusable part of a page. You can put a piece of a page in a UserControl, and then reuse it from a different location. The name, Us erControl, might seem a bit fancy, but actually, it's just like a regular page, with an optional CodeBehind file. A notable difference is that UserControls can be included on multiple pages, while a page can't. UserControls are used much li ke regular server controls, and they can be added to a page declaratively, just like server controls can. A big advantage of the UserControl is that it can be cached, using the OutputCac he functionality described in a previous chapter, so instead of caching an entir e page, you may cache only the UserControl, so that the rest of the page is stil l re-loaded on each request. asp.net 4.5 using c# visual studio 2012 dfgdfgdfg adfsfd adsfsadfsf trol could come in handy, is a control for showing informa An example where a UserControl could come in handy, is a control for showing inf ormation about a certain user on a community website. In the next couple of chap ters, we will create a UserControl from scratch, make it fit to our purpose, and  then use it on a page.

description

asdf

Transcript of d UserControls

Page 1: d UserControls

7/17/2019 d UserControls

http://slidepdf.com/reader/full/d-usercontrols-568d667b5118b 1/1

this is for sampleplease download this docwhat do you guess about usercontrolsaA UserControl is a separate, reusable part of a page. You can put a piece of apage in a UserControl, and then reuse it from a different location. The name, UserControl, might seem a bit fancy, but actually, it's just like a regular page,with an optional CodeBehind file. A notable difference is that UserControls canbe included on multiple pages, while a page can't. UserControls are used much like regular server controls, and they can be added to a page declaratively, justlike server controls can.

A big advantage of the UserControl is that it can be cached, using the OutputCache functionality described in a previous chapter, so instead of caching an entire page, you may cache only the UserControl, so that the rest of the page is still re-loaded on each request.asp.net 4.5 using c# visual studio 2012dfgdfgdfg adfsfd

adsfsadfsftrol could come in handy, is a control for showing informa

An example where a UserControl could come in handy, is a control for showing information about a certain user on a community website. In the next couple of chapters, we will create a UserControl from scratch, make it fit to our purpose, and

 then use it on a page.