<asp:SqlDataSource ID="textdata" runat="server"
ConnectionString="<%$ ConnectionStrings:TextConnectionString %>"
SelectCommand="SELECT SUM(pkNot) FROM [Not]">
<SelectParameters>
<asp:ControlParameter ControlID="notTotal" Name="pkNot" PropertyName="Text" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
And the textbox is:
<asp:TextBox runat="server" ID="notTotal"></asp:TextBox>
How can I get that value to show up in the textbox? It’s not working.
What about something alike this :
A other way might be :
In the code behind. I wrote this in c# as you did not point out what you are using.