Ask a Question related to Dreamweaver AppDev, Design and Development.
-
JMHooten #1
Programmatically set a MM:Dataset parameter Value
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>
JMHooten Guest
-
Dataset.length(), dataset.hasnext() not working.. Why?
I have a dataset that has 3 items, yet when I test for it, it is "undefined". Any ideas why this property would not be available? Thanks Geoff -
vb.net: Problem using "IS" operator with ? parameter in Dataset
I'm sure someone's come across this, but I couldn't find it searching the boards. I get the error message "Invalid use of Is operator in query... -
dataset.Databind error when dataset XML contains attributes...
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other... -
Typed Dataset Parameter In A Web Service Method
After reading about typed datasets I thought they would be perfect for accepting the complex data in a web service I am writing. I set about... -
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data...



Reply With Quote

