|  | 
	
	
	| Rank: Newbie Groups: Member
 
 Joined: 5/13/2009
 Posts: 9
 
 | 
		    Hello. 
 When I place an CallBack or CallbackPanel on the page, it is rendered with extra text at the top of the page.This makes me miss the style of the page. If I simply remove the object, the text disappears. The text is this: "14/11/201213/11/201229/02/201212/11/201215/11/2012."
 
 Example:
 "
 14/11/201213/11/201229/02/201212/11/201215/11/2012
 <!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">
 ...
 "
 
 Could you help me?
 
 My version is: 10.0.43.2
 
 That is the code:
 <%@ Control Language="C#" AutoEventWireup="true" CodeFile="wucProdutoGateway.ascx.cs"
 Inherits="wucProdutoGateway" %>
 <%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
 <table width="100%" border="0">
 <tr>
 <td>
 <eo:CallbackPanel runat="server" ID="cbpGateways" LoadingHTML="Aguarde...">
 <asp:GridView ID="gvGateways" runat="server" AutoGenerateColumns="False" CellPadding="4"
 DataKeyNames="Gatewayid" ForeColor="#333333" GridLines="Both" OnRowDataBound="gvGateways_RowDataBound"
 OnSelectedIndexChanged="gvGateways_SelectedIndexChanged" OnSelectedIndexChanging="gvGateways_SelectedIndexChanging"
 OnRowDeleting="gvGateways_RowDeleting" OnRowDeleted="gvGateways_RowDeleted" Width="100%">
 <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
 <Columns>
 <asp:BoundField DataField="Gatewayid" HeaderText="Gatewayid" InsertVisible="False"
 ReadOnly="True" SortExpression="Gatewayid" Visible="False" />
 <asp:BoundField DataField="Gatewaycodigo" HeaderText="Gatewaycodigo" SortExpression="Gatewaycodigo"
 Visible="False" />
 <asp:BoundField DataField="Gatewaynome" HeaderText="Nome do Gateway" SortExpression="Gatewaynome" />
 <asp:CheckBoxField DataField="Flagativo" HeaderText="Flagativo" SortExpression="Flagativo"
 Visible="False" ItemStyle-HorizontalAlign="Left" />
 <asp:BoundField DataField="Htmlformulariogateway" HeaderText="Htmlformulariogateway"
 SortExpression="Htmlformulariogateway" Visible="False" />
 <asp:BoundField DataField="Urlgateway" HeaderText="Urlgateway" SortExpression="Urlgateway"
 Visible="False" />
 </Columns>
 <Columns>
 <asp:TemplateField HeaderText="E-mails" ItemStyle-HorizontalAlign="Left">
 <ItemTemplate>
 <asp:RadioButtonList runat="server" ID="rblEmails" AutoPostBack="false" Visible="true">
 </asp:RadioButtonList>
 <%--<asp:GridView ID="gvEmails" runat="server" AutoGenerateColumns="False" CellPadding="4" ShowHeader="false"
 DataKeyNames="Gatewayid" ForeColor="#333333"
 GridLines="None" Visible="false">
 <Columns>
 <asp:BoundField ReadOnly="true" DataField="Emailusuariogateway" HeaderText="" ShowHeader="false" />
 </Columns>
 <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
 <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
 <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
 <EditRowStyle BackColor="#999999" />
 <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
 </asp:GridView>--%>
 </ItemTemplate>
 </asp:TemplateField>
 </Columns>
 <Columns>
 <asp:CommandField ShowDeleteButton="true" DeleteText="Limpar seleção" Visible="true" />
 <%--<asp:ButtonField CommandName="LimparSelecao" Text="Limpar seleção" ButtonType="Link" />--%>
 </Columns>
 <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
 <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
 <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
 <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
 <EditRowStyle BackColor="#999999" />
 <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
 </asp:GridView>
 <asp:ObjectDataSource ID="odsUsuarioGateway" runat="server" OldValuesParameterFormatString="{0}"
 SelectMethod="ListarGatewayUsuario" TypeName="DAL.ComponentModel.Gateway.GatewayDAL"
 OnSelected="odsUsuarioGteway_Selected">
 <SelectParameters>
 <asp:SessionParameter Name="usuarioId" SessionField="user_id" Type="Int32" />
 </SelectParameters>
 </asp:ObjectDataSource>
 </eo:CallbackPanel>
 </td>
 </tr>
 <tr>
 <td>
 <asp:Label runat="server" ID="lblAvisoGatewayMoeda" ForeColor="Red" Text="Atenção:<br/>Somente os Gateways compatíveis com a moeda do produto serão exibidos ao cliente, no momento da compra."></asp:Label>
 </td>
 </tr>
 </table>
 
 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 I do not believe this has anything to do with us. You will need to debug your code to find out what code generated those output.
 
 Thanks
 | 
|  | 
	
	
	| Rank: Newbie Groups: Member
 
 Joined: 5/13/2009
 Posts: 9
 
 | 
		    Hi,
 I found the issue. Try the same code I sent, but add the following line above the CallBackPanel:
 Today is: <%Response.Write(DateTime.Now.ToString("dd/MM/yyyy")); %>
 <eo:CallbackPanel runat="server" ID="cbpGateways" LoadingHTML="Aguarde..." ChildrenAsTriggers="true">
 
 The page is rendered but the formated date is placed above the page, ex: "15/11/2012<!DOCTYPE html PUBLIC ...".
 
 Any idea, or tip?
 
 
 | 
|  | 
	
	
	| Rank: Administration Groups: Administration
 
 Joined: 5/27/2007
 Posts: 24,425
 
 | 
		    Hi,
 You can not use Response.Write while using CallbackPanel. You just have to replace it with something "controls", for example, a Label.
 
 Thanks!
 | 
|  | 
	
	
	| Rank: Newbie Groups: Member
 
 Joined: 5/13/2009
 Posts: 9
 
 | 
		    Alright.Thanks.
 | 
|  |