[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!

9.1

Invalid postback or arguyment?

Asked by mathieu_cupryk in Programming for ASP.NET, .NET, Asynchronous Javascript and XML (AJAX)

Tags: Invalid postback or arguyment.

I am getting the following error when I try to do a click submit on my search.ascx

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.


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:
Here is my search.ascx
<%@ 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">
 
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
 
<table width="85%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="tbcss">
 
 
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
 
<tr>
<td class="tbcss" 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%; height: 23px;">
     I am a:&nbsp;
         <asp:DropDownList style="position: static" Font-Size="Smaller"  ID="ddlGender1" runat="server" Font-Bold="True" Width="51px">
         </asp:DropDownList></td>
           
     <td width="20%" style="height: 23px"></td>
</tr>
     
 
 <tr>
     <td style="width: 13%; height: 44px;"> 
     Looking for a:
    <asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="46px" ID="ddlGender2" runat="server"></asp:DropDownList>
     </td>
     
    <td width="20%" style="height: 44px"></td>
</tr>
 
<tr>
    <td style="width: 13%"> 
     Age: <asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="46px" ID="ddlAge1" runat="server"></asp:DropDownList>
    to:<asp:DropDownList style="position: static" Font-Size="Smaller" Font-Bold="true" Width="46px" ID="ddlAge2" runat="server"></asp:DropDownList>&nbsp;
    </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"></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>
 
             <ajaxToolkit:CascadingDropDown ID="cddGender1" runat="server"
                TargetControlID="ddlGender1"
                Category="Gender"
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetGenders" SelectedValue="1" />
             
             <ajaxToolkit:CascadingDropDown ID="cddGender2" runat="server"
                TargetControlID="ddlGender2"
                Category="Gender"
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetGenders" SelectedValue="1" />
                
                           
             <ajaxToolkit:CascadingDropDown ID="cddAge2" runat="server"
                TargetControlID="ddlAge2"
                Category="Age"
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetAges" SelectedValue="18" />
 
            <ajaxToolkit:CascadingDropDown ID="cddAge1" runat="server"
                TargetControlID="ddlAge1"
                ParentControlID="ddlAge2"
                Category="Age"
                ServicePath="../LocationService.asmx"
                ServiceMethod="GetAges" SelectedValue="1" />
                
                          
            <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" />
  </ContentTemplate>
</asp:UpdatePanel>							   
</div>
   
 
Attached is the master template file.
Attachments:
 
master template file.
 
[+][-]05/19/08 08:04 PM, ID: 21603327Accepted 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: Programming for ASP.NET, .NET, Asynchronous Javascript and XML (AJAX)
Tags: Invalid postback or arguyment.
Sign Up Now!
Solution Provided By: naspinski
Participating Experts: 2
Solution Grade: A
 
[+][-]05/19/08 07:58 PM, ID: 21603294Expert 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/19/08 08:00 PM, ID: 21603302Author 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/19/08 08:07 PM, ID: 21603331Author 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/19/08 08:11 PM, ID: 21603337Author 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/20/08 06:31 AM, ID: 21605925Expert 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/20/08 06:34 AM, ID: 21605947Author 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/20/08 03:02 PM, ID: 21610756Author 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...
20091111-EE-VQP-92 / EE_QW_2_20070628