K
Karl
The only solution I've found to date is to hook to the Selected event of the
SQlDataSource:
<asp:sqldatasource ConnectionString="<%$ ConnectionStringsortal %>"
SelectCommand="GetPortals" ID="ds" runat="server">
<SelectParameters>
<asparameter Direction="Output" Type="Int32" Name="Output" />
</SelectParameters>
</asp:sqldatasource>
and in codebehind
void Page_Load(){
ds.Selected +=new SqlDataSourceStatusEventHandler(ds_Selected);
}
void ds_Selected(object sender, SqlDataSourceStatusEventArgs e) {
}
at which point you can access e.Command.Parameters
["@Output"].SqlValue.Value or something similar.
Karl
SQlDataSource:
<asp:sqldatasource ConnectionString="<%$ ConnectionStringsortal %>"
SelectCommand="GetPortals" ID="ds" runat="server">
<SelectParameters>
<asparameter Direction="Output" Type="Int32" Name="Output" />
</SelectParameters>
</asp:sqldatasource>
and in codebehind
void Page_Load(){
ds.Selected +=new SqlDataSourceStatusEventHandler(ds_Selected);
}
void ds_Selected(object sender, SqlDataSourceStatusEventArgs e) {
}
at which point you can access e.Command.Parameters
["@Output"].SqlValue.Value or something similar.
Karl