I'm not very good but I'm trying. I think there is something I don't understand somewhere... I'm trying to get statistique from a DB like how many row got "X". Look simple. I know the SQL statement for it. There is a lot of walkthrough around. But I don't know how to make it appear on a page.

if(!Request.QueryString["RNum"].IsEmpty() ) {

   searchTerm = Request.QueryString["RNum"];
 selectCommand2 = "SELECT COUNT(NoEmpl) FROM DTool Where NoEmpl = @0";
}
var Count = db.QueryValue(selectCommand2, searchTerm);

With a submit button to send the query how can I make it appear on a page?

Related posts

Recent Viewed