<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Migrating from ASP.NET 1.x to ASP.NET 2.0</title><link>http://forums.asp.net/180.aspx</link><description>Discuss issues about compatibility with and migration from previous versions of ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3397974.aspx</link><pubDate>Thu, 10 Sep 2009 15:11:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3397974</guid><dc:creator>spankster</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3397974.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3397974</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;sainiamritpal:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;I was pulling my hairs because of this error from last 1 day and could not find the solution, then I tried your code it Works for me ,&lt;/p&gt;
&lt;p&gt;On the same time I created a user on this site to thank you&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;If your directing that thanks at me, you&amp;#39;re most welcome. Im glad I was able to help and hopefuly you have some hair left because of me :)&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3397903.aspx</link><pubDate>Thu, 10 Sep 2009 14:31:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3397903</guid><dc:creator>sainiamritpal</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3397903.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3397903</wfw:commentRss><description>&lt;p&gt;I was pulling my hairs because of this error from last 1 day and could not find the solution, then I tried your code it Works for me ,&lt;/p&gt;
&lt;p&gt;On the same time I created a user on this site to thank you&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3368322.aspx</link><pubDate>Tue, 25 Aug 2009 19:40:11 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3368322</guid><dc:creator>spankster</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3368322.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3368322</wfw:commentRss><description>&lt;p&gt;FWIW I had the same issue and resolved it by getting rid of the asp:Button and handling the code (on submit) w an input button.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I defined the button on my aspx page as such:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;&amp;lt;input class=&amp;quot;NormalButton&amp;quot; id=&amp;quot;Submit1&amp;quot; type=&amp;quot;submit&amp;quot; size=&amp;quot;40&amp;quot; value=&amp;quot;Submit&amp;quot; name=&amp;quot;btnSubmit2&amp;quot; runat=&amp;quot;server&amp;quot; width=&amp;quot;40&amp;quot; height=&amp;quot;19&amp;quot;/&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; Then through my code handled the same calls as I tried w the asp:button:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;    Private Sub Submit1_ServerClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Submit1.ServerClick
        DataCheck()
        If tfValidated &amp;lt;&amp;gt; &amp;quot;False&amp;quot; Then
            FillinStrings()
            &amp;#39;Server.Transfer(&amp;quot;Entry.aspx&amp;quot;)
            btnSubmit.Visible = False
            pnlUpdate.Visible = False
            lblError.Visible = True
            lblError.Text = &amp;quot;Your time has been submitted. Thank you.&amp;quot;
            Submit1.Visible = False
        End If
    End Sub&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; Hope this is a good alternative for the ones that have tried the other alternatives w no success.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3304457.aspx</link><pubDate>Mon, 20 Jul 2009 19:06:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3304457</guid><dc:creator>govcoder</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3304457.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3304457</wfw:commentRss><description>&lt;p&gt;In the process of upgrading a&amp;nbsp;1.1 app to&amp;nbsp;3.5, I ran into this problem.&amp;nbsp; I added the solution using VB.Net, although the suggested solution was in C#.&amp;nbsp; Not hard to convert it over...&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;    Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
        Register(Me)    &amp;#39;the C# equivalent used &amp;quot;this&amp;quot; which is the me equivalent...odd
        Me.Render(writer)

    End Sub

    Private Sub Register(ByVal ctrl As Control)
        Dim c As Control
        For Each c In ctrl.Controls
            Register(c)
            If TypeOf c Is System.Web.UI.WebControls.DropDownList Then

            Else
                Page.ClientScript.RegisterForEventValidation(ctrl.UniqueID)
            End If
        Next


    End Sub&lt;/pre&gt;
&lt;p&gt;Anyway, it didn&amp;#39;t work.&amp;nbsp; I can&amp;nbsp;see where I&amp;#39;ve done anything wrong, though perhaps I have and missed it.&amp;nbsp; Brain fog.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;form I&amp;#39;m working with has several textboxes and 2&amp;nbsp;dropdownlists.&amp;nbsp; What I&amp;#39;m wondering is whether I have to add the values for all items in both dropdownlists to get it to pass validation?&lt;/p&gt;
&lt;p&gt;I also have wondered whether I need to use the PostBackOptions object or the ValidateEvent method before it resolves the problem?&amp;nbsp; Any help is greatly appreciated!&amp;nbsp; I&amp;#39;ve been trying to get&amp;nbsp;over this problem for almost 2 months with little luck.&amp;nbsp;&amp;nbsp;Thanks!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3287198.aspx</link><pubDate>Sat, 11 Jul 2009 06:29:23 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3287198</guid><dc:creator>ravimishra9999</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3287198.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3287198</wfw:commentRss><description>&lt;p&gt;hello......nice solution &lt;/p&gt;&lt;p&gt;my page is running properly....&lt;/p&gt;&lt;p&gt;thanks....&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ravi mishra&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3222019.aspx</link><pubDate>Wed, 10 Jun 2009 06:25:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3222019</guid><dc:creator>cyberowl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3222019.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3222019</wfw:commentRss><description>One other really strange detail. If I&amp;#39;m in the port 80 of the remote machine, everything works, but under port 82 (our developper port) I get this error all the time.</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3220376.aspx</link><pubDate>Tue, 09 Jun 2009 13:40:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3220376</guid><dc:creator>cyberowl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3220376.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3220376</wfw:commentRss><description>I have a dropdownlist with only two elements. On selectedindexchanged the gridview is reloaded.

PROBLEM: one of the element has an accent. The web site is on another computer from the network. 

When I debug in my local computer no error.

When I debug remotely or try to access it in the remote computer and try to select in the dropdownlist the element with an accent, error, saying &amp;quot;Invalid postback or callback argument&amp;quot;.

Strange detail. If the element with an accent is the first selected on page load, fine for the first load. Change to another without accent, everything is fine. Change back to the one used in the page load... error...
Please, any help is welcome. I already lost two days with this sh...</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3213682.aspx</link><pubDate>Fri, 05 Jun 2009 17:16:50 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3213682</guid><dc:creator>Rahul Vats</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3213682.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3213682</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;The Invalid Postback or Callback argument can happen in multiple different scenarios in multiple different cases. However the root reason that I figured out in all cases that remains is the fact that the event that took place happened with a control that had got different ID than when the action was about to be taken. To understand my point consider this example:&lt;/p&gt;&lt;p&gt;I had a Grid on my Page with Delete buttons to delete a particular row in the Grid. Now everytime I click on the Delete Button, even before the action for the event of Delete button took place the GridView was rebinded which results in the change of Contorl ID for the Delete button as for the Grid that was rebinded all the ID&amp;#39;s were different or atleast regenerated than from the one on which I clicked delete button on and hence the result was this error. I tried allmost solutions posted on this page but nothing worked. Than using Firebug I decided to study all the control details because on same page a similar grid with similar logic of delete button functionality was working fine and not the second one. And boom got the solution. Removing the grid.databind() from the place before the action for delete does the trick for me. And than I tried other example that were posted and yeah as I though on most of it the problem was the ID of the control was different at the time was page trying to take the corresponding action against the ID control at the time even took place. So knowing that most of the problem posted on this thread had the solution in the same manner I think almost all the errors that anyone has got can be fixed if they just check that whether the control is getting regenerated anywhere in the code before the corresponding action for their particular event is taken.&lt;/p&gt;&lt;p&gt;Hope People find it correct solution.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3187680.aspx</link><pubDate>Tue, 26 May 2009 10:31:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3187680</guid><dc:creator>vivek.kumar@proteans.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3187680.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3187680</wfw:commentRss><description>Just add this to your web config and make pages..like ErrorPage.aspx , and see you will control this error by making your custom control error.</description></item><item><title>Re: Invalid postback or callback argument(Solution Fixed)</title><link>http://forums.asp.net/thread/3187623.aspx</link><pubDate>Tue, 26 May 2009 10:03:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3187623</guid><dc:creator>vivek.kumar@proteans.com</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3187623.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3187623</wfw:commentRss><description>HI All,

  This issue can be fixed by three ways. the first two methods are common for all.so i am giving third one.

  you can trace this error and you can redirect it to Your Custom error page by the help of webconfig file.

  just you need to place this between 

 


By this if any default error would come ,then this will redirect ErrorPage.aspx&amp;quot;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/3170299.aspx</link><pubDate>Mon, 18 May 2009 15:15:22 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3170299</guid><dc:creator>abz52</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3170299.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=3170299</wfw:commentRss><description>&lt;p class="MsoNormal" style="MARGIN:0pt;"&gt;&lt;font face="Times New Roman" size="3"&gt;What I am curious about is why this problem appeared only when I moved to .Net 3.5, it worked fine on 1.1?&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/2854452.aspx</link><pubDate>Thu, 08 Jan 2009 14:51:14 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2854452</guid><dc:creator>tantanz</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2854452.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=2854452</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Thanx&lt;/strong&gt; man.. This problem was a killer for me..&lt;/p&gt;
&lt;p&gt;I didn&amp;#39;t know that i had to wait for the page to complete loading b4 i can click on anything then.&lt;/p&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/2721210.aspx</link><pubDate>Mon, 03 Nov 2008 15:27:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2721210</guid><dc:creator>david andrews</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2721210.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=2721210</wfw:commentRss><description>&lt;p&gt;ok i&amp;#39;m pretty sure i&amp;#39;ve fixed it now.&lt;/p&gt;
&lt;p&gt;i went to the following link and downlaoded the program &amp;#39;charles&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.charlesproxy.com/"&gt;http://www.charlesproxy.com/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;this allows me to slow down my internet connection to copy a modem connection. this meant that i could then go onto my website, attempt to load up a page and then click or do something before the page had loaded fully. this caused the invalid postback error. &lt;/p&gt;
&lt;p&gt;i could now cause this error on command which means i could debug it properly.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i then added the following code to the page_load event, outside of the check for page.ispostback.i go back to my website again and try to cause the invalid postback error and the code now catches it and outputs a nice messagebox.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;Page.ClientScript.RegisterHiddenField(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;PageLoadedHiddenTxtBox&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; scriptCommand &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;document.getElementById(&amp;#39;PageLoadedHiddenTxtBox&amp;#39;).value =&amp;#39;Set&amp;#39;;&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;font size="2"&gt; preSubmitCommad &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;String&lt;/font&gt;&lt;font size="2"&gt; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;var loaded=document.getElementById(&amp;#39;PageLoadedHiddenTxtBox&amp;#39;).value; if(loaded==&amp;#39;Set&amp;#39;){return true};alert(&amp;#39;please wait for page to completely load before submitting to site.&amp;#39;);return false;&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;Page.ClientScript.RegisterStartupScript(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;font size="2"&gt;.[GetType](), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;onLoad&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, scriptCommand, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;True&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Page.ClientScript.RegisterOnSubmitStatement(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;font size="2"&gt;.[GetType](), &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;OnSubmit&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;, preSubmitCommad)&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/2704137.aspx</link><pubDate>Fri, 24 Oct 2008 10:30:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2704137</guid><dc:creator>david andrews</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2704137.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=2704137</wfw:commentRss><description>&lt;p&gt;the poeple who use my website are getting this invalid postback error as well.&lt;/p&gt;
&lt;p&gt;i also can&amp;#39;t recreate it so can&amp;#39;t do anythign systematically to try and fix it.&lt;/p&gt;
&lt;p&gt;what i have noticed though is that in the pages that have been affected one of the developers has passed a control through as a parameter.&lt;/p&gt;
&lt;p&gt;example: (all code here is on the same form)&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;Protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; ddlSearchTeam_SelectedIndexChanged(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.EventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font size="2"&gt; ddlSearchTeam.SelectedIndexChanged&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font size="2"&gt;Load_TOUsers(ddlTOUsers) &lt;font color="#008000" size="2"&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;&amp;#39;the above is&amp;nbsp;a call to a sub. it is passing in ddlTOUsers which is a dropdownlist on the form itself&lt;/p&gt;&lt;font color="#0000ff"&gt;End Sub&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; Load_TOUsers(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; ddl &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; DropDownList)&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#008000" size="2"&gt;
&lt;p&gt;&amp;#39;the above is the sub that is being called. it does some code and fills ddl with names of people. ddl is a direct copy of the control on the form. this sub runs on page load, and and a selection of another drop down list box.&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff"&gt;End Sub&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;
&lt;p&gt;&lt;font size="2"&gt;now my question is: is it the fact that it is &amp;quot;ByVal&amp;quot; in the private sub that could be causing a problem? because its basically creating a direct copy of the ddlTOUsers control at its current state.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;if it was changed to &amp;quot;ByRef&amp;quot; i&amp;#39;m wondering if it will fix it. i&amp;#39;m putting this out here becuase, as i say i cant recreate the problem so dont know if its a fix or not.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;cheers&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Re: Invalid postback or callback argument.</title><link>http://forums.asp.net/thread/2681224.aspx</link><pubDate>Tue, 14 Oct 2008 09:41:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2681224</guid><dc:creator>robypang</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2681224.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=180&amp;PostID=2681224</wfw:commentRss><description>&lt;p&gt;I would like to ask the following:&lt;/p&gt;
&lt;p&gt;my code sameple:&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;
&lt;p&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;form1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;hidden&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;txtEnableActiveX&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;txtEnableActiveX&amp;quot;/&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;if&lt;/font&gt;&lt;font size="2"&gt; (&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; == document.all[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;txtEnableActiveX&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;].value)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;__doPostBack(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;btnSetCookies&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;,&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;#39;&amp;#39;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;script&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;div&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;input&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;type&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;button&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;runat&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;server&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;id&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;btnSetCookies&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;width&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;1&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#ff0000" size="2"&gt;name&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;=&amp;quot;btnSetCookies&amp;quot;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;/&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;div&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;form&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt; 
&lt;p&gt;&amp;lt;/&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;body&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Protected&lt;/font&gt;&lt;font color="#000000" size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font color="#000000" size="2"&gt; Page_Load(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font color="#000000" size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font color="#000000" size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font color="#000000" size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font color="#000000" size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font color="#000000" size="2"&gt; System.EventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font color="#000000" size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Me&lt;/font&gt;&lt;font size="2"&gt;&lt;font color="#000000"&gt;.Load&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Private&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; btnSetCookies_ServerClick(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; sender &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Object&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; e &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.EventArgs) &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Handles&lt;/font&gt;&lt;font size="2"&gt; btnSetCookies.ServerClick&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Protected&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Overrides&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;font size="2"&gt; Render(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;ByVal&lt;/font&gt;&lt;font size="2"&gt; writer &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;font size="2"&gt; System.Web.UI.HtmlTextWriter)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;Page.ClientScript.RegisterForEventValidation(btnSetCookies.UniqueID, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;MyBase&lt;/font&gt;&lt;font size="2"&gt;.Render(writer)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;End&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;Sub&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;I go the error also, I would not like to set&amp;nbsp;&lt;em&gt;&lt;font color="#ff0000"&gt;EnableEventValidation=&amp;quot;false&amp;quot;&lt;/font&gt;&lt;/em&gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;is there anyone can help me to solve the problem?&lt;/p&gt;&lt;/font&gt;</description></item></channel></rss>