Use today's date as the default value for a Query String paramater?
-
05-10-2020 - |
题
This is what I have so far but I cannot figure out how to set the default value to today's date if the parameter is not passed in the query string.
<ParameterBinding Name="meetingDay" Location="QueryString(meetingDay)" DefaultValue="???"/>
解决方案
Looks like I have to use the Today CAML variable. I was able to do what I need with:
<ParameterBinding Name="Today" Location="QueryString(meetingDay);CAMLVariable" DefaultValue="CurrentDate"/>