funciona nos navegadores "Chrome" e "Firefox"
mas no IE nao entra no "protected void ImageUp_Click(object sender, EventArgs e)"
ja coloquei um breakpoint para verificar se entrava no evento mas nao entra...
alguem sabe o que pode estar causando esse bug no IE ?
IE8
HTML
C#
HTML COMPLETO
mas no IE nao entra no "protected void ImageUp_Click(object sender, EventArgs e)"
ja coloquei um breakpoint para verificar se entrava no evento mas nao entra...
alguem sabe o que pode estar causando esse bug no IE ?
IE8
HTML
Código:
<div class="span12">
<asp:Button ID="ImageUp" CssClass="btn btn-info" runat="server" Text="Adicionar"
OnClick="ImageUp_Click" />
</div>
Código:
protected void ImageUp_Click(object sender, EventArgs e)
{
bool Inserida = ImageInsert();
if (Inserida)
{
ImageLibraryUpdate();
}
}
HTML COMPLETO
Código:
<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="Default.aspx.cs"
Inherits="_Default" %>
<!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>iVirtua - Manual</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[.if.lt.IE.9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-146052-10']);
_gaq.push(['_trackPageview']);
(function () {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- TinyMCE -->
<script type="text/javascript" src="js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
// General options
mode: "textareas",
theme: "advanced",
plugins: "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
// Theme options
theme_advanced_buttons1: "newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull",
theme_advanced_buttons2: "cut,copy,paste,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo",
theme_advanced_buttons3: "code,|,preview,|,forecolor,backcolor,|,link,unlink,image",
// theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
// theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_resizing: true,
// Example content CSS (should be your site CSS)
content_css: "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url: "lists/template_list.js",
external_link_list_url: "lists/link_list.js",
external_image_list_url: "lists/image_list.js",
media_external_list_url: "lists/media_list.js",
// Style formats
style_formats: [
{ title: 'Bold text', inline: 'b' },
{ title: 'Red text', inline: 'span', styles: { color: '#ff0000'} },
{ title: 'Red header', block: 'h1', styles: { color: '#ff0000'} },
{ title: 'Example 1', inline: 'span', classes: 'example1' },
{ title: 'Example 2', inline: 'span', classes: 'example2' },
{ title: 'Table styles' },
{ title: 'Table row 1', selector: 'tr', classes: 'tablerow1' }
],
formats: {
alignleft: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'left' },
aligncenter: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'center' },
alignright: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'right' },
alignfull: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'full' },
bold: { inline: 'span', 'classes': 'bold' },
italic: { inline: 'span', 'classes': 'italic' },
underline: { inline: 'span', 'classes': 'underline', exact: true },
strikethrough: { inline: 'del' }
},
// Replace values for the template plugin
template_replace_values: {
username: "Some User",
staffid: "991234"
}
});
</script>
<script src="Scripts/jquery-1.4.1.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$("#DivImagens img").click(ObterTexto);
$("#DivImagens input[type=checkbox]").click(ObterNome);
});
function ObterTexto() {
tinyMCE.triggerSave(true, true);
html = $("#descricao").val() + "<img src='" + $(this).attr("src") + "'>";
tinyMCE.activeEditor.setContent(html);
tinyMCE.triggerSave();
}
function ObterNome() {
$('#DivImagens input[type=checkbox]').each(function () {
temp = "";
if (this.checked) {
temp = temp + $(this).attr("name");
jQuery("#listadeletar").val($("#listadeletar").val() + "[" + temp + "]");
}
});
//jQuery("#listadeletar").val($("#listadeletar").val() +"["+ $(this).attr("name")+"]");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar">
</span>
</button>
<a class="brand" href="./index.html">iVirtua</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class=""><a href="http://www.ivirtuagroup.com.br/Company.aspx">iVirtua Group</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav nav-tabs nav-stacked" style="margin-top: 60px;">
<li><a href="Default.aspx">Novo Tópico</a></li>
<asp:Literal ID="sidebar" runat="server"></asp:Literal>
</ul>
</div>
<div class="span6">
<%--<ul class="breadcrumb">
<li><a href="#">Início</a> <span class="divider">/</span></li>
<asp:Literal ID="mapa" runat="server"></asp:Literal>
<li class="active">Dados</li>
</ul>--%>
<form action="">
<legend>Inserir informações</legend>
<div>
<div style="float: right">
Visível
<asp:CheckBox ID="CheckBox1" runat="server" />
</div>
<label class="control-label" for="pai">
Pai
</label>
</div>
<div class="controls">
<asp:DropDownList ID="pai" AppendDataBoundItems="true" runat="server" CssClass="dropdown"
Width="100%">
<asp:ListItem> </asp:ListItem>
</asp:DropDownList>
</div>
<label class="control-label" for="Titulo">
Título
</label>
<div class="controls">
<input type="text" id="titulo" runat="server" placeholder="Título" style="width: 98%">
</div>
<label class="control-label" for="subtitulo">
Subtítulo
</label>
<div class="controls">
<input type="text" id="subtitulo" runat="server" placeholder="Subtítulo" style="width: 98%">
</div>
<textarea name="descricao" cols="60" id="descricao" runat="server" rows="50" style="height: 535px;
width: 100%;"></textarea><br />
<asp:Button ID="adicionar" CssClass="btn btn-info" runat="server" Text="Adicionar"
OnClick="adicionar_Click" />
<asp:Button ID="remover" CssClass="btn btn-danger" runat="server" Text="Remover"
OnClick="Remover_Click" />
</form>
</div>
<div class="span3">
<legend>Biblioteca de imagens </legend>
<div class="row-fluid">
<p style="font-family: Arial; font-size: medium; color: Gray; font-style: oblique;">
Inserir imagens</p>
<asp:FileUpload ID="FileUpload1" runat="server" />
</div>
<br />
<div class="row-fluid">
<div class="span4">
<p style="font-family: Arial; font-size: medium; color: Gray; font-style: oblique;">
Categoria</p>
</div>
<div class="span7">
<asp:DropDownList ID="DropDownImg" AppendDataBoundItems="true" runat="server" CssClass="dropdown"
Width="100%">
<asp:ListItem> </asp:ListItem>
</asp:DropDownList>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<asp:Literal ID="upLiteral" runat="server"></asp:Literal>
</div>
</div>
<div class="row-fluid">
<div class="span12">
<asp:Button ID="ImageUp" CssClass="btn btn-info" runat="server" Text="Adicionar"
OnClick="ImageUp_Click" />
</div>
<legend>Biblioteca da categoria</legend>
</div>
<div id="DivImagens" style="height: 500px; overflow: auto;">
<asp:Literal ID="bibliotecaImagem" runat="server"></asp:Literal>
</div>
<div class="span3" style="margin-top: 20px">
<asp:Button ID="ImageRemove" CssClass="btn" runat="server" Text="Remover Selecionados"
OnClick="ImageRemove_Click" />
<input type="hidden" id="listadeletar" runat="server" placeholder="Subtítulo" style="width: 98%;" display:none />
</div>
</div>
</div>
</div>
<!-- javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<%--<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>--%>
<script src="js/jquery.js"></script>
<script src="js/bootstrap-transition.js"></script>
<script src="js/bootstrap-alert.js"></script>
<script src="js/bootstrap-modal.js"></script>
<script src="js/bootstrap-dropdown.js"></script>
<script src="js/bootstrap-scrollspy.js"></script>
<script src="js/bootstrap-tab.js"></script>
<script src="js/bootstrap-tooltip.js"></script>
<script src="js/bootstrap-popover.js"></script>
<script src="js/bootstrap-button.js"></script>
<script src="js/bootstrap-collapse.js"></script>
<script src="js/bootstrap-carousel.js"></script>
<script src="js/bootstrap-typeahead.js"></script>
<script src="js/bootstrap-affix.js"></script>
<script src="js/application.js"></script>
<!-- Analytics
================================================== -->
<script>
var _gauges = _gauges || [];
(function () {
var t = document.createElement('script');
t.type = 'text/javascript';
t.async = true;
t.id = 'gauges-tracker';
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
t.src = '//secure.gaug.es/track.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(t, s);
})();
</script>
</form>
</body>
</html>