Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
tpeiffer
Posts: 5
Registered: ‎09-16-2009
My Device: Not Specified

After browser channel push - only partial page renders

I have created a website for a client in ASP.NET, and am using the C# Blackberry Bulk Push tool found below to push a link to our website.

 

On most devices (including Tour, Curve, and more), when they initially launch the channel, only part of the page renders until they either close the browser and re-launch it or physically do a refresh of the page.  I've stripped the login page down to a few <asp:Label controls, two <asp:TextBox, and a <asp:Button.  It's 1.4kb.  No images, no CSS, no javascript.  Once the user refreshes the login page, the rest of the site works perfectly.

 

I believe that the problem is that only part of the page is being pushed to the device, causing it to partially render.  The first label renders, but the first textbox's name is all that appears.  None of the rest of the page shows up.

 

I've tried turning off all cahing by using

    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="expires" content="-1" />

 

I have the push pointing to a page "bbdefault.asp" that redirects to the login page.  I did that hoping that a redirect would force a refresh.

 

One problem is that I don't have a BES server, so am using the simulators to test my push, and it ALWAYS works fine on the device simulators I've tried.  I passed the push tool to our client and they administer their BES server and determine who to push the link to.  It's when they push that the caching problem is occuring.

 

Is there a way to push a link - JUST A LINK - as a browser channel and have it not cache the page, but always go back to the server and re-load the login page?  Anyone?  Anyone?  Tim Neil?

 

Thanks so much!!

Thad

 

References:

http://na.blackberry.com/eng/devjournals/resources/journals/jul_2005/net_a_simple_push_application.j...

 

 

New Developer
tpeiffer
Posts: 5
Registered: ‎09-16-2009
My Device: Not Specified

Re: After browser channel push - only partial page renders

Here is the complete page (Login.aspx), for reference...

 

<%@ Page Language="VB" AutoEventWireup="false" Inherits="CLIENT.Login"
    CodeBehind="Login.aspx.vb" %>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <title>Site Name</title>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="expires" content="-1" />
</head>
<body id="login" style="font-size: 90%; color: #222; background: #fff; font-family: ""Helvetica Neue"", Arial, Helvetica, sans-serif;">
    <form id="form1" runat="server">
    <div align="center">
        <b>Site Name</b>
        <br />
        <br />
        Username<br />
        <asp:TextBox ID="txtUsername" runat="server" Width="125px" />
        <br />
        Password<br />
        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="125px" />
        <br />
        <asp:Label ID="lblMessage" ForeColor="Red" runat="server" />
        <br />
        <asp:Button ID="btnLogin" runat="server" Text="Login" />&nbsp;&nbsp;
        <asp:Button ID="btnClear" runat="server" Text="Clear" />
        <br />
        <br />
        <i>Contact PHONE NBR with questions.</i>
    </div>
    </form>
</body>
</html>