Hey Everyone, what I am trying to figure out is if there is a good way to set
the value of a parameter for a MM:Dataset - code as follows. Is there any way
to do this, or must I use session or cookie or querystring variables?


<mm:dataset
runat="Server"
ID="procUpdateImageCount"
Expression="False"
IsStoredProcedure="true"
CreateDataSet="false"
ConnectionString='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_con
nAgentKi_FeatureProps") %>'
DatabaseType='<%#
System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETY
PE_connAgentKi_FeatureProps") %>'
CommandText="sp_UpdatePropPhotoCount"
Debug="true"
>
<parameters>
<parameter name="@RETURN_VALUE" type="Int" direction="ReturnValue" />
<parameter name="@propertyID" value='<%# IIf((Not
Request.QueryString("propertyID") is Nothing),
Request.QueryString("propertyID"), system.dbnull.value) %>' type="Int"
direction="Input" />
<parameter name="@photoCount" value="0" type="Int" direction="Input"
/>
</parameters>
</mm:dataset>
<mm:pagebind runat="server" PostBackBind="true" />

... Then I would like to have a subroutine like this:

<SCRIPT Language="vb" Runat="server">
Sub Save_Clicked(Sender As Object, E As EventArgs)
'some various code
procUpdateImageCount.Expression = TRUE
procUpdateImageCount.ParameterValue("@photoCount") .Value = 40
procUpdateImageCount.DoInit()
End Sub
</SCRIPT>