开发者

__EVENTARGUMENT is reposted upon next postback

开发者 https://www.devze.com 2023-03-11 06:29 出处:网络
I have some javascript that handles a postback from a listbox like this: __doPostBack(\'&开发者_如何学JAVAlt;%= upCompanieslist.ClientID%>\', \'UpdateLV\');

I have some javascript that handles a postback from a listbox like this:

__doPostBack('&开发者_如何学JAVAlt;%= upCompanieslist.ClientID  %>', 'UpdateLV');

I also have an updatepanel with an AsyncPostBackTrigger tied to its itemcommand event.

    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="lvCompanyList" EventName="ItemCommand" />
    </Triggers>

Once the __doPostBack is fired its set to "UpdateLV". The problem is that it remains "UpdateLV" when the next time the updatepanel is fired. Is there a way to clear the __EventArgument after a post back of any type?


<script type="text/javascript">
    function pageLoad() {
        window.document.getElementById('__EVENTARGUMENT').value = '';
    }
</script>
0

精彩评论

暂无评论...
验证码 换一张
取 消