How to access agent jobs from sql server 2008 in order to show their properties in web page?
===

I have SQL server agent with Jobs. I want to access job properties like name, last modified, Schedules and so on, and show them in web application Grid.

 for example i found this code:

            //SELECT j.[job_id], j.[name] [job_name], j.[category_id], c.name [category_name]
            //FROM [msdb].[dbo].[sysjobs] j
            //JOIN [msdb].[dbo].[syscategories] c
            //ON j.category_id = c.category_id
            //ORDER BY 2

 But i have no idea how to recode it into C#, or i just don't understand the main idea of this?
could someone show me a simple example how to get Job name using C# coding?
    