Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/CloudIngenium.com/htdocs/wp-includes/functions.php on line 6114
How to get Textbox value in a multiple item Gridview Templatefield – Knowledge eXchange

How to get Textbox value in a multiple item Gridview Templatefield

Currently I have a Gridview that uses the following TemplateField:

                    <ItemTemplate>

                        <asp:TextBox  ID="txtRangeFrom" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ScoreRangeLow") %>' >

                        </asp:TextBox>

                        &nbsp;<label for="to">To&nbsp;</label>

                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox  ID="txtRangeTo" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ScoreRangeHigh") %>' >

                        </asp:TextBox>

                    </ItemTemplate>

When trying to update my datasource I have the issue that I can't read the values stored in the Datasource. How can I programatically access the values in the grid as well as the values stored in other controls inside a particular cell?

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.