querry is returning zero value even though it is returning session value and data is present in data base
can you correct my code which helps me
VB.NET |
VB.NET |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Marimuthu ArigovindasamyRank #5,893 · 283 reputationPosted Jun 14, 2010, 9:19 PM EDT
Can u pls assign ur query into string variable and get the output of variable and run it in ur SQL window for the SQL query output.
string query = "SELECT SUM(Amount) FROM AllTransactions WHERE TransDate BETWEEN '"+ txtfrom.Text +"' and '" + txtto.Text + "' and (TransCode <> 0) and BranchKey=" + Convert.ToInt32(Session["BranchKey"]) + " GROUP by BranchKey"
There may be a problem with DB column timestamp issue (For TransDate column).