Ir para conteúdo
Fórum Script Brasil

devhtml

Membros
  • Total de itens

    10
  • Registro em

  • Última visita

Tudo que devhtml postou

  1. Bom dia pessoal! Estou com um problema recorrente... Toda vez que adiciono alguma alteração em algum arquivo Javascript do sistema, ou alguma nova alteração... os usuários que utilizam o navegador Chrome ( sempre última versão ), tem problemas, não carrega corretamente... precisam limpar o cache, sendo que no Firefox e IE isso é automátiocp para elas... mas infeizmente alguns usam somente chrome... COmo reverter isso? Alguma configuração especial? e estas pessoas não querem perder dados de histórico, etc... Muito Obrigada.
  2. Olá! Gente, alguém poderia me ajudar a criar uma página + master Page, que rode igual no IE 8, 9... e no firefox... 1) menu na master page fixo e rodapé tb é fixo 2) COnteúdo vai aumentar de acordo com o tamanho da tela, sendo que este conteúdo ( página ), terá uma tabela com a primeira linha fixa, e a outra 100% height. Muito Obrigada. Resumo de como ficaria visualmente: Menu fixo no topo, logo abaixo uma linha da tabela fixa, abaixo da linha da tabela fixa, uma linha que vai aumentar de acordo com o tamanho da tela,e um rodapé sempre visivel de tamanho fixo.
  3. devhtml

    problemas com "DOCTYPE"

    Olá! Primeiramente obrigada pela atenção, mas continua não funcionando como esperado, ou seja, a tabela ficar 100% de altura, como fica quando removo o DocType. Alguma idéia? Se eu colocar: <style type="text/css"> html, body {height:100%; margin:0; padding:0;} </style> Tb não fica igual o resultado no Firefox 3..6.15 e IE8/9. Péssimo!! No Firefox fica PERFEITO e no IE não ! NO IE aparece um scroll vertical que na verdade é o tamanho da primeira linha que fixei a altura para 70px. Como deixar a página igual nos 2 browsers? <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="teste.aspx.cs" Inherits="WebApplication1.teste" %> <!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> <title>New Page 1</title> </head> <body> <table border="1" cellspacing="0" cellpadding="0" style="width: 100%; height: 100%"> <tr> <td style="width: 100%; height: 70px" bgcolor="#00FF00" >&nbsp;</td> </tr> <tr> <td style="width: 100%; height: 100%" bgcolor="#FF00FF"> <table border="1" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%"> <tr> <td style="width: 100%; height: 100%" bgcolor="#0000FF">&nbsp;</td> </tr> </table> </td> </tr> </table> </body> </html>
  4. Olá pessoal! Tenho um código hiper simples e básico para mostrar uma tabela e em uma linha outra tabela, 100% de altura. Tinha esta página feita no FrontPage... e estava Ok! E ao gerar pelo Visual Studio, e rodar, percebi que não funcionava nem no IE8 nem no Firefox... Ai resolvi comentar a linha: <%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">--%> e funcionou. Agora, como fazer funcionar no Visual Studio mesmo com esta linha que é adicionada por default ao criar uma WebForm.aspx? <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="teste.aspx.cs" Inherits="WebApplication1.teste" %> <html> <head> <title>New Page 1</title> </head> <body> <table border="1" cellspacing="0" cellpadding="0" style="width: 100%; height: 100%"> <tr> <td bgcolor="#00FF00" style="width: 100%; height: 74px">&nbsp;</td> </tr> <tr> <td style="width: 100%; height: 100%" bgcolor="#FF00FF"> <table border="1" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%"> <tr> <td width="100%" bgcolor="#0000FF">&nbsp;</td> </tr> </table> </td> </tr> </table> </body> </html>
  5. Olá pessoal! Gostaria de uma ajuda: 1) tenho uma página WebForm4 100% correta, onde ela é ajustada ao tamanho da tela, veja código: %@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication1.WebForm4" %> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <style type="text/css"> html, body { height: 100%; margin: 0; padding: 0; } </style> </head> <body bgcolor="Black"> <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%" > <tr> <!--Space--> <td width="20">&nbsp;</td> <!--Menu left image--> <td align="right" >&nbsp;</td> <!--Menu center image #055483--> <td align="left"> <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%"> <tr style="height: 10px"> <td width="50" height="30"></td> <td align="right" bgcolor="#127DAB" style="background-image: url('../Images/Left.png'); background-repeat: no-repeat; height: 30px; width: 5px;">&nbsp;</td> <td align="right" bgcolor="#127DAB" style="background-image: url('../Images/center.png'); background-repeat: repeat-x; height: 30px; width: 100%;">&nbsp;</td> <td align="left" bgcolor="#127DAB" style="background-image: url('../Images/Right.png'); background-repeat: no-repeat; height: 30px; width: 5px;">&nbsp;</td> <td width="50" height="30"></td> </tr> <tr style="height: 10px"> <td width="50" height="30"></td> <td width="5" height="30" align="center" bgcolor="#127DAB" >&nbsp;</td> <td width="100" height="30" bgcolor="#127DAB"></td> <td width="5" height="30" align="center" bgcolor="#127DAB" >&nbsp;</td> <td width="50" height="30"></td> </tr> <tr> <td width="50" height="30"></td> <td width="5" height="30" align="center" bgcolor="#127DAB">&nbsp;</td> <td width="100" height="30" bgcolor="#127DAB"></td> <td width="5" height="30" align="center" bgcolor="#127DAB">&nbsp;</td> <td width="50" height="30"></td> </tr> </table> </td> <!--Menu right image--> <td align="left" >&nbsp;</td> <!--Space--> <td width="20">&nbsp;</td> </tr> <tr> <td colspan="5"></td> </tr> </table> </body> </html> 2) Porém, precisei colocá-la em masterPage, veja código da Master Page, simples, só com um menu: <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="WebApplication1.Site1" %> <!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> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> <style type="text/css"> .style1 { width: 100%; } </style> </head> <body bgcolor="#99ff99"> <form id="form1" runat="server"> <div> <table cellspacing="1" class="style1"> <tr> <td>Esta é a master Page, topo!!</td> </tr> </table> <br /> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html> 3) Colocando a WebForm4 dentro da Master page, a tabela não fica mais 100 de altura. Como fazer isso, já que tinha um código dentro da WebForm4 e que para colocá-la dentro de uma master, precisou ser removido. Veja código WebForm4 como ficou: <%@ Page Language="C#" MasterPageFile="/Site1.master" AutoEventWireup="true" CodeBehind="WebForm4.aspx.cs" Inherits="WebApplication1.WebForm4" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%" > <tr> <!--Space--> <td width="20">&nbsp;</td> <!--Menu left image--> <td align="right" >&nbsp;</td> <!--Menu center image--> <td align="left"> <table cellpadding="0" cellspacing="0" border="0" style="width: 100%; height: 100%"> <tr style="height: 10px"> <td width="50" height="30"></td> <td align="right" bgcolor="#127DAB" style="background-image: url('../Images/Left.png'); background-repeat: no-repeat; height: 30px; width: 5px;">&nbsp;</td> <td align="right" bgcolor="#127DAB" style="background-image: url('../Images/center.png'); background-repeat: repeat-x; height: 30px; width: 100%;">&nbsp;</td> <td align="left" bgcolor="#127DAB" style="background-image: url('../Images/Right.png'); background-repeat: no-repeat; height: 30px; width: 5px;">&nbsp;</td> <td width="50" height="30"></td> </tr> <tr style="height: 10px"> <td width="50" height="30"></td> <td width="5" height="30" align="center" bgcolor="#127DAB" >&nbsp;</td> <td width="100" height="30" bgcolor="#127DAB"></td> <td width="5" height="30" align="center" bgcolor="#127DAB" >&nbsp;</td> <td width="50" height="30"></td> </tr> <tr> <td width="50" height="30"></td> <td width="5" height="30" align="center" bgcolor="#127DAB">&nbsp;</td> <td width="100" height="30" bgcolor="#127DAB"></td> <td width="5" height="30" align="center" bgcolor="#127DAB">&nbsp;</td> <td width="50" height="30"></td> </tr> </table> </td> <!--Menu right image--> <td align="left" >&nbsp;</td> <!--Space--> <td width="20">&nbsp;</td> </tr> <tr> <td colspan="5"></td> </tr> </table> </asp:Content>
  6. Olá pessoal! Teno uma dúvida com relação a multi lingua: tenho várias págiasn, sendo que na primeira tenho um combobox para seleção de língua ( EN, ES, PT....) Nesta primeira página já fiz este código e traduz de maneira correta, porém ao chamar a outra página, não traduz...preciso colocar um código assim em todas as páginas, configurando CurrentCulture e CurrentUICulture ? Obrigada. protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { HttpCookie cookie = Request.Cookies["Language"]; if (cookie == null) { cookie = new HttpCookie("Language"); cookie.Value = Thread.CurrentThread.CurrentCulture.ToString(); cookie.Expires = DateTime.Now.AddYears(2); Response.Cookies.Add(cookie); } Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(cookie.Value.ToString()); Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(cookie.Value.ToString()); } }
  7. Olá!!! Eu gostaria de inserir uma image de fundo na Master page, que será sempre o topo de todas as páginas...mas está dando stretch na imagem...COmo resolver isso? Muito Obrigada. <%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site.master.cs" Inherits="Site" Theme="Abm" %> <!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 id="Head1" runat="server"> <title>xxxxx</title> <asp:ContentPlaceHolder ID="head" runat="server"> </asp:ContentPlaceHolder> </head> <body> <form id="form1" runat="server"> <div id="pagexx" style="background-image: url('/Images/AppBackground.jpg'); background-repeat: repeat; position: fixed; width: 100%; height: 100ex"> <br /> <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server"> </asp:ContentPlaceHolder> </div> </form> </body> </html> Em todas as outras páginas, eu usei este código e deu certo, porque na Master não dá? <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginPage.aspx.cs" Inherits="LoginPage" %> <!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 id="Head1" runat="server"> <title>gggg</title> <link href="../Styles/gggg.WebSite.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="page-background" class="PageBackground"><img src="../Images/AppBackground.jpg" width="100%" height="100%" alt=""/></div> <form id="form1" runat="server"> </form> </body> </html> html, body { height:100%; margin:0; padding:0; } .PageBackground { position:fixed; top:0; left:0; width:100%; height:100%; } .Content { position:relative; z-index:1; top: 0px; left: 0px; }
  8. Olá pessoal!! Como faço para criar eata estrutura de um site: Logo do lado esquerdo/topo da página Combo e links alinhados do lado direito/topo da página, e que ao redimensionar a página, o controle fique no mesmo lugar, ou seja, sempre alinhado a direita. (LOGO) (Link1) (Link 2) (Combobox) Se possuir algum exemplo... Obrigada!
  9. Hi people!!! I have 5 web projects with a lot ot controls ( ComboBox, TextBox...) I would like to create MyTheme .dll to apply for all projects the same color, font color. Is it possible? How can I do it? Is there some good example to do it? Thanks!
  10. Hi!! I am starting creating my Login.aspx page. I would like to set backgroung image in this page. I have a image.jpg with dimension 1920x 1080 and I don´t know how to format an image to fit as a body background image. I am trying to put a image in the <body background="../MyImages/MyBackground.jpg"> but the image appears only partially. Thanks! <!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>Test</title> </head> <body background="../MyImages/MyBackground.jpg"> <form id="LoginPage" runat="server"> <div> <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%"> </table> </div> </form> </body> </html>
×
×
  • Criar Novo...