Good Day All
I have the following defination of a toolbar
and i want to retrieve the value of a textbox control name txtsearch that is inside the item template, i have tried to retrieve it like this
but my txtseach comes back as null , while i have entered a value
Thanks
I have the following defination of a toolbar
<telerik:RadToolBar runat="server" ID="RadToolBar1" style="overflow:visible;" Skin="Telerik" Width="994px" Height="121px" onbuttonclick="RadToolBar1_ButtonClick"><CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> <Items> <telerik:RadToolBarButton> <ItemTemplate> <div style="padding-left:30px"> <asp:Image ID="imgo" ImageUrl="~/images/Picture3.png" runat="server" /> <asp:Image ID="imgMore" ImageUrl="~/images/Picture5.png" runat="server" /> <asp:TextBox ID="txtSearch" Width="500px" Height="40px" runat="server" /> <asp:ImageButton ID="btnCancel" runat="server" ImageUrl="~/images/Picture11.png" Text="Cancel" /> <asp:ImageButton ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="Search" ImageUrl="~/images/Picture12.png" /> <telerik:RadToolBarButton runat="server" IsSeparator="true"></telerik:RadToolBarButton> <asp:ImageButton ID="btnAttach" runat="server" ImageUrl="~/images/Picture13.png" Text="Add" /> <asp:ImageButton ID="btnAdd" runat="server" ImageUrl="~/images/Picture8.png" Text="Add" /> <asp:ImageButton ID="btnconfig" runat="server" ImageUrl="~/images/Picture9.png" Text="Config" /> <asp:ImageButton ID="btnCommitChanges" runat="server" ImageUrl="~/images/Save All 2.png" Text="Config" /> <telerik:GridTextBoxColumnEditor ID="textboxc" runat="server"></telerik:GridTextBoxColumnEditor> </div> </ItemTemplate> </telerik:RadToolBarButton> </Items> </telerik:RadToolBar>and i want to retrieve the value of a textbox control name txtsearch that is inside the item template, i have tried to retrieve it like this
TextBox txtseach = new TextBox();txtseach = (TextBox)Page.FindControl("txtSearch");Thanks