未捕获的系统. ArgumentException [英] Uncaught Sys. ArgumentException

查看:95
本文介绍了未捕获的系统. ArgumentException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我在VS 2010上使用VB.NET进行操作,运行此页面时遇到问题.加载后,它不会执行任何代码隐藏代码.我检查了Chrome的控制台,它显示了下一条错误消息:


< img src ="https://sites.google.com/site/t3st0t3st0/_/rsrc/1304012561598/home/err1.png"/>

我在righclick上找到了chrome带来的源代码,检查了第226行,发现了这一点:


< img src ="https://sites.google.com/site/t3st0t3st0/_/rsrc/1304012919707/home/err2.png"/>


这是我在aspx中编写的源代码.我删除并创建了此页面很多次,并注意到在添加了updatepanel,scriptmanager,updateprogress并在浏览器中运行该页面后,出现了问题.

在此先感谢您的帮助,对于我的英语和编码,我们深表歉意.

Hello
Im working with VB.NET on VS 2010 and I got a problem when this page run. After loading it does not execute any codebehind code. I check the Chrome''s console and it gives me the next error message:


<img src="https://sites.google.com/site/t3st0t3st0/_/rsrc/1304012561598/home/err1.png"/>

I went to the source code bringed by chrome at righclick and checked the line 226 and found this:


<img src="https://sites.google.com/site/t3st0t3st0/_/rsrc/1304012919707/home/err2.png"/>


This is the sourcecode that I wrote in the aspx. I deleted and created this page many times and noted that the problem shows up after the updatepanel, scriptmanager, updateprogress are added and I run the page in a browser.

Thanks in advance for the help and sorry for my english and my coding.

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Agenda.aspx.vb" Inherits="TribunalElectronico.Agenda" Culture="es-MX" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="estilos.css" rel="stylesheet" type="text/css" />
    <link href="estilos_dock.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="js/interface.js"></script>
    <link href="../Acceso/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="../Acceso/jquery-ui.min.js" type="text/javascript"></script>
    <script src="../Acceso/jquery.ui.datepicker-es.js" type="text/javascript"></script>
    <script src="../Acceso/jquery.ui.core.js" type="text/javascript"></script>

</head>
<body>
   <script type="text/javascript">
       jQuery(document).ready(
        function () { $('#dock').Fisheye({ maxWidth: 40, items: 'a', itemsText: 'span', container: '.dock-container', itemWidth: 50, proximity: 90, halign: 'center' }) }
        );
    </script>
    <script language="javascript" type="text/javascript">
        $(function () {
            jQuery("#datepicker").datepicker({ minDate: 0 });
            $("#datepicker").datepicker(jQuery.datepicker.regional['es']);
            $("#rdbVencimiento").attr("checked", false);
            $("#rdbFecha").attr("checked", false);
        });
    </script>
    <script language="javascript" type="text/javascript">
        jQuery(document).ready(function () {
            jQuery("#btnBuscar").hide();
            jQuery("#datepicker").hide();
            jQuery("#cmbVencimiento").hide();
        }
        );
        </script>
        <script language="javascript" type="text/javascript">
            function hide() {
                jQuery("#btnBuscar").hide();
                jQuery("#datepicker").hide();
                jQuery("#cmbVencimiento").hide();
            }
            </script>
        <script language="javascript" type="text/javascript">
            function Pulso() {
                jQuery("#aaddevent").hide();
                jQuery("#aaddevent").fadeIn(500);
            }
        </script>
        <script language="javascript" type="text/javascript">
            function comportamiento(opcion) {

                if (opcion == 1) {
                    jQuery("#rdbFecha").attr("checked", false);
                    hide();
                    jQuery("#cmbVencimiento").fadeIn("slow");
                    jQuery("#btnBuscar").fadeIn("slow");
                }
                else
                    if (opcion == 2) {
                        jQuery("#rdbVencimiento").attr("checked", false);
                        hide();
                        jQuery("#datepicker").fadeIn("slow");
                        jQuery("#btnBuscar").fadeIn("slow");
                    }
            }

            function Busqueda() {
                if (jQuery("#rdbFecha").attr("checked") == true && jQuery("#rdbVencimiento").attr("checked") == false) {
                    if (jQuery("#datepicker").val() != "")
                    { return true; }
                    else {
                        alert("Introduzca una fecha válida");
                        return false;
                    }
                }

                else if (jQuery("#rdbFecha").attr("checked") == false && jQuery("#rdbVencimiento").attr("checked") == true) {
                    if (jQuery("#cmbVencimiento").val() == "1" || jQuery("#cmbVencimiento").val() == "2" || jQuery("#cmbVencimiento").val() == "3" || jQuery("#cmbVencimiento").val() == "4") {
                        return true;
                    }
                    else {
                        alert("Seleccione un tipo de vencimiento");
                        return false;
                    }
                }

                else {
                    if (jQuery("#rdbFecha").attr("checked") == true && jQuery("#rdbVencimiento").attr("checked") == true) {
                        alert("Favor de seleccionar un solo tipo de búsqueda");
                        return false;
                    }
                }
            }

            function dontwrite(e) {
                return false;
            }

            function AgregarEvento() {
                window.location.href = "";
            }


    </script>
    <script type="text/javascript" language="javascript" src="AccesoControlado.js" />
    <form id="form1" runat="server">
    <div>
    <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td><img src="img/ee_head1.png"  width="800" height="54" /></td>
            </tr>
        </table>
        <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="542" height="64"><img src="img/ee_head2.png" width="542" height="64" /></td>
                <td width="186" height="64" background="img/ee_head3.png" valign="top"><br />
                <asp:Label ID="lblBienvenido" runat="server" Text="Bienvenido "></asp:Label>
                <asp:Label ID="lblNombre" runat="server" Text="Label"></asp:Label>
                    <br /></td>
                <td width="72" height="64"><img src="img/ee_head4.png" width="72" height="64" /></td>
            </tr>
        </table>
        <table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="800" height="10"><img src="img/ee_head5.png" width="800" height="10" /></td>
            </tr>
        </table>

        <table width="820" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="810" height="50">
                    <div class="dock" id="dock">
                        <div class="dock-container">
                            <a class="dock-item" href="Bandeja.aspx"><img src="images/inicio.png" alt="home" /><span>Inicio</span></a>
                            <a class="dock-item" href="ExpedientesAutorizados.aspx"><img src="images/expedientes.png" alt="contact" /><span>Mis Expedientes</span></a>
                            <a class="dock-item" href="AltaExpedientes.aspx"><img src="images/expedientes_alta.png" alt="portfolio" /><span>Alta de Expedientes</span></a>
                            <a class="dock-item" href="BandejaNPE.aspx"><img src="images/notificaciones.png" alt="music" /><span>Notificaciones Electrónicas</span></a>
                            <a class="dock-item" href="Promociones.aspx"><img src="images/promociones.png" alt="video" /><span>Promociones Electrónicas</span></a>
                            <a class="dock-item" href="#"><img src="images/quejas.png" alt="history" /><span>Quejas y/o Sugerencias</span></a>
                            <a class="dock-item" href="#"><img src="images/ayuda.png" alt="calendar" /><span>Ayuda</span></a>
                            <a class="dock-item" href="#"><img src="images/cambiar_pass.png" alt="rss" /><span>Cambiar Contrasena</span></a>
                        </div>
                        <span id="dock"></span>
                    </div>
                </td>
            </tr>
        </table>
        <!-------------------------------------cuerpo--------------------------------------------------------------------->
        <table width="800px" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td width="100px" height="50">
                    <a id="aaddevent" href="#" onmouseover="javascript:Pulso();" onclick="javascript:AgregarEvento();"><img src="images/addevent.png" alt="Agregar Evento" id="imgaddevent" /></a>
                </td>
                <td width="100px">
                    <img src="images/rotulo.png" id="imgrotulos" alt="imgplazos" />
                </td>
                <td width="600px"></td>
            </tr>
        </table>
        <table width="800px" border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td align="left">

                    <asp:RadioButton ID="rdbVencimiento" runat="server" Text="Estado" onclick="comportamiento(1);" />
                    <asp:RadioButton ID="rdbFecha" runat="server" Text="Fecha" onclick="comportamiento(2);" />
                    &nbsp;
                    <asp:DropDownList ID="cmbVencimiento" runat="server">
                        <asp:ListItem Value="0">Seleccione</asp:ListItem>
                        <asp:ListItem Value="1">Normal</asp:ListItem>
                        <asp:ListItem Value="2">Alerta</asp:ListItem>
                        <asp:ListItem Value="3">Vencido</asp:ListItem>
                        <asp:ListItem Value="4">Realizado</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="datepicker" runat="server" onKeyPress="javascript:return dontwrite();"></asp:TextBox>

                </td>
            </tr>
            <tr>
                <td>

                    <asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                        <ProgressTemplate>
                            <asp:Image ID="Image1" runat="server" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <ContentTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <table align="left"><tr><td>
                                            <asp:Button ID="btnBuscar" runat="server" Text="Buscar" align="left" OnClientClick="javascript:return Busqueda()" /><br /></td></tr></table><br />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <table align="center" width="800px">
                                            <tr>
                                                <td align="center">
                                                    <h3><asp:Label ID="lblLeyenda" runat="server" Text="Label"></asp:Label></h3>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="center">
                                                    <asp:Table ID="lblAgenda" runat="server" Width="800px" CssClass="tabla_contenido"></asp:Table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
        </table>
        <!-------------------------------------/cuerpo--------------------------------------------------------------------->
    </div>
    </form>
</body>
</html>

推荐答案

('#dock').Fisheye({ maxWidth: 40, items: 'a', itemsText: 'span', container: '.dock-container', itemWidth: 50, proximity: 90, halign: 'center' }) } ); < / 脚本 > <script language="javascript" type="text/javascript">
('#dock').Fisheye({ maxWidth: 40, items: 'a', itemsText: 'span', container: '.dock-container', itemWidth: 50, proximity: 90, halign: 'center' }) } ); </script> <script language="javascript" type="text/javascript">


(function () { jQuery("#datepicker").datepicker({ minDate: 0 });
(function () { jQuery("#datepicker").datepicker({ minDate: 0 });


("#datepicker").datepicker(jQuery.datepicker.regional['es']);
("#datepicker").datepicker(jQuery.datepicker.regional['es']);


这篇关于未捕获的系统. ArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆