MX2004 Stored Procedure Problem
Hi,
I'm getting a error from my asp.net page that is getting the best of me. I'm executing a stored procedure from a sub. The stored procedue checks user information and returns a user level. In the sub I'm referencing the parameter values for the user level. This value is what appears to be causing the error. I've checked the stored procedure and verified that it is returning data. Below is some of the code and the error.
:(Please Help, thanks.
sub btnLoginSubmit (sender as object, e as eventargs)
...
session("uguid")=uguid
spVerifyAUser.Expression="true"
databind()
dim uLevel as string
ulevel=spVerifyAUser.ParameterValue("@ulvl") <- Line with the error
response.write("UserLevel="&uLevel)
...
end sub
<MM:DataSet
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_STRING_Server1") %>'
CommandText="dbo.VerifyAUser"
CreateDataSet="false"
Debug="true"
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSett ings("MM_CONNECTION_DATABASETYPE_Server1") %>' Expression="false"
id="spVerifyAUser"
IsStoredProcedure="true"
runat="Server"
>
<Parameters>
<Parameter Name="@RETURN_VALUE" Type="Int" Direction="ReturnValue" />
<Parameter Name="@uguid" Value='<%# Session("uguid") %>' Type="VarChar" Size="100" Direction="Input" />
<Parameter Name="@ulvl" Type="Char" Size="1" Direction="Output" /> </Parameters>
</MM:DataSet>
ERROR:
Object reference not set to an instance of an object.
NullReferenceException: Object reference not set to an instance of an object.]
DreamweaverCtrls.DataSet.ParameterValue(String ParameterName)
ASP.Login_aspx.btnLoginSubmit(Object sender, EventArgs e) in c:\inetpub\wwwroot\myauction2\Login.aspx:51
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain() +1277
|