Get the latest info from the server RRS feed

  • Question

  • User-1056730248 posted
          public void ProcessRequest (HttpContext context) {
            string RoleID = context.Session["RoleID"].ToString();
            string CompanyID = context.Session["CompanyID"].ToString();
           DataTable dt = GetData(RoleID,CompanyID);          
            string json = COnvertDTtoJSON(dt); //dt Contain ProjectID,ProjectName,....
          context.Response.ContentType = "text/plain";

    and now in the aspx page i call this handler to get the data and insert into the div, now I have another button(check latest) in this button i want to get the latest info but not that which is already present in div
    any idea how to do it.

    Monday, August 6, 2012 11:53 PM

All replies

  • User895691971 posted

    For every new data. You have to use its own callback like to display this year (2012) you will use this razor code @DateTime.Now.Year it will give you 2012 you can use it in the footer of you site and add it to the main layout page. So that you dont have to add it to every page!

    Sunday, August 19, 2012 3:16 PM