[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.0

Method Error 500 in AJAX cascading dropdownlist

Asked by AidenA in Asynchronous Javascript and XML (AJAX), Programming for ASP.NET, Web Services and WCF

Tags: AJAX ASP Webprogramming

So, I'm getting this method error 500. I can see lots of other people have experienced this but whatever fixes they have come up with don't work or maybe i don't understand. The code i use is below. Any ideas?

The query seems ok and when i execute it, it returns 1 value, so presumably that is fine.

Thanks, Aiden
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
// In my default.aspx page
 
<cc1:CascadingDropDown  ID="CascadingDropDown1" 
                                runat="server" 
                                TargetControlID="ddlQuarter" 
                                Category="Quarter" 
                                PromptText="Please select the Quarter"
                                LoadingText="Please wait..."
                                servicepath="CSATSearchService.asmx"
                                servicemethod="GetCSATData">
                               
        </cc1:CascadingDropDown>
 
<table style="z-index: 112; left: 245px; position: absolute; top: 101px">
            <tr>
                <td style="width: 124px; height: 21px; text-align: right">Quarter:</td>
                <td style="width: 11px; height: 21px"></td>
                <td style="width: 170px; height: 21px">
                    <asp:DropDownList ID="ddlQuarter" runat="server" Width="165px"/>
                </td>
            </tr>
            <tr>
                <td style="width: 124px; text-align: right">Customer:</td>
                <td style="width: 11px"></td>
                <td style="width: 170px">
                    <asp:DropDownList ID="ddlCustomer" runat="server" Width="165px"/>
                </td>
            </tr>
            <tr>
                <td style="width: 124px; text-align: right">Region:</td>
                <td style="width: 11px"></td>
                <td style="width: 170px">
                    <asp:DropDownList ID="ddlRegion" runat="server" Width="165px"/>
                </td>
            </tr>
        </table>
 
// In my webservice.asmx page
 
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports AjaxControlToolkit
Imports System.Data
Imports System.Data.SqlClient
Imports System.Collections.Generic
 
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
<System.Web.Script.Services.ScriptService()> _
Public Class CSATSearchService
   Inherits System.Web.Services.WebService
 
   <WebMethod()> _
   Public Function GetCSATData(ByVal knowncategoryvalues As String, ByVal Category As String) As CascadingDropDownNameValue()
 
      'took out shared
 
      Dim quarterAdapter As New CSATSearchTableAdapters.CSAT_DataTableAdapter
      Dim quarterValues As New List(Of CascadingDropDownNameValue)()
 
      For Each row As DataRow In quarterAdapter.GetQuarter
         quarterValues.Add(New CascadingDropDownNameValue(row("Quarter").ToString, row("Customer Name").ToString))
      Next
 
      Return quarterValues.ToArray
 
   End Function
 
End Class
 
// my xsd page. Query appears to run fine and only returns 1 value so can't be an overflow problem
 
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="CSATSearch" targetNamespace="http://tempuri.org/CSATSearch.xsd" xmlns:mstns="http://tempuri.org/CSATSearch.xsd" xmlns="http://tempuri.org/CSATSearch.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="CSAT DatabaseConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="CSAT DatabaseConnectionString (Web.config)" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.CSAT DatabaseConnectionString.ConnectionString" Provider="System.Data.OleDb">
          </Connection>
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="CSAT DataTableAdapter" GeneratorDataComponentClassName="CSAT_DataTableAdapter" Name="CSAT Data" UserDataComponentName="CSAT DataTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="CSAT DatabaseConnectionString (Web.config)" DbObjectName="CSAT Data" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetQuarter" GetMethodModifier="Public" GetMethodName="GetQuarter" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetQuarter" UserSourceName="Fill">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="True">
                    <CommandText>SELECT DISTINCT Quarter
FROM         [CSAT Data]</CommandText>
                    <Parameters>
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Quarter" DataSetColumn="Quarter" />
            </Mappings>
            <Sources>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources>
        </Sources>
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="CSATSearch" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="CSATSearch" msprop:Generator_DataSetName="CSATSearch">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="CSAT_x0020_Data" msprop:Generator_UserTableName="CSAT Data" msprop:Generator_RowDeletedName="CSAT_DataRowDeleted" msprop:Generator_TableClassName="CSAT_DataDataTable" msprop:Generator_RowChangedName="CSAT_DataRowChanged" msprop:Generator_RowClassName="CSAT_DataRow" msprop:Generator_RowChangingName="CSAT_DataRowChanging" msprop:Generator_RowEvArgName="CSAT_DataRowChangeEvent" msprop:Generator_RowEvHandlerName="CSAT_DataRowChangeEventHandler" msprop:Generator_TablePropName="CSAT_Data" msprop:Generator_TableVarName="tableCSAT_Data" msprop:Generator_RowDeletingName="CSAT_DataRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Quarter" msprop:Generator_UserColumnName="Quarter" msprop:Generator_ColumnPropNameInRow="Quarter" msprop:Generator_ColumnVarNameInTable="columnQuarter" msprop:Generator_ColumnPropNameInTable="QuarterColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>
[+][-]05/29/09 08:12 AM, ID: 24503335Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Asynchronous Javascript and XML (AJAX), Programming for ASP.NET, Web Services and WCF
Tags: AJAX ASP Webprogramming
Sign Up Now!
Solution Provided By: AidenA
Participating Experts: 1
Solution Grade: A
 
[+][-]05/28/09 07:45 AM, ID: 24493785Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/28/09 08:14 AM, ID: 24494175Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/28/09 08:52 AM, ID: 24494627Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/28/09 09:06 AM, ID: 24494783Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/28/09 09:16 AM, ID: 24494907Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05/28/09 09:30 AM, ID: 24495082Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05/28/09 10:00 AM, ID: 24495396Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/29/09 04:33 AM, ID: 24501876Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625