Question : execute sql query inside each row of a gridview to return a total - C# ASP.NET

Hi,

I've just started programming in c# asp.net having switched from classic ASP and i'm doing a gridview listing record categories. i need a cell on each row in a column titled 'total' to contain the output from a query counting records in each category.

so the gridview would be:

ID  Project Name  Total
1   name 1            x
2   name 2            x
3   name 3            x
4   name 4            x

my query would be something like "select count(*) as inttotal frm table where projectid=" & id

please provide me with a gridview sample+code?

Answer : execute sql query inside each row of a gridview to return a total - C# ASP.NET

You can do that on your firewall, which is the most effective or even on windows firewall.

create a rule that allows rdp (3389) from only a specific IP Address

if you have other users connecting to this box then you would have to create rules for everyone, this would basically means that only the listed ip's will be allowed.

doing it on your firewall is preferred as it doesn't disturbs your server's firewall configuration.



Random Solutions  
 
programming4us programming4us