Friday, 15 March 2013

ASP.NET C# Nested controlls access -



ASP.NET C# Nested controlls access -

i've got that

<asp:listview id="lv" runat="server"> <layouttemplate> <asp:literal id="litcontroltitle" runat="server" /> <label id="test" runat="server">dw</label> <asp:placeholder id="itemplaceholder" runat="server" /> </layouttemplate> <itemtemplate> </itemtemplate> </asp:listview>

can tell me, how should alter label text, using c# code? main problem me is- how access nested command (label, literal) c# code?

edited:

<selecteditemtemplate> <asp:hiddenfield id="numberedit" runat="server" value='<%# bind("numbers") %>' /> <label for="nameedit">name:</label> <asp:textbox id="nameedit" width="160px" runat="server" autopostback="true" ontextchanged="nameedit_textchanged" text='<%# bind("name") %>' /> <br /> <label for="shortcutedit">shortcut:</label> <asp:textbox id="shortcutedit" width="80px" runat="server" text='<%# bind("shortcut") %>' /> <br />

and generate automatically shortcut text when user alter name (shortcut = 2 first letters nameedit)? can explain me, how should it? –

you want have itemdatabound event handler access controls particular item in listview. illustration on page linked should help out.

c# asp.net

No comments:

Post a Comment