programmatically access an SQL claculated value

P

pxpilot

Hi Guys,
I have this SqlDataSource, that counts some records and sets it in
"NotStartedBugs".
How do I retrive "NotStartedBugs" programmatically?
<asp:SqlDataSource ID="SqlDataSource3" runat="server"
ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
SelectCommand="SELECT (SELECT COUNT(*) AS Expr1 FROM tickets WHERE
(TicketType = 'Bug') AND (TicketStatus = 'Not Started')) AS
NotStartedBugs"></asp:SqlDataSource>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top