Ajaxcontroltoolkit - Maintaining ActiveTabIndex On Postback Within TabContainer

Sep 23, 2010

This probably has been asked many times before but I was wondering how to maintain the ActiveTabIndex of an AjaxControlToolKit TabContainer. The only way I can think of achieving such a thing is to store the ActiveTabIndex in the session and checking for this on postback. Are there any other solutions to solve this problem?

View 2 Replies


Similar Messages:

AJAX :: Change A 2nd Level Tabcontainer ActiveTabIndex When The Page Is Being Loaded?

Feb 4, 2011

I'm using C#, asp.net and ajaxtoolkit

I want to set up menu item links such that the tab index is sent in the query string parameter. I tried setting the ActiveTabIndex in the Page_Load event and that doesn't change it at all. I tried using the javascript and I think because this tabcontainer is contained in a UpdatePanel's ContentTemplate so that javascript is not able to find it? How can I do this?

<script type="text/javascript">
// function SetInitalTabChanged() {
// var leaderTabs = $get('<%=TabLeadershipMain.ClientID%>');
// leaderTabs = leaderTabs.control; //
// leaderTabs.set_activeTabIndex(0);
// }
function SetInitalTabChanged() {
// $('<%=TabLeadershipMain.ClientID%>').set_activeTabIndex(0);
var container = $find('TabLeadershipMain');
container.set_activeTabIndex(0);
}

With javascript above (both) I would get the error below

Microsot runtime jscript error:Object doesn't support this property or method

Or if use the commented out function it will return leaderTabs = null

View 4 Replies

AJAXControlToolkit - TabContainer Not Visible?

Nov 10, 2010

I am using MonoDevelop on MacOS and I am having difficulty getting AjaxControlToolkit's TabContainer visible on Google Chrome. I even set the visible property to true for both the TabContainer and TabPanels but it still did not work. Here is the source HTML:

<ajaxToolkit:ToolkitScriptManager id="tsm1" runat="server" />
<div style="position:absolute;top:0px;left:0px;">
<img src="" /> [code]....

View 1 Replies

C# - Maintaining Scroll Position After Postback?

Feb 19, 2011

I have some problems with maintaining scroll position after postback. First time I experienced the problem was when I (believe) added Combobox control from AJAX control Toolkit and/or UpdatePanel from AJAX Extensions. The problem is when I do the postback on the page the page is loaded at the top and not where I did the postback. Actually, this wouldn't be a problem if it isn't happening on a very large form. I have already tried using MaintainScrollPositionOnPostback="true", but it wasn't helpful at all. I can provide the code if needed, but I don't think it would be of any use because I have comboboxes inside update panels which are rebinded on a button click.

View 1 Replies

C# - Postback Not Maintaining Selected Values

Jun 19, 2010

I have a page with several dynamically generated DropDownLists. The DDs load and display the correct values on page load. However, when I try to retrieve the values at post back, the DDs all seem to be maintaining the values they had at page load.

All are created in Page_Load;

No test for IsPostBack;

Processing is handled in code below:

[Code]....

View 4 Replies

Web Forms :: Maintaining Scroll After Postback In Gridview?

May 25, 2010

i have a problem with maintaining a scroll after postback in grid which consists of number of records with vertical scroll bar,when i click on edit link the scroll is moving to top row but not the current updated record i have used MaintainScrollPositionOnPostback="true" and i placed my grid within div tag but it is not working for my grid

View 6 Replies

Maintaining Scrollbar Position And Div Tag State On PostBack?

Feb 26, 2010

I have a web page that regularly refreshes on post back, and all of this works fine. However, a user has made enhance the page, which I need with:

1) There are 3 asp.panels on the page, which are scrollable vertically. When the page refreshes, the scroll position returns to the top. The enhancement is to maintain the position of where ever the scrollbar is on postback. How do I keep the scrollbar position on post back?

2) Within each of the panels are dynamically added web controls. These web controls contain gridviews, which are themselves contained inside div tags. These div tags can be hiddened and made visible by an image button. This hidden and visible state is actioned by some javascript on the page. Again, the user has asked how it is possible to maintain the state of these div tags on post back, i.e. those that are closed and those that are visible. Currently, the state is on postback for all the div tags to be visible. How do I maintain the state of the visibility of a div tag during postback?

View 4 Replies

AJAX :: TabContainer Hiding On Postback

Sep 18, 2010

I have a asp.net page that contains a Ajax TabContainer control with three tabs, this is all dynamically created and added using the code-behind file. Inside each tab I have one or more gridview controls that can cause a postback for various reasons.

When a gridview control causes a postback, the entire tabcontainer gets hidden on the page and therefore nothing is displayed. In the HTML source code I can see that the controls have been added to the page, but the tabcontainer has a style added to it (style="visibility: hidden"]. If I remove this style using the developer tools, the tabcontainer displays and all tabs, but some of the styling gets lost. Is there a specific reason why this occurs and how I can resolve this?

View 4 Replies

AJAX :: Tabcontainer Shows Wrong Tab Data After Postback

Feb 22, 2011

My setup is as follows: I have 4 tabs of data, all of which are invisible when the page loads. The user enters some search criteria, hits the search button, and then the first tab fills up a gridview with data and becomes visible. One of the columns in this grid is a linkbutton named 'detail'. When they click on 'detail', the 3 remaining tabs go and get their data from the database and become visible. On tab#2, I have a listview which allows editing/adding of data. Here is my problem: When I click the imagebutton on the listview that puts the listview into edit mode, the data from the first tab is now shown on the second tab.

So the correct tab (tab#2) remains selected, but the other tab's data is being displayed. Has anyone else run across this? I have tried numerous combinations of update panels and triggers but I always get the same results. Also, the last 3 tabs each contain a usercontrol. I don't know if that has anything to do with it.

View 6 Replies

How To Preserve The Index And Make Sure The TabContainer And The TabPanel Is Loaded At Postback

Mar 26, 2010

At first time page load the TabContainer and TabPanel is shown where the default tab index is zero. This panel has some user controls and a "Go" button. The "Go" button loads a GridView is a separate panel. So far things ar good.

Now when I either sort or page throught the GridView, the TabContainer disappears. I read somewhere that the current tab index would be preserved during post back. So how can I preserve the index and make sure the TabContainer and the TabPanel is loaded at postback and still have the information originally entered by users in the controls? Could I use a "Session" variable?

View 3 Replies

AJAX :: TabContainer Inside A Updatepanel Causes The Browser To Postback Twice While First One Is Aborted?

Dec 2, 2010

When I want to optimize my tab container for network traffic, I faced a rare problem.

When first time the page is requested the content in the first panel is visible. the other panel content are invisible. When user switches the tab i am setting the panel visible and update the updatepanel. this works fine after i have put the tab container inside a update panel and set the update mode conditional and children as trigger as false. But when i include the tab container inside an update panel and change the tab in the browser, i see two postback from the browser in firebug net traffic window. THe first postback status is displayed as aborted. Eventhough the functionality is working correct.

View 1 Replies

JQuery :: Stops Working On Elements Placed In Updatepanel En Tabcontainer (postback)?

Apr 2, 2010

I want to load a popup when a user clicks a button. The buttons are images located inside a tabpanel. The first time the page is loaded the helpEvents DOES display the popup and the 'click' popup. Then I navigate to Tabpanel tab2, and the helpTickets button doesnt work (doesnt even display the 'click' popup) Then I navigate back to Tabpanel tpEventDetails, and the helpEvents button doesnt work anymore either(and also doesnt even display the 'click' popup anymore) So I think something gets lost in the updatepanel on callback...but what? and how to fix it?

default.aspx
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<cc1:TabContainer OnActiveTabChanged="TabChanged" ID="tabContainer" runat="server" ActiveTabIndex="0" OnClientActiveTabChanged="ActiveTabChanged" Width="100%">
<cc1:TabPanel ID="tpEventDetails" runat="server" HeaderText="Details">
<ContentTemplate>
<img src="images/help.png" id="helpEvents" alt="help" />
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="tab2" runat="server" HeaderText="More">
<ContentTemplate>
<img src="/images/help.png" id="helpTickets" alt="help" />
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
</ContentTemplate>
</asp:UpdatePanel>
script.js
//CONTROLLING EVENTS IN jQuery
$(document).ready(function() {
//LOADING POPUP
//Click the button event!
$("#helpEvents").click(function() {
alert('click');
centerPopup('Contact');
loadPopup('Contact');
});
$("#helpTickets").click(function() {
alert('click');
centerPopup('Tickets');
loadPopup('Tickets');
});
});

View 8 Replies

AJAX :: How To Use AjaxControlToolkit.dll And Actkit.dll(Modified AjaxControlToolkit.dll) In Single Page

Oct 29, 2010

I want to disable past dates, so i modified AjaxControlToolkit.dll and named as "Actkit.dll".

View 1 Replies

Forms Data Controls :: Postback To Masterdetail Inside Tabcontainer On The Same Page?

Apr 15, 2010

How can I use postbackurl with a formview in master detail after I insert an item in the formview which is at the bottom of a big page? The master detail is inside a tab container

View 1 Replies

AJAX :: Change ActiveTabIndex In JavaScript?

Jan 19, 2011

I have a TabContainer with 3 TabPanels. This first contains a map. After executing some actions on the map, I want to switch the second tab which contains the results.

I have looked at a variety of solutions and none of them appear to work. These include using the $find and $get methods, and changing the .focus().

I'm not sure if this is relevant but I'm also using a bit of JQuery on the page.

View 6 Replies

AJAX :: Get Tabpanel Activetabindex In Client Side Javascript

Apr 23, 2010

How to get ajax tabpanel activetabindex in client side javascript

View 3 Replies

AJAX :: TabContainer Body Border Doesn't Work For Hidden Div Inside Tabcontainer

Dec 17, 2010

I use a border for the TabContainer body which works fine.

[Code]....

also I use three hidden divs and one visible div inside a main div which works as body of Tabcontainer

View 1 Replies

IIS6 To IIS7.5 - Now AjaxControlToolkit Error "Type.registerNamespace('AjaxControlToolkit')"

Oct 15, 2010

Moved our web application from W2003 & IIS6 to W2008 R2 & IIS7.5 . One of the first things we discovered was to set the Application Pool in "Classic" mode. However we are still not out of the woods. We are having a AjaxControlToolKit error. I have attached a screenshot but in summary, the first line of code referring to the AjaxControlToolKit is flagged in error, Type.registerNamespace('AjaxControlToolkit'); The Debugger throws the error text below: 'Type' is undefined Default.aspx?

_TSM_HiddenField_=ScriptManager1_Hidd enField&_TSM_CombinedScripts_=%3b%3bAjaxControlToo lkit%2c+Version%3d1.0.20229.26116%2c+Culture%3dneu tral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a63cfabab-51ed-48ea-9a51-d25d550c85e3%3ae2e86ef9%3a9ea3f0e2%3a9e8e87e9%3a1d f13a87%3a4c9865be%3aba594826%3a757f92c2%3a3858419b %3a96741c43%3ac4c00916%3ac7c04611%3acd120801%3a38e c41c0,

line 21 character 1I have made sure that AjaxControlToolKit.dll (ver 1.0.20229) is in the Bin folder of my website.

<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" tagPrefix="ajaxToolkit" />
</controls>
</pages>

Entire web.config is in attacment also. I am not sure what else has to happen to move to the newer Microsoft platforms?

View 3 Replies

AJAX :: Customized Calendar "AjaxControlToolKit Undefined" Problem In New AjaxControlToolKit

May 19, 2010

I just downloaded the latest AjaxControlToolKit.dll (3.5.40412.0), and update it in my old project. When I compile the project, it shows sucessful. However, when I used my Customized Calendar, it got "AjaxControlToolKit Undefined"

ps: my old project is developed under AjaxControlToolKit.dll (3.0.20820.16598) . // README

View 1 Replies

C# - Maintaining Viewstate With Get?

Mar 11, 2011

Upon page reloads I want to retain the values the user had typed in upon hitting submit. I worry about viewstates being cumbersome for pages, both in bandwidth and in time for a page viewer to download the page. I am cheap with my bytes :p

My question is instead of using server controls and such I am having the form on the page do a get to itself and on the aspx putting <input type="text" id="user_email" name="email" value="<%=Request.Form["email"] %>" /> This allows me to not use viewstate. Are there any potential shortcomings to doing things this way? My goal is always for a lighter page and efficiency even if it is more work.

View 1 Replies

Maintaining State Across Site In C# .NET

Jul 11, 2010

I have a website that returns search results from Twitter, written in C# ASP.NET. The search works very well.When the user sees the results I want them to also have a 'Next Page' type hyperlink that will perform the search from the last previous result onwards (using Twitter's next_page data). How can I preserve properties so that when a link is clicked it will run the search again with different parameters for the next results? I cannot use Form as there is one Form on the page already and MS limits to one Form per page (for runat="server")

View 3 Replies

VS 2008 Securing And Maintaining With Mostly Web Services?

Mar 1, 2011

I'm going to launch a page - that will persist for a really long time using - using ASP.Net.

Page will have very little controls - will using jQuery ajax calls to build up and fill in the DOM for maintaining data in the backend DB.

How do I maintain who I am with the web service?

I'm used to pages that mostly use asp.net membership / session vbl stuff to maintain state.

That's not going to fly with why I'm doing here.

And I guess that also starts into "how do I secure this web service"?

View 7 Replies

Maintaining The Scroll Position Inside Tag?

Mar 25, 2011

I have a gridview which is placed inside div tag to make the grid view to look like having scrollbars

<div id="divgrd" style="overflow: scroll"; width: 350px; height: 150px>
My grid is placed here.
</div>

Now it displays nice view of the grid with scroll bars. I am changing the color of the row selected from the grid. Only problem is if the grid has around 50 rows and I select the 50th row then the scroll bar moves to the top of the grid. I want to stop it and maintain the scroll position. I cannot change the height of the div tag as the grid may be very large if the rows inside is increased.

View 3 Replies

Maintaining Session Across Relay Domain?

Apr 18, 2010

I'm building a payment page in asp.net, however the page where you order your items is run in HTTP (non-secure) on my domain.

When redirecting the user to the payment site, I have to go through a different domain (my payment provider, from whom I borrow the SSL certificate), so my payment url ends up like [URL]

Now the problem is my session is lost, but I store the order in session, so I desperately needs it.

Can I somehow send the SessionID in querystring, and restore the session from it - or do I need to stuff the entire order into querystring ? (Not too certain it'll fit though, it's rather long)

View 2 Replies

Architecture :: Maintaining Business Objects ?

Feb 2, 2010

We are using below class(TypeInterceptor) in one of our project to create the instance of business objects.

To Create any business object, we are using the below code

++++++++++

BLayer.TestBO objTestBO;

this.objTestBO = TypeInterceptor.CreateObject<BLayer.TestBO>();

+++++++++++

I think using this kind of creational pattern makes the application not scalable as the same instance will be shared among all the concurrent users.Is it correct?

Is there any better way to abstract the creation and maintaining instance of business objects

Class code:namespace Microsoft.IT.RelationshipManagement.Internal.CISF.Infrastructure
{
using System;
using System.Linq;
using System.Text;[code].....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved