Advertisement

05.13.2008 at 09:26PM PDT, ID: 23400267
[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!

Need to update an image when cascading dropdown for countries is changed.

protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
             
                 cddCountry.SelectedValue = "CA";
                 imgFlag.ImageUrl = "~/images/flags/" + cddCountry.SelectedValue + ".gif";
                                               
            }
        }
I am not sure how to deal with the casding dropdownlist for image.

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:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
<%@ Import Namespace="System.Data" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="Controls.Search" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<div align="center">
 
 
 
<table width="85%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="tbcss" width="100%">
 
 
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
 
<tr>
<td class="tbcss" width="100%" valign="top">
 
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td class="module_head" width="6">&nbsp;
	</td>
	<td class="module_head" width="100%">
	<asp:Label ID="Label1" Runat="server" Text="Search our Profiles - Free!" SkinID="FormHeading"></asp:Label>
    </td>	
	</tr>
</table>
 
 
 
 
<table border="0" width="100%" >
 
<tr>
     <td style="width: 13%">
     I am a:
     <asp:DropDownList ID="ddlGender1" Font-Size="Smaller" Font-Bold="true" runat="server" DataSourceID="SqlDSGender1" DataTextField="Gender"
            DataValueField="GenderID">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDSGender1" runat="server" ConnectionString="<%$ ConnectionStrings:omegaloveConnectionString %>"
            SelectCommand="SELECT [GenderID], [Gender] FROM [tbl_Gender] ORDER BY [GenderID]">
        </asp:SqlDataSource>
       </td>
           
     <td width="20%"></td>
</tr>
 
 <tr>
     <td style="width: 13%"> 
     Looking for a:
    <asp:DropDownList ID="DropDownList1" Font-Size="Smaller" Font-Bold="true" runat="server" DataSourceID="SqlDSGender2" DataTextField="Gender"
        DataValueField="GenderID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:omegaloveConnectionString %>"
        SelectCommand="SELECT [GenderID], [Gender] FROM [tbl_Gender] ORDER BY [GenderID]">
    </asp:SqlDataSource>
     </td>
           
    <td width="20%"></td>
</tr>
     
 
 <tr>
     <td style="width: 13%"> 
     Looking for a:
    <asp:DropDownList ID="ddlGender2" Font-Size="Smaller" Font-Bold="true" runat="server" DataSourceID="SqlDSGender2" DataTextField="Gender"
        DataValueField="GenderID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDSGender2" runat="server" ConnectionString="<%$ ConnectionStrings:omegaloveConnectionString %>"
        SelectCommand="SELECT [GenderID], [Gender] FROM [tbl_Gender] ORDER BY [GenderID]">
    </asp:SqlDataSource>
     </td>
     
    <td width="20%"></td>
</tr>
   
<tr>
    <td style="width: 13%"> 
     Age:
    <asp:DropDownList ID="ddlAge1" Font-Size="Smaller" Font-Bold="true" runat="server" DataSourceID="SqlDSAge1" DataTextField="Age"
        DataValueField="AgeID">
    </asp:DropDownList>
    to:
    <asp:DropDownList ID="ddlAge2" Font-Size="Smaller" Font-Bold="true" runat="server" DataSourceID="SqlDSAge2" DataTextField="Age"
        DataValueField="AgeID">
    </asp:DropDownList>
    <asp:SqlDataSource ID="SqlDSAge1" runat="server" ConnectionString="<%$ ConnectionStrings:omegaloveConnectionString %>"
        SelectCommand="SELECT [AgeID], [Age] FROM [tbl_Age] ORDER BY [AgeID]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDSAge2" runat="server" ConnectionString="<%$ ConnectionStrings:omegaloveConnectionString %>"
        SelectCommand="SELECT [AgeID], [Age] FROM [tbl_Age] ORDER BY [AgeID]"></asp:SqlDataSource>
     </td>
             
     <td width="20%"></td>
</tr>
    
<tr>
     <td style="width: 13%"> 
     Country:
     <asp:Image ID="imgFlag" runat="server" Height="12px" Width="23px" /><br />
     <asp:DropDownList style="position: static"  Font-Size="Smaller" Font-Bold="true" Width="190px" ID="ddlCountry" runat="server" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"></asp:DropDownList>
     </td>
     
     <td width="20%"></td>
</tr>
       
<tr>
     <td style="width: 13%"> 
      State/Province:<br />
      <asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="190px" ID="ddlRegion" runat="server"></asp:DropDownList>
      </td>
           
      <td width="20%">
      </td>
</tr>
       
<tr>
      <td style="width: 13%">
       City:<br />
       <asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="190px" ID="ddlCity" runat="server"></asp:DropDownList>
      </td>
      <td width="20%">
      </td>
</tr>
 
<tr>
       <td width="13%"></td>
       <td width="20%"></td>
</tr>
 
<tr>
       <td width="80%">
                <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/search_submit.gif" />
       </td>
       <td width="20%">
       </td>
</tr>
    
   
 </table>
    
    </td>
    </tr>
    
    </table>
    
    </td></tr>
    
    <tr>
    <td>
   
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td>
        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/colfotleft.jpg" />
    </td>
   
    <td bgcolor="#ffffff" width="100%">
    </td>
    
    
    <td>
         <asp:Image ID="Image2" runat="server" ImageUrl="~/images/colfotright.jpg" />
    </td>
    
</tr>
</table>
</td>
</tr>
</table>
 
							   
</div>
   
   
  
        
            <ajaxToolkit:CascadingDropDown ID="cddCountry" runat="server"
                TargetControlID="ddlCountry"
                Category="Country"
                PromptText="Choose a Country"
                LoadingText="Loading Countries..."
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetCountries" />
                
            <ajaxToolkit:CascadingDropDown ID="cddRegion" runat="server"
                TargetControlID="ddlRegion"
                ParentControlID="ddlCountry" 
                Category="Region"
                PromptText="Choose a Province/State"
                LoadingText="Loading Provinces/States..."
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetRegionsForCountry" />
                
            <ajaxToolkit:CascadingDropDown ID="cddCity" runat="server"
                TargetControlId="ddlCity"
                ParentControlID="ddlRegion"  
                Category="City"
                PromptText="Choose a City"
                LoadingText="Loading Cities..."
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetCityForRegionCountry" />
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: mathieu_cupryk
Solution Provided By: ajaysharmaapjs
Participating Experts: 1
Solution Grade: C
Views: 0
Translate:
Loading Advertisement...
05.13.2008 at 11:33PM PDT, ID: 21561675

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 07:36AM PDT, ID: 21564666

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.14.2008 at 10:57PM PDT, ID: 21570928

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 12:49PM PDT, ID: 21577333

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 12:51PM PDT, ID: 21577352

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:21PM PDT, ID: 21580197

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628