Dec 13, 2010, 9:29 PM
[CLOSED] [1.0] DirectEvent Issues
Since I have these issues alot when I update from SVN I'll let you test it with a grain of salt. However I did rollback to the revision before and it's working so I'm thinking it might be a bug.
Since upgrading to Revision 3371 from SVN.
Since upgrading to Revision 3371 from SVN.
ISSUE: Directevents & Comboboxes
ERROR:
Inner Exception Type :System.NullReferenceException
Current User :LJANKOWSKI
Inner Exception :Object reference not set to an instance of an object.
Inner Source :Ext.Net.ComboBox
Inner Stack Trace : at Ext.Net.ComboBox.LoadPostData(String postDataKey, NameValueCollection postCollection) at Ext.Net.Field.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
here is my code
<ext:Button ID="Button4" runat="server" Text="Save" Icon="Disk">
<DirectEvents>
<Click OnEvent="ContactAdd">
</Click>
</DirectEvents>
</ext:Button>
codebehindPublic Sub ContactAdd(ByVal sender As Object, ByVal e As DirectEventArgs)
Dim OrclCmd As New OracleCommand("XXDBI_AM_VALIDATION.VALIDATE_ADDRESS", ReturnOracleConnection)
OrclCmd.CommandType = CommandType.StoredProcedure
Dim returnval As String = Nothing
OrclCmd.BindByName = True
OrclCmd.Parameters.Add("P_CITY_NAME", OracleDbType.Varchar2, tfCity.SelectedItem.Text.ToString, ParameterDirection.Input)
OrclCmd.Parameters.Add("P_COUNTY_NAME", OracleDbType.Varchar2, tfCounties.SelectedItem.Text.ToString, ParameterDirection.Input)
OrclCmd.Parameters.Add("P_STATE_NAME", OracleDbType.Varchar2, tfState.SelectedItem.Text.ToString, ParameterDirection.Input)
OrclCmd.Parameters.Add("P_POSTAL_CODE", OracleDbType.Varchar2, tfPostal.Text.ToString, ParameterDirection.Input)
OrclCmd.Parameters.Add("VALID", OracleDbType.Varchar2, 1).Direction = ParameterDirection.Output
OrclCmd.Connection.Open()
OrclCmd.ExecuteScalar()
returnval = OrclCmd.Parameters("VALID").Value.ToString
If (returnval = "N") Then
Ext.Net.ExtNet.Msg.Confirm("Warning Invalid Address", "The address you have entered does not appear to be a valid address. Are you sure you want to use this address?", "if (buttonId == 'yes') { Ext.net.DirectMethods.SaveContactData(); }").Show()
Else
SaveContactData()
End If
OrclCmd.Connection.Close()
OrclCmd.Dispose()
End Sub
Last edited by geoffrey.mcgill; Dec 16, 2010 at 6:28 PM.
Reason: [CLOSED], please use [CODE] tags