Welcome Guest Search | Active Topics | Sign In | Register

Extra text when using CallBack or CallbackPanel Options
Andre(PortalProduto)
Posted: Thursday, November 15, 2012 12:42:01 PM
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>
eo_support
Posted: Thursday, November 15, 2012 12:44:53 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
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
Andre(PortalProduto)
Posted: Thursday, November 15, 2012 1:06:00 PM
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?

eo_support
Posted: Thursday, November 15, 2012 1:10:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You can not use Response.Write while using CallbackPanel. You just have to replace it with something "controls", for example, a Label.

Thanks!
Andre(PortalProduto)
Posted: Thursday, November 15, 2012 7:25:31 PM
Rank: Newbie
Groups: Member

Joined: 5/13/2009
Posts: 9
Alright.
Thanks.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.