How to pass "Guid.Empty" or "string.Empty" in a datagrid onClick event?

hi guys,

in a datagrid i have a Row Select event which sends the event.ID as a parameter to the underlying page
(for development purposes we had a GUID hard coded into the page as an optional 2nd parameter)

what i'd like to do is define the 2nd parameter but use it optionally, i.e. one data grid would not send the 2nd parameter, but the other datagrid would have it (it would be a GUID for the record)

I can see the parameter has been generated in the underlying page
image

and in my page load, i'm handling the 2nd parameter as follows;

the trouble is that when we build / run and navigate to the page via the datagrid, i'm getting Page not found

if i set the parameter as anything, then the setup works as expected (noting i'm getting a "that's not a GUID' exception as i'm clearly reaching 5.1.1 on my page load event

so the question is, what's the best way to pass an optional 2nd parameter to a page (via a datagrid) and then in query see if that parameter is populated.....

i'd prefer to not set the 2nd parameter to "New" as a hard coded optional string. this would probably work, but in my mind that's a hack workaround.

is there a real / better solution?

have you tried passing 00000000-0000-0000-0000-000000000000

i solved this with a string of "newEntry" being passed, Guid.empty would also work,
while this is okay, it requires the empty GUID to be part of the URL, so it's not technically optional

must be the perfectionist in me coming out :smiley: