User Profile & Activity

Douglas Badin Member
Page
of 11

ISNet.WebUI.WebDesktop.WebFlyPostBackListener.(String pageName) 236

System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() 254
System.Xml.XmlTextReaderImpl.ParseDocumentContent() 451
System.Xml.XmlTextReaderImpl.Read() 151
System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) 58
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) 20
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) 129
System.Xml.XmlDocument.Load(XmlReader reader) 108
System.Xml.XmlDocument.LoadXml(String xml) 113

System.Xml.XmlTextReaderImpl.ParseDoctypeDecl() 254
System.Xml.XmlTextReaderImpl.ParseDocumentContent() 451
System.Xml.XmlTextReaderImpl.Read() 151
System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace) 58
System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc) 20
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) 129
System.Xml.XmlDocument.Load(XmlReader reader) 108
System.Xml.XmlDocument.LoadXml(String xml) 113

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[WebException: The remote server returned an error: (503) Server Unavailable.]
System.Net.HttpWebRequest.GetResponse() 5314029
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials credentials) 69
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) 3929371
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) 54
System.Xml.XmlTextReaderImpl.OpenStream(Uri uri) 34
System.Xml.XmlTextReaderImpl.DtdParserProxy_PushExternalSubset(String systemId, String publicId) 408
System.Xml.DtdParserProxy.System.Xml.IDtdParserAdapter.PushExternalSubset(String systemId, String publicId) 16
System.Xml.DtdParser.ParseExternalSubset() 21
System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset) 4016925
System.Xml.DtdParser.Parse(Boolean saveInternalSubset) 54
System.Xml.DtdParserProxy.Parse(Boolean saveInternalSubset) 31

Hi,

How do I get the Hotfix for the Trial Version since I can not get into the Developer Network?

I would like to try it to see if it clears up my problems.

Thanks,

Doug

Hi,

Is the hotfix available for the LoadValue(true) problem not working synchronously?

I see there is a SP1 Refresh that came out today.

Thanks,

Doug

I tried it but it has some draw backs.

The Lookup only takes place on Enter, Lost Focus or Click on DropDown.  I need it after every keystroke.

Typing Text in causes the DropDown to Close.

It also seems be having conflicts with my ClientSideEvents.OnLostFocus.

Hi,

It seems like OnTheFlyPostBack is async, so I would still have the same problem.

 

4. When might the next hotfix build be available for LoadValue(true)?

5. Will I be able to apply it to the trial version?  I would like to know it works before I buy it.

 

I have noticed, the AddItem Action takes place, but the LoadData Action only takes place if what is typed is going to be in the List.

6. So, currently is there anyway to determine if a LoadData Action, will or will not take place or if async processing is complete?

 

Doug

Hi,

1. There are a couple problems with AfterItemSelected.

- It does not always occur

--- Empty String

--- Not it the list

- If it does occur, no reason to wait for the LoadData Action because the list is already loaded

2. I did try playing withe SendCustomRequest, but it had to wait for the LoadData.  Where do I find some docs on AddInput Method?

3. How do I get the LoadValue(true) Method to execute synchrnously?  It isn't working for me.

Doug

I have done some further testing with no success yet.

Scenario 1:

- Type in a Value which is in the List but not Loaded yet

- Tab to the next Input before the Combo starts Loading

Here are the Events

-- OnLostFocus Completes
-- OnBeforeRequest
-- OnActionDispatched: LoadData
-- OnAfterResponseProcess

Hence, the List is not Loaded with the New Value for the OnLostFocus Event

 

Scenario 2:

- Type a Value in which is in the List but not Loaded yet

- Wait for the List to Load

- Tab to the next Input

Here are the Events

-- OnBeforeRequest
-- OnActionDispatched: LoadData
-- OnAfterResponseProcess
-- OnAfterItemSelected
-- OnLostFocus_End

Now, the WebComboRow Cells can be accessed.

 

Attempted Workaround:

In the OnLostFocus Event I tired a SetText(...) and LoadValue(true) but can not get the LoadValue to run Snychronously.

How do I get LoadValue to run Snychronously?

 

Sample Code:

<%@ Page Title="" Language="C#" MasterPageFile="~/Branding/MasterPageNewCoSimple.master" AutoEventWireup="true" CodeFile="ComboBoxInterSoft.aspx.cs" Inherits="Refurb_ComboBoxInterSoft" %>

 

<%@ Register assembly="ISNet.WebUI.WebCombo" namespace="ISNet.WebUI.WebCombo" tagprefix="ISWebCombo" %>

 

 

<asp:Content ID="Content1" ContentPlaceHolderID="cphBody" Runat="Server">

 

<script language="javascript" type="text/javascript">

 

      var PartNumber_WebCombo_Processing_Page = false;

 

      function LogEvent(Event) {

 

            var Log_TextBox = document.getElementById("<%= Log_TextBox.ClientID %>");

            Log_TextBox.value = Log_TextBox.value + "\r\n" + Event ;

 

      }

 

 

      function PartNumber_WebCombo_OnActionDispatched(controlId, action) {

            LogEvent("PartNumber_WebCombo_OnActionDispatched" + ": " + action);

 

      }

 

 

      function PartNumber_WebCombo_OnAfterItemSelected(controlId) {

            LogEvent("PartNumber_WebCombo_OnAfterItemSelected");

 

      }

 

      function PartNumber_WebCombo_OnAfterResponseProcess(controlId) {

            LogEvent("PartNumber_WebCombo_OnAfterResponseProcess");

            PartNumber_WebCombo_Processing_Page = false;

 

      }

 

      function PartNumber_WebCombo_OnBeforeRequest(controlId) {

            LogEvent("PartNumber_WebCombo_OnBeforeRequest");

            PartNumber_WebCombo_Processing_Page = true;

 

            var PartNumber_WebCombo = ISGetObject(controlId);

 

            if (PartNumber_WebCombo.IsInProgress) {

                  LogEvent(IsInProgress);

            }

 

            if (PartNumber_WebCombo.IsMoreRequest) {

                  LogEvent(IsMoreRequest);

            }

 

      }

 

      function PartNumber_WebCombo_OnChanged(controlId) {

 

            var PartNumber_WebCombo = ISGetObject(controlId);

 

            LogEvent(PartNumber_WebCombo_OnChanged);

 

      }

 

      function PartNumber_WebCombo_OnLostFocus(controlId) {

 

            var PartNumber_WebCombo = ISGetObject(controlId);

 

            if (PartNumber_WebCombo.IsInProgress) {

                  LogEvent(IsInProgress);

            }

 

            if (PartNumber_WebCombo.IsMoreRequest) {

                  LogEvent(IsMoreRequest);

            }

 

            var PartNumber_TextBox = document.getElementById("<%= PartNumber_TextBox.ClientID %>");

            var PartDescription_TextBox = document.getElementById("<%= PartDescription_TextBox.ClientID %>");

 

            var PartNumber_String = PartNumber_WebCombo.GetTextBoxValue();

            var PartDescription_String = "";

 

            LogEvent(PartNumber_WebCombo.GetLastAction());

 

// TODO: Wait for DropDown to load

 

//          PartNumber_WebCombo.SetText(PartNumber_String, true);

//          PartNumber_WebCombo.LoadValue(true);

            LogEvent(PartNumber_WebCombo.Value);

//          LogEvent(PartNumber_WebCombo.GetLastAction());

 

 

            if (false) {

                  PartDescription_String = PartNumber_WebCombo.Value;

            }

            else {

 

                  if (PartNumber_WebCombo_Processing_Page) {

                        LogEvent("PartNumber_WebCombo_Processing_Page");

                  }

                  else {

                        var Selected_WebComboRow = PartNumber_WebCombo.GetSelectedRow();

 

                        if (Selected_WebComboRow != null) {

 

                              PartDescription_String = Selected_WebComboRow.cells[1].innerText;

                        }

                  }

            }

 

            PartNumber_TextBox.value = PartNumber_String

            PartDescription_TextBox.value = PartDescription_String

 

            LogEvent("PartNumber_WebCombo_OnLostFocus_End");

 

            return true;

 

      }

 

 

</script>

 

 

      <table>

            <tr>

                  <td valign="top">

                        <ISWebCombo:WebCombo

                              ID="PartNumber_WebCombo"

                              runat="server"

                             

                             

                             

                              DataSourceID="PartsList_SqlDataSource"

                              DataTextField="PART_NUM"

                              DataValueField="PART_NUM"

                             

                              Value="800010194001"

                             

                              UseDefaultStyle="true"

                             

                              Height="20px"

                    Width="200px"

                        >

                    <Columns>

                        <ISWebCombo:WebComboColumn BaseFieldName="PART_NUM" HeaderText="Part#" Name="ContactName" Width="150px" />

                        <ISWebCombo:WebComboColumn BaseFieldName="DESCRIPTION" HeaderText="Description" Name="Description" Width="455px" />

                    </Columns>

                    <LayoutSettings

                                    ComboMode="MultipleColumns"

                                    EntryMode="AutoComplete"

                                    AllowAddItem="true"

                                   

                              >

                                    <ClientSideEvents

                                          OnLostFocus="PartNumber_WebCombo_OnLostFocus"

                                          OnAfterResponseProcess="PartNumber_WebCombo_OnAfterResponseProcess"

                                          OnBeforeRequest="PartNumber_WebCombo_OnBeforeRequest"

                                          OnActionDispatched="PartNumber_WebCombo_OnActionDispatched"

                                          OnAfterItemSelected="PartNumber_WebCombo_OnAfterItemSelected"

                                         

                                    />

                    </LayoutSettings>

                        </ISWebCombo:WebCombo>

                 

                 

                  </td>

           

                  <td valign="top">

 

                        <asp:RequiredFieldValidator

                              ID="PartNumber_WebCombo_RequiredFieldValidator"

                              runat="server"

                              ControlToValidate="PartNumber_WebCombo"

                              Text="*"

                              ErrorMessage="*Please enter a Part."

                              Enabled="true"

                              Display="Static"

                              Visible="true"

                        />

                 

                  </td>

                 

                  <td valign="top">

                        <asp:TextBox ID="PartNumber_TextBox" runat="server"></asp:TextBox>

                  </td>

           

                  <td valign="top">

                        <asp:TextBox ID="PartDescription_TextBox" runat="server"></asp:TextBox>

                  </td>

           

                  <td valign="top">

                        <asp:TextBox

                              ID="Log_TextBox"

                              runat="server"

                              Height="500px"

                              Width="400px"

                              TextMode="MultiLine"

                              Font-Size="8pt"

                              Font-Names="Verdana"

                              BorderColor="#CCCCCC"

                              BorderWidth="1px"

                        >

                        </asp:TextBox>

                  </td>

            </tr>

      </table>

     

      <asp:SqlDataSource

            ID="PartsList_SqlDataSource"

            runat="server"

            ConnectionString="<%$ ConnectionStrings:NewCoApp %>"

            SelectCommand="SELECT [PART_NUM], [DESCRIPTION] FROM [PARTS_LIST] ORDER BY [PART_NUM]"

      ></asp:SqlDataSource>

 

 

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphFooter" Runat="Server">

</asp:Content>

All times are GMT -5. The time now is 4:33 PM.
Previous Next