O ) Repeater Control And It's Event
* Repeater Control *
* Gridview operate --- Row and column
* Repeter --- only Row
* Properties --- 1) Datasource =dr; ex. Repeter1.datasource=dr;
2) DataBind ( ) ; ex. Repeter1.DataBind ( ) ;
* Source = <Repeter id="repeter1" run="">
< itemtemplate >
< b > header name < / b >
label ,button,textbox.etc
< br >
<b>header name </b>
label ,button,textbox.etc
<hr/> horizontole line
</itemtemplate>
< / repeter >
* Repeter --- only Row
* Properties --- 1) Datasource =dr; ex. Repeter1.datasource=dr;
2) DataBind ( ) ; ex. Repeter1.DataBind ( ) ;
- Repeter Can't use OnClick event .
* Source = <Repeter id="repeter1" run="">
< itemtemplate >
< b > header name < / b >
label ,button,textbox.etc
< br >
<b>header name </b>
label ,button,textbox.etc
<hr/> horizontole line
</itemtemplate>
< / repeter >
Image Bind in repeter
source : -- <img src='pic/<%# Eval("pic") %>' / >
* Repeater And It's Event *
- Reapeater Use OnItemCommand Atrribute in Repeater Tag.
- Repeater Use CommandName Atrribute to activate For Button.
Syntax Find Control :- Label lbln = (Label)e.Item.FindControl("Label1") ;
* Reapeater And its event concept video *
Comments
Post a Comment