Posted on: 10/9/2014 11:27:12 AM | Views : 424

I am trying to create and run a sqldependency method from a web form class, where I have a "UpdateMethod", which I implemented using a window-form as reference.   However the web-form version of the method, does not update the page-load automatically on the client-side, when there is a change in the database, whereas window-form does.    Window form method version:
delegate void GridDelegate(DataTable table); private void UpdateGrid() { string sql = "SELECT * FROM [dbo].[User]"; DataTable dt = new DataTable(); using (SqlConnection con = new SqlConnection(connectionstring)) { using (SqlCommand cmd = new SqlCommand(sql, con)) { con.Open(); dep = new SqlDepen ...

Go to the complete details ...