Click here to Skip to main content
15,895,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: WebCustomControl, create events Pin
minhpc_bk14-May-06 20:43
minhpc_bk14-May-06 20:43 
GeneralRe: WebCustomControl, create events Pin
Piovra_14-May-06 23:50
Piovra_14-May-06 23:50 
GeneralRe: WebCustomControl, create events Pin
minhpc_bk15-May-06 16:09
minhpc_bk15-May-06 16:09 
QuestionRepeater changing my name attributes Pin
eggie514-May-06 19:49
eggie514-May-06 19:49 
AnswerRe: Repeater changing my name attributes Pin
minhpc_bk14-May-06 20:05
minhpc_bk14-May-06 20:05 
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 20:06
eggie514-May-06 20:06 
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 20:13
eggie514-May-06 20:13 
GeneralRe: Repeater changing my name attributes Pin
minhpc_bk14-May-06 20:27
minhpc_bk14-May-06 20:27 
eggie5 wrote:
So, I'll just keep my checkbox as runat=server.


Yes, leave the checkbox marked with the runat="server".


eggie5 wrote:
But I'm confused on how I can access the checkbox from my code behind file....


The sample code below shows you a way to access the checkbox in code-behind:
foreach (RepeaterItem item in Repeater1.Items)
{
    CheckBox chkBox = item.FindControl("chkBox") as CheckBox;
    //HtmlInputCheckBox chkBox = item.FindControl("chkBox") as HtmlInputCheckBox;
    if (chkBox != null)
    { 
        //TODO: You now can access its value.
        ....
    }
}
Depending which control you are using, you can choose the line with the CheckBox or the HtmlInputCheckBox control. In addition to the FindControl method, you can also access the checkbox control using the Controls collection.
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 20:29
eggie514-May-06 20:29 
GeneralRe: Repeater changing my name attributes Pin
minhpc_bk14-May-06 20:38
minhpc_bk14-May-06 20:38 
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 20:36
eggie514-May-06 20:36 
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 20:48
eggie514-May-06 20:48 
GeneralRe: Repeater changing my name attributes Pin
minhpc_bk14-May-06 21:10
minhpc_bk14-May-06 21:10 
GeneralRe: Repeater changing my name attributes Pin
eggie514-May-06 21:39
eggie514-May-06 21:39 
GeneralRe: Repeater changing my name attributes Pin
minhpc_bk14-May-06 23:49
minhpc_bk14-May-06 23:49 
QuestionHow to assaign value to input tag Pin
nesaraja14-May-06 19:41
nesaraja14-May-06 19:41 
AnswerRe: How to assaign value to input tag Pin
minhpc_bk14-May-06 20:11
minhpc_bk14-May-06 20:11 
GeneralRe: How to assaign value to input tag Pin
_AK_14-May-06 20:22
_AK_14-May-06 20:22 
Questionhow to update data grid control without full page refresh Pin
Ashuu14-May-06 19:33
Ashuu14-May-06 19:33 
AnswerRe: how to update data grid control without full page refresh Pin
_AK_14-May-06 20:25
_AK_14-May-06 20:25 
GeneralRe: how to update data grid control without full page refresh Pin
Ashuu14-May-06 20:47
Ashuu14-May-06 20:47 
GeneralRe: how to update data grid control without full page refresh Pin
_AK_14-May-06 21:48
_AK_14-May-06 21:48 
GeneralRe: how to update data grid control without full page refresh Pin
Ashuu14-May-06 23:08
Ashuu14-May-06 23:08 
QuestionProblem with DataListItem Pin
kbalias14-May-06 19:25
kbalias14-May-06 19:25 
AnswerRe: Problem with DataListItem Pin
_AK_14-May-06 19:39
_AK_14-May-06 19:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.