Showing posts with label arguement. Show all posts
Showing posts with label arguement. Show all posts

Saturday, March 24, 2012

Invalid Arguement in AutoComplete Extender

Hi,

I was playing with the autoextender complete functionality and when i start using the backspace the list width starts shriking...if this is done for couple of times.(around 10 times) in my case this list becomes a thin line and then autocomplete exenteder throws "Invalid Arguement Error"

Can someone tell me how to fix this error.

Regards,
Vishwanath

I testedasp:AutoCompleteExtender?with?Ajax?Futures?Dec?CTPin?my?PC?and?found it?worked?fine.
Here?are?some?sample?codes?for?your?reference.
<div>
<asp:UpdatePanel ID="upnlCallWebService" runat="server">
<ContentTemplate>
<asp:TextBox runat="server" ID="txtClientName" MaxLength="50" Columns="50"></asp:TextBox>
<asp:AutoCompleteExtender ID="AutoCompleteExtenderClent" ServicePath="~/Web Services/WebService.asmx"
ServiceMethod="HelloWorld" MinimumPrefixLength="1" TargetControlID="txtClientName" runat="server">
</asp:AutoCompleteExtender>
<asp:Button ID="btnCallWebService" runat="server" Text="Call WebService" OnClick="btnCallWebService_Click" />
<asp:Label ID="lblWebService" runat="server" Text="Web Service"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnCallWebService" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
Can you post some codes here if you have the exception message"Invalid Arguement Error" ?
Wish the sample codes can help you.

Invalid postback or callback arguement?

Hey, i have a page with a gridview in an update panel, which has a triggered by the user clicking button1, the gridview has a row_command that deletes the data in the gridview, the code worked fine before i added the update panel, but now i tested my page again, i clicked button1, and then tryed to delete the new item in the gridview.

I got the error message "Event validation is enabled using <pages enableEventValidation="true"/> in the config or in the page head.

My page head bit reads :

<%@dotnet.itags.org. Page Language="C#" MasterPageFile="MasterPage.master" EnableEventValidation="true" AutoEventWireup="true" Inherits="Masters_Default2" Title="Untitled Page" %>

But i still get the error,... where am i going wrong? thanks Si!

Have a look at this blog:http://blogs.msdn.com/amitsh/archive/2007/07/31/why-i-get-invalid-postback-or-callback-argument-errors.aspx

-Damien


Make it false and then try...

Let me know what happend