Click here to Skip to main content
15,912,837 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Login fails with ASP.NET membership Pin
Albert8328-Oct-09 11:27
Albert8328-Oct-09 11:27 
GeneralRe: Login fails with ASP.NET membership Pin
Albert8328-Oct-09 12:01
Albert8328-Oct-09 12:01 
GeneralRe: Login fails with ASP.NET membership Pin
Not Active28-Oct-09 13:02
mentorNot Active28-Oct-09 13:02 
GeneralRe: Login fails with ASP.NET membership Pin
Albert8328-Oct-09 13:14
Albert8328-Oct-09 13:14 
AnswerRe: Login fails with ASP.NET membership Pin
Albert8328-Oct-09 21:08
Albert8328-Oct-09 21:08 
GeneralRe: Login fails with ASP.NET membership Pin
Albert8328-Oct-09 13:15
Albert8328-Oct-09 13:15 
QuestionNew style of Javascript used in extenders. Pin
mittalpa28-Oct-09 9:20
mittalpa28-Oct-09 9:20 
Question...Repeat er... Pin
AndyInUK28-Oct-09 8:09
AndyInUK28-Oct-09 8:09 
To deal with this code ...
&;lt;table&;gt;
<asp:Repeater ID="Repeater1" OnItemDataBound="test_ItemDataBound" >
  <ItemTemplate>
    <tr>
   :( 
                                                            
     <td >
       <asp:CheckBoxList runat="server" ID="chboxlst">
                                                                
          </asp:CheckBoxList>
     </td>
     <td valign="top" width="100" ">
      <radCln:RadDateTimePicker ID="date" runat="server">
      </radCln:RadDateTimePicker>
                                                                    
     </td>    
                                                                           
   </tr>
  </ItemTemplate>
 </asp:Repeater>
</table>


.. i added following code in code behind -

protected void test_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e)
{
    CheckBoxList lst = e.Item.FindControl("chboxlst") as CheckBoxList;
    lst.DataSource = wtever;
    lst.DataBind();

}


but originally chboxlst is used in various methods in the code behind and according to above code, i can not access lst outside the above mentioned ItemDatabBound event.

Any ideas ?? - how can i access lst globally to be able to replace it with chboxlst ID.

Or if there is any other way to get this working.
AnswerRe: ...Repeat er... Pin
Christian Graus28-Oct-09 11:07
protectorChristian Graus28-Oct-09 11:07 
GeneralRe: ...Repeat er... Pin
AndyInUK29-Oct-09 0:07
AndyInUK29-Oct-09 0:07 
GeneralRe: ...Repeat er... Pin
Oakman29-Oct-09 3:06
Oakman29-Oct-09 3:06 
GeneralRe: ...Repeat er... Pin
AndyInUK29-Oct-09 3:22
AndyInUK29-Oct-09 3:22 
GeneralRe: ...Repeat er... Pin
Oakman29-Oct-09 3:49
Oakman29-Oct-09 3:49 
GeneralRe: ...Repeat er... Pin
AndyInUK29-Oct-09 6:55
AndyInUK29-Oct-09 6:55 
GeneralRe: ...Repeat er... Pin
Oakman29-Oct-09 7:52
Oakman29-Oct-09 7:52 
QuestionWrote Un Wanted Code Pin
P.T.R.K28-Oct-09 4:40
P.T.R.K28-Oct-09 4:40 
AnswerRe: Wrote Un Wanted Code Pin
Kannan Ar28-Oct-09 4:51
professionalKannan Ar28-Oct-09 4:51 
GeneralRe: Wrote Un Wanted Code Pin
P.T.R.K28-Oct-09 18:58
P.T.R.K28-Oct-09 18:58 
AnswerRe: Wrote Un Wanted Code Pin
Abhishek Sur28-Oct-09 4:52
professionalAbhishek Sur28-Oct-09 4:52 
QuestionRegarding Userlogin Pin
gkarthikeyan198728-Oct-09 2:50
gkarthikeyan198728-Oct-09 2:50 
AnswerRe: Regarding Userlogin Pin
Not Active28-Oct-09 3:16
mentorNot Active28-Oct-09 3:16 
AnswerRe: Regarding Userlogin Pin
David Mujica28-Oct-09 3:18
David Mujica28-Oct-09 3:18 
GeneralRe: Regarding Userlogin Pin
gkarthikeyan198728-Oct-09 18:44
gkarthikeyan198728-Oct-09 18:44 
AnswerRe: Regarding Userlogin Pin
Abhishek Sur28-Oct-09 3:24
professionalAbhishek Sur28-Oct-09 3:24 
GeneralRe: Regarding Userlogin Pin
gkarthikeyan198728-Oct-09 18:40
gkarthikeyan198728-Oct-09 18:40 

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.