an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > Our server detected that you made a bad page po...
Last Post 5/27/2010 8:12:54 AM By bansal_db. 2 replies.
5/26/2010 1:41:56 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Our server detected that you made a bad page postback.
hey Luke,
 
I created two cascading dropdownlists. They are loading fine but when i try to post back to the page i get this error page. I am straight away pushed to this page. It doesn't try to do anything. Any ideas?
 

Our server detected that you made a bad page postback.

It's possible that your form contained bad characters, which are considered maliciouse to our server. Please fix your form and submit it again.

 

Any ideas?

 

Here is the code for the dropdown lists

 

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


<table border="0" cellpadding="2" cellspacing="0" width="500">
    <tr>
        <td width="100">
            <b>Select Category :</b></td>
        <td>
            <asp:DropDownList ID="ddlCSRs" runat="server">
            </asp:DropDownList>
            <ajaxc:CascadingDropDown
           
            ID="CascadingDropDown1"
            runat="server"
            Category="category"
            TargetControlID="ddlCSRs"
            PromptText="[Select CSR]"
            ServicePath="cascadingdataservice.asmx"
            ServiceMethod="GetDropDownCSRs">
            </ajaxc:CascadingDropDown>
           
        </td>
    </tr>
    <tr>
        <td>
            <b>Select Product :</b></td>
        <td>
            <asp:DropDownList ID="ddlAEs" runat="server" OnSelectedIndexChanged="btnSearch_Click" AutoPostBack ="true">
            </asp:DropDownList>
            <ajaxc:CascadingDropDown ID="CascadingDropDown2" runat="server"
            Category="product"
            TargetControlID="ddlAEs"
            ParentControlID="ddlCSRs"
            PromptText="[Select AE]"
            LoadingText="Loading AEs..."
            ServicePath="cascadingdataservice.asmx"
            ServiceMethod="GetDropDownAEs">
           </ajaxc:CascadingDropDown>
           
        </td>
    </tr>
   
</table>
</asp:Content>

 

Code Behind


protected void btnSearch_Click(object sender, EventArgs e)
    {

    }

 

Thanks

-D

5/26/2010 1:47:27 PM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Our server detected that you made a bad page postback.
I am using the Admin Master File
 
<%@ Page Language="C#" MasterPageFile="/Admin.master" AutoEventWireup="true" CodeFile="test.aspx.cs" Inherits="Admin_CRM_test" %>
5/27/2010 8:12:54 AM
bansal_db
Posts: 181
Joined: 4/13/2009
Re: Our server detected that you made a bad page postback.
Never mind....i had to disable the EnableEventValidation on the page header....its working now.....