mlawton40
February 28th, 2007, 04:49 AM
Hi I have a link which sends a parameter with it:
<a href='FileList.aspx?doc_area_id=<%# Eval("doc_area_id") %>' >
I know I can get and use the passed parameter in the behind code by doing:
int areaId = 0;
if (Request.QueryString["doc_area_id"] != null)
{
areaId = Convert.ToInt32(Request.QueryString["doc_area_id"]);
}
but how can i recieve it in an aspx file and use it in a sqlsource select statement for a gridview criteria?
Any help would be great, Cheers, Mark.
<a href='FileList.aspx?doc_area_id=<%# Eval("doc_area_id") %>' >
I know I can get and use the passed parameter in the behind code by doing:
int areaId = 0;
if (Request.QueryString["doc_area_id"] != null)
{
areaId = Convert.ToInt32(Request.QueryString["doc_area_id"]);
}
but how can i recieve it in an aspx file and use it in a sqlsource select statement for a gridview criteria?
Any help would be great, Cheers, Mark.