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.
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!
Please "Marks As Answer" if any answer helped you out!
~~! FIREWALL !~~
haider.ali
0 Points
4 Posts
Get the latest info from the server
Aug 07, 2012 03:53 AM|LINK
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"; context.Response.Write(json); }Afzaal.Ahmad...
Contributor
2661 Points
1040 Posts
Re: Get the latest info from the server
Aug 19, 2012 07:16 PM|LINK
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!
~~! FIREWALL !~~