Click to See Complete Forum and Search --> : Sending more than one parameter to aspx page from the html


Funkymonkey
03-13-2006, 06:18 AM
I have this for my edit column in my datagrid:
DataNavigateUrlFormatString="edit.aspx?ID={0}"
in order to call my edit.aspx page and sent it the ID number.

This works fine but I need to send it a second parameter which I've called 'Key'. The value of 'key' is 1. I tried this:
"edit.aspx?ID={0}, Key={1}"

but get this error:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.

Please can someone help?

Thanks

Funkymonkey
03-13-2006, 06:31 AM
"edit.aspx?ID={0}&Key=(1)"

Thanks anyway!