Question : does not contain a definition for and no extension method

I am trying to get a variable from an Insert statement and pass it on as a querystring to another page.  I found some code behind but it does not like the Command syntax in "string Inc_ID = e.Command.Parameters["@Inc_ID"].Value.ToString();"

See attached code.

Thanks,
Brian

Answer : does not contain a definition for and no extension method

Response.Redirect("YourNewPage.aspx?var=" + Server.UrlEncode(e.Command.Parameters["@Inc"].Value));
Random Solutions  
 
programming4us programming4us