Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia...
galera, é o seguinte...
estou tentando executar um modal nesta página, mas ele não está funcionando de jeito nenhum. o erro que está dando é o seguinte..
"Não é possível converter um objeto do tipo 'Microsoft.Web.Configuration.ScriptingProfileServiceSection' no tipo 'System.Web.Configuration.ScriptingProfileServiceSection'."
alguém já viu este erro? procurei algumas referencias na net mas nao achei nada
página com o scriptmanager e o modal
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoginTeste.aspx.cs" Inherits="Gerenciador_LoginTeste" %>
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Namespace="System.Web.UI" TagPrefix="ajax" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!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">](http://www.w3.org/1999/xhtml)
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<meta name="robots" content="index,nofollow" />
<title>Nome do Cliente</title>
<link rel="stylesheet" type="text/css" href="css/global_snap.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/global_snap_ie.css"><script type="text/javascript" language="JavaScript" src="inc/inc_funcoes.js"></script>
<script type="text/javascript" language="javascript">
function funVerificaForm()
{
var lTxtUsuario = document.getElementById("txtUsuario");
var lTxtSenha = document.getElementById("txtSenha");
var lLblFalha = document.getElementById("lblLoginFalha");
if (lTxtUsuario.value=='')
{
lLblFalha.innerHTML= '<%= funTraduzir("Por favor, digite seu login") %>';
lLblFalha.style.color = 'red';
lTxtUsuario.focus();
return false;
}
else if (lTxtSenha.value=='')
{
lLblFalha.innerHTML = '<%= funTraduzir("Por favor, digite sua senha") %>';
lLblFalha.style.color = 'red';
lTxtSenha.focus();
return false;
}
return true;
}
function subTratarEvento(e)
{
var lIntKey;
var lChrKey;
if(window.event)
{
lIntKey = e.keyCode
}
else if(e.which)
{
lIntKey = e.which
}
if ((lIntKey == 13) || (lIntKey == 10))
{
if (funVerificaForm())
{
}
return false;
}
else
{
return true;
}
}
</script>
</head>
<body onload="javascript:document.getElementById('txtUsuario').focus();" class="login">
<form id=form1 runat="server" action="" method="get">
<div class="loginCentro">
<div class="loginTopo"></div>
<div class="loginBg">
<table border="0" cellspacing="0" cellpadding="0" class="tabBoxLogin">
<tr>
<td align="center" class="tdLogin">
<asp:TextBox ID="txtUsuario" runat="server" TabIndex="1"></asp:TextBox></td>
</tr>
<tr>
<td align="center" class="tdSenha"><div class="esqueci">
<asp:HyperLink ID="linkSenha" runat="server" Width="107px">Esqueci minha senha</asp:HyperLink></div>
<asp:TextBox ID="txtSenha" runat="server" TextMode="Password" TabIndex="2"></asp:TextBox></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" class="tabBoxLoginBotoes">
<tr>
<td colspan="2" style="width: 120px; height: 28px">
<asp:CheckBox ID="cbSenha" runat="server" CssClass="checkradio" Text="Permanecer logado "
TextAlign="Left" Width="117px" TabIndex="3" /></td>
<td style="height: 28px">
<asp:Button ID="btnEntrar" runat="server" CssClass="btEnvia" OnClick="btnEntrar_Click" TabIndex="4" /></td>
</tr>
</table>
<div class="erroForm">
<asp:Label ID="lblLoginFalha" runat="server" Visible="False"></asp:Label> </div>
</div>
<div class="loginBgBase">
<div class="clear"></div>
</div>
</div>
<br />
<ajax:ScriptManager ID="ScriptManager1" runat="server">
</ajax:ScriptManager>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
TargetControlID="linkSenha"
PopupControlID="Panel1">
</cc1:ModalPopupExtender>
<div id="divmodal" style="display:block;">
<asp:Panel ID="pEsqSenha" runat="server" Height="233px" Width="547px" CssClass="panel1">
<br />
<asp:Panel ID="Panel2" runat="server" Height="80px" Width="340px" BackColor="Gainsboro" CssClass="panel2">
<table border="0" style="width: 335px; height: 67px;">
<tr>
<td style="width: 119px; height: 26px">
<asp:Label ID="Label1" runat="server" Text="Digite o seu e-mail :" CssClass="checkradio"></asp:Label></td>
<td style="width: 97px; height: 26px">
<asp:TextBox ID="tbMail" runat="server" Width="176px" Height="20px"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2" style="height: 26px">
<asp:Button ID="Button2" runat="server" Text="Enviar" Height="23px" Width="48px" /></td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</div>
</form>
</body>
</html>Carregando comentários...