Author: conorpboland | Posted on: 2/15/2010 5:56:55 AM | Views : 1307

Hi, I have a gridview that I am using to host some data. Each row in the gridview links to a blob and I am using the SOnRowCommand event to click on the row and to stream the blob(which is an image) out as a file. This works fine. However when i implement paging on the gridview with the paging event the handler think it is an OnRowCommand event and executes the code behing the OnRowCommand handler and not the pageindex change event. Any idea's..
 
 
Code to stream out image when protected void GridView1_OnRowCommand(object sender, GridViewCommandEventArgs e) { DataTable dt = new DataTable(); StringBuilder sb = new StringBuilder(); sb.Append("select ad.attach_data_id, ad.attach_desc, ad.attach_data, at.type_desc "); sb.Append("from attach_data ad, attac ...

Go to the complete details ...