|
[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.
Your Input Matters 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! |
||
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>
|
Advertisement
| Hall of Fame |