Showing posts with label refresh. Show all posts
Showing posts with label refresh. Show all posts

Wednesday, March 28, 2012

Tab Container Error after a Refresh

I have a tab container with two tab panels inside of it, and they work perfectly well the first time the page is loaded. If I hit refresh (not post back I am talking F5 or the browser refresh button) the page loads up except for the tab container which does not show up.

The error I receive in IE is the following

Line: 6
Char 31345
Error: Object Expected

When I run this in Firefox and check the error in FireBug It tells me the following error occurred

h is not a constructor

createCallback(undefined,Object,null,Object,div#ctl00_mainContent1_ComparisonPieCharts1_TabContainer1_PublisherTab)ScriptResource.ax... (line 5)

(no name)()default.aspx (line 988)

createCallback(Object _disposableObjects=[2] _components=Object,Object)ScriptResource.ax... (line 5)

createCallback()ScriptResource.ax... (line 5)

createCallback()ScriptResource.ax... (line 5)

Function.__typeName="Function";Function.__class=true;Function.createCallback=fun...

Thanks in advance for your help,

Brendan

I set my ScriptMode for my scriptmanager to Debug and now I found that the error message is really

Sys.ArgumentUndefinedException: Value cannot be undefined.Parameter name: type

Sys$CultureInfo$_getAbbrMonthIndex("")ScriptResource.ax... (line 5762)

{name: "element", mayBeNull: true, domElement: true, optional: true}


Hi Brendan,

Can you post a simple repro of your issue?

Monday, March 26, 2012

Tab Navigation

Im using a gridview inside a tab(1) if i navigate to another tab(2) and then refresh on that tab(2) it takes me back to tab(1).

Anyone know how to fix this?

You need to persist the tab position in viewstate.

Errrh, how do i do that? example please.


Use

Session["PAGENO"] = iPageNo;

To retrieve
if Session["PAGENO"] == null
iPageNo = 1
else
iPageNo = Session["PAGENO"]


Hi, sorry you dont have a c# version do you?

try

if (Session["PAGENO"] == null)
iPageNo = 1;
else
iPageNo = Session["PAGENO"];


does not work, I take iPageNo is a int?


The i prefix indicates that iPageNo in an integer.

Saturday, March 24, 2012

Tab panel is not working properly in Firefox 1.5.0.10

Tab panel is not working properly in Firefox 1.5.0.10. When ever i click on the tab , the tab panel is getting disappeared.

If I refresh the page, then the tab panel is displayed with default tab container being selected.

It works properly in 1.5.0.12.

Does any one has faced this problem ?

Hi,

According to your description, it seems this may be a issue the that version of Firefox. Although I'm not 100% sure.

If that's the case, it's hard to expect everything runs fine with it. And it would be recommended to update if an older version has a issue.

Wednesday, March 21, 2012

tabcontainer causes my page not to be refreshed

The TabContainer in the following code does NOT refresh my page. Can anybody tell me what's wrong, please?

[My web page works just fine when the TabContainer is removed from the code]

<%

@dotnet.itags.org.PageLanguage="VB"AutoEventWireup="true" %>

<%

@dotnet.itags.org.ImportNamespace="System.Data" %>

<%

@dotnet.itags.org.ImportNamespace="System.Data.SqlClient" %>

<%

@dotnet.itags.org.RegisterAssembly="AjaxControlToolkit, Version=1.0.10123.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"Namespace="AjaxControlToolkit"TagPrefix="cc1" %>

<!

DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.1//EN""http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<

scriptrunat="server">

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

TextBox2.text = TextBox1.Text

End Sub

</

script>

<

htmlxmlns="http://www.w3.org/1999/xhtml">

<

headrunat="server"><title>Untitled Page</title>

</

head>

<

body><formid="form1"runat="server"><asp:ScriptManagerID="ScriptManager1"runat="server"/><div> </div><asp:UpdatePanelID="UpdatePanel1"runat="server"><ContentTemplate><cc1:TabContainerOnUnload="Button1_Click"ID="ManageVendorsTabContainer"runat="server"Style="position: absolute;

left: 249px; top: 110px;">

<cc1:TabPanelID="TabPanelCreateVendorID"runat="server"><HeaderTemplate>

Create Vendor

</HeaderTemplate><ContentTemplate> <asp:TextBoxID="TextBox1"runat="server"></asp:TextBox><asp:TextBoxID="TextBox2"runat="server"></asp:TextBox><asp:ButtonID="Button1"OnClick="Button1_Click"runat="server"Text="Button"/></ContentTemplate></cc1:TabPanel></cc1:TabContainer></ContentTemplate></asp:UpdatePanel></form>

</

body>

</

html>

Hi,

I tried you code, it works as expected.

Or can you be specific about the issue with you.