Hi Experts - Please help Urgent please....
I need help with a page query. I have this code that filters a data set -- my problem is that i want to pass an id thru the URL and have it filter - i thought this should be able to do it - but i dont now if i'm missing something.
It doesnt seem to be working when i try to pass a value to it like general.aspx?id=6677 How can i make it filter once i pass a value to id?
Please help!! thaks
DataSet ds = new DataSet();
ds = objectArray.ToDataSet();
DataView dv = ds.Tables.DefaultView;
if (Page.Request.QueryString["id"] != null)
string id = Page.Request.QueryString["id"];
dv.RowFilter = "id = " + id;
GridView1.DataSource = dv;