Object reference not set to an instance of an object in Intersoft ComboBox Control?

3 replies. Last post: March 19, 2014 9:51 PM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

  <table cellpadding="0" cellspacing="8" style="margin-bottom:5px;" class="gradient_panel" height="150px" >                <tr>
                    <td width="10%" class="label_cell">Event Name:
                     </td>
                    <td width="16%" colspan="1">
                        <ISWebInput:WebInput ID="txtEventName" runat="server" Width="150px" BackColor ="white" />
                    </td>
                    <td class="label_cell">Event Code:</td>
                    <td colspan="3">
                        <ISWebInput:WebInput ID="txtEventCode" runat="server" Width="150px" BackColor ="white" />
                    </td>                   
                    <td rowspan = "6" class="separator"> 
                    </td>
                    <td width="25%" rowspan = "6" >
                        <asp:Panel runat="server" ID="panEdit" Visible="true">
                            <table width="100%">
                                <tr>
                                    <td style="text-align:center">
                                        <DT:WebButton runat="server" ID="btnSave" Text="Save" />
                                        <DT:WebButton runat="server" ID="btnCancel" Text="Cancel" OnClientClick="OnEditOrCancel();return false;" />
                                    </td>   
                                 </tr>
                            </table>
                        </asp:Panel>                   
                    </td>
                </tr>          
                <tr>
                    <td colspan = "2">
                        <DT:CustomValidator ID="vldEventNameRequired" runat="server" Display="Dynamic" ControlToValidate="txtEventName" ValidateEmptyText ="true" ErrorMessage=""/>
                    </td>
                     <td colspan = "4">
                        <DT:CustomValidator ID="vldEventCode" runat="server" Display="Dynamic" ControlToValidate="txtEventCode" ValidateEmptyText ="true" ErrorMessage=""/>
                     </td>                                      
                </tr> 
                <tr>
                    <td class="label_cell">Event Type:</td>
                    <td>
                        <ISWebCombo:WebCombo ID="cboEventType" runat="server"  Width="150px" UseDefaultStyle="true"  >
                        <LayoutSettings 
                            AlwaysShowAllRowsOnDropdown="true" 
                            AlwaysShowHelpButton="false" >
                            <ClientSideEvents OnAfterItemSelected = "OnValChanged" OnError="alert('error');" />                            
                        </LayoutSettings>
                        </ISWebCombo:WebCombo> 
                    </td>
                    <td width="8%" class="label_cell">Begin:</td>
                    <td width="15%">                      
                        <ISWebInput:WebInput ID="txtBeginDate" runat="server" Width="150px" BackColor="white">
                            <ClientSideEvents OnAfterValueChanged="OnAfterDateChanged"></ClientSideEvents>
                            <DisplayFormat IsEnabled="true" Type="DateTime">
                            </DisplayFormat>
                            <DateTimeEditor IsEnabled="true" EditValueByEditorOnly="true">
                                <WindowInfo DisplayPosition="Bottom" />            
                                <Behavior DropdownDisplayPosition="Right" DropdownButtonToolTip="Pick the date" />
                            </DateTimeEditor>
                        </ISWebInput:WebInput>
                        <asp:HiddenField ID="hdBeginDate" ClientIDMode="Static" runat="server" />
                    </td>
                    <td width="6%" class="label_cell">End:</td>
                    <td width="20%">
                        <ISWebInput:WebInput ID="txtEndDate" runat="server" Width="150px" BackColor="white">
                            <ClientSideEvents OnAfterValueChanged="OnAfterDateChanged"></ClientSideEvents>
                            <DisplayFormat  Type="DateTime" IsEnabled="true" >
                            </DisplayFormat>
                            <DateTimeEditor IsEnabled="true" EditValueByEditorOnly="true">
                                <WindowInfo DisplayPosition="Bottom" />            
                                <Behavior DropdownDisplayPosition="Right" DropdownButtonToolTip="Pick the date" />
                            </DateTimeEditor>
                        </ISWebInput:WebInput>
                        <asp:HiddenField ID="hdEndDate" ClientIDMode="Static" runat="server" />
                    </td>    
                </tr>
                <tr >
                    <td colspan = "2">
                        <DT:CustomValidator ID="vldEventType" runat="server" Display="Dynamic" ControlToValidate="cboEventType" ValidateEmptyText ="true" ErrorMessage=""/>
                    </td>
                    <td colspan = "2">
                        <DT:CustomValidator ID="vldBeginDate" runat="server" Display="Dynamic" ControlToValidate="txtBeginDate" ValidateEmptyText ="true" ErrorMessage=""/>
                    </td>
                   <td colspan = "2">
                        <DT:CustomValidator ID="vldEndDate" runat="server" Display="Dynamic" ControlToValidate="txtEndDate" ValidateEmptyText ="true" ErrorMessage=""/>
                    </td> 
                </tr>
                <tr>
                    <td class="label_cell">Event Priority:</td>
                    <td colspan = "1">   
                        <ISWebInput:WebInput ID="txtPriority" runat="server" Width="50px"  EmptyAsNull="false" MaxLength="2"  SkinID="Numeric"  BackColor ="white" 
                        NumericInput ="true"  
                        ClientSideEvents-OnKeyDown ="event.keyCode = (event.keyCode != 110 && event.keyCode != 190) ? event.keyCode : 0;"  />
                        <DT:WebInputManager ID="ctlWebInputMgr" runat="server" >
                            <Configurators>
                                <DT:WebInputIntegerConfigurator Name="txtPriority" MaxLength="2" MinValue="0" MaxValue = "99"  />
                            </Configurators>
                        </DT:WebInputManager>
                    </td>
                    <td class="label_cell">Impact Type:</td>
                    <td colspan = "3">
                        <asp:RadioButtonList ID="lstImpactType" runat="server" RepeatDirection="Horizontal" RepeatLayout ="Flow"   >
                            <asp:ListItem Value = "M" Selected ="True" >Multiplicative</asp:ListItem>
                            <asp:ListItem Value = "A">Additive</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
                <tr>
                    <td colspan = "2">
                        <DT:CustomValidator ID="vldTxtPriority" runat="server" Display="Dynamic" ControlToValidate="txtPriority" ValidateEmptyText ="true" ErrorMessage="Priority is required"/>
                    </td>
                </tr> 
               
            </table> 




Hi

I had used Intersoft WebCombo control in one of the form. It was working fine. when we upgraded with latest version then we are getting this error

Object reference not set to an instance of an object

At page load it is working fine. But after post back it is throwing this error.

Stack Trace is like this


at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, Object[] index, CultureInfo culture) at System.Reflection.RuntimePropertyInfo.SetValue(Object obj, Object value, Object[] index) at ISNet.Serialization.XmlSerialization.XmlSerializer.ApplyProperty(Object currentObject, Pair pair) at ._9.(ArrayList , XmlSerializer , WebControl ) at ._9.(_10 , Object[] , XmlSerializer , WebControl ) at ISNet.WebUI.ISNetControl.LoadViewState(Object savedState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) at System.Web.UI.Control.LoadViewStateRecursive(Object savedState) at System.Web.UI.Page.LoadAllState() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) Inner Exception --------------- Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Message : Object reference not set to an instance of an object. Source : ISNet.WebUI.WebInput Help link : Data : System.Collections.ListDictionaryInternal TargetSite : Boolean (System.String) HResult : -2147467261 Stack Trace : at ISNet.WebUI.WebControls.MaskValidator.(String ) at ISNet.WebUI.WebControls.MaskValidator.(Object ) at ISNet.WebUI.WebControls.WebInput.set_Value(Object value)**

All times are GMT -5. The time now is 7:28 PM.
Previous Next