AJAX :: How To Disable Tabcontainer Tab From Server Side

May 12, 2010

Working on a DNN website. Long time VB programmer new to ASP and Web Development.

I have a page with 2 modules on it one to select records and the other to show records details. there is also an add button on the select module for adding new records. the detail module has a tabcontainer with 5 tabs on it and if the user is adding a new record I want to disable the first tab. At all other times I want the user to have access to the first tab. The user clicks a button that uses OnModuleCommunication to start adding the new record. All my code is server side so when they click the button I clear all the fields and enable them all for editing but I have not been able to set the tabcontainers tab to enabled=False

[Code]....

and if it is in the correct location I do not want the button on the page to be seen like it is I want to call it from the server side so the user has no choice.

View 2 Replies


Similar Messages:

AJAX :: TabContainer - Run Server Side Function On Tab Change

Jan 24, 2010

As far as I can see there are only client events on this container, and I need to update a gridview when the user changes tabs.

View 2 Replies

AJAX :: How To Add HTML Div Tags To TabContainer - Server Side

Jan 13, 2011

I'm trying to insert some html 'div' tags inside a tabcontainer from server side. I haven't seen anything similar on the net. Here's the situation:

I have the following TabContainer on a form:

<cc1:TabContainer ID="TabContainer1" runat="server">
<cc1:TabPanel HeaderText="Person">
<ContentTemplate>
<div id="Test">
</div>......

How can I acheive that? If it's not possible, what other alternatives do I have? The most important requirement for me is to allow the user to remove the data by clicking on it.

View 4 Replies

AJAX :: Disable Whole Tabcontainer (disable Click)

May 11, 2010

I have a problem with disabling the tabcontainer.

The problem is that, if a user haven't selected anything, the whole tabcontainer must be disabled. If I disable the tabcontainer it in de codebind, the tabcontainer grayed out but the user can click the tabs.

I can disable one tab in javascript but how can I disable the whole tabcontainer?

View 1 Replies

TabContainer - How To Raise Server Side Event

Mar 3, 2011

I have a simple Tabcontainer with 3 tabpanels. I want to load some content to the different tabs the first time they are clicked (selecting the tabs). I have tried using Protected Sub TabContainer1_ActiveTabChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TabContainer1.ActiveTabChanged but that only works, WHEN there has been changes to the content.
So my question is: How do I raise a server side event like loading a droplist when the tab is clicked?

View 1 Replies

AJAX :: TabContainer Set Active Tab Client Side Using JavaScript

Jul 30, 2012

I have a Usercontrol and I have Gridview in it. Name of my control is Search.ascx.Now I have a Page Home.aspx where I have Placed this usercontrol in  One Tab of TabContainer of Ajaxtoolkit. Now when I click on Edit Link from GridView I want to activate another tab and I can do that in .cs file by registering Event.

I want same thing to be acheived using Jquery.

View 1 Replies

Ajax TabContainer Question: Accessing Web Controls On The Client Side?

Jul 20, 2010

What is the best way to reference controls from the clientside from within a TabPanel? I've tried using jQuery and javascript both has failed me. I've tired using the find method, but still no luck... SchoolSectionID refers to a div element within one of my TabPanel controls.

for (var a = 1; a < 4; a++) {
var SelectControlID = "";
var HiddenControlID = "";

[code]...

View 1 Replies

AJAX :: Get Name Of Selected (Active) TabPanel Of TabContainer On Client Side Using JavaScript?

May 7, 2015

i'm facing an issue in asp.net application (c#). i want get the name of tabpanel.i searched in forum i found that with java scritp function i can resolve this issue but i couldn't.

View 1 Replies

Disable A Jquery Tab Server Side?

Aug 26, 2010

ASP.NET web form with JQuery UI tabs widget and four tabs. I would like to disable the latest three tabs when i click a submit button.

P.S. I know how to disable tabs in jquery

$( ".selector" ).tabs( { disabled: [1, 2] } );

I don't know how to do it in server side code :)

View 2 Replies

AJAX :: Can Send An Object From Client-side JavaScript To Server-side Code Via AJAX

Mar 16, 2011

I know that I can receive an javascript object from the server via ASP.NET AJAX using Json. But I am not sure how can I send an javascript object from my client-side javascript to my server-side code. And if I can, how can I extract this object in my server-side code and access its members?

View 1 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

JavaScript - How To Disable Client Script Block Server Side

Aug 13, 2010

I have js script block (very long one that does editing capabilities to an invoice page).

I want to enable/disable this functionality on the server-side. First thing popped up on my mind was to say runat="server" to the tag, and set visible=true/false to asp.net, thinking asp.net does not render the HTML for non-visible items, so the block wouldn't load at all, which was what I wanted. But I quickly realized that saying runat="server" to client-side code was a real bad idea :)

What ar emy options, besides loading script from client side. Cuz I have other buttons that come from the server-that will enable dieable too.

View 1 Replies

Disable A Checkbox In Javascript And Recognize It As Checked On The Server Side?

Mar 17, 2010

I have a checkbox which in some cases may be disabled and checked using javascript, i.e:

var cbTest = document.getElementById("CheckBoxTest");
cbTest.disabled = true;
cbTest.checked = true;

However, when sending a postback, CheckBoxTest.Checked is false on the server side.

Is it possible to disable the checkbox and still have the server side recognize it as checked?

View 5 Replies

Web Forms :: Disable Required Field Validator At Server Side?

Feb 10, 2010

my question is very simple. I had read through many post include this: http://blog.anasghanem.com/post/How-to-get-the-readonly-textbox-value-on-the-server-.aspxI have a calender extender and the date was target to a texbox. This textbox, i had set it to readonly and it is validate by a required field validator. so mean this texbox must have a value inside. my prob is, i bind the textbox to database and if data is NULL or empty i can't save it because the required field validator was validate textbox as empty value at cllient side. If i remove the required field validator everthing fine. But this is not i want. I have try to set the textbox to javascript onCopy,onPaste,onkeyup. but user also can delete and paste into the textbox.i have think to disable the requried field validtor at server side when data is inserted.

View 16 Replies

AJAX :: Disable / Enable An Ajaxifeid Button From Client Side (JavaScript)?

Jun 22, 2010

disable / enable An Ajaxifeid Button From Client Side (JavaScript)?

View 3 Replies

Web Forms :: Enable Disable Required Field Validator From Server Side (Code Behind)

May 7, 2015

In my web page I have a Checkbox (datatype = tinyint/boolean) and 2 Required field validator (whose visibility is false). I want that when I check(tick) the checkbox, then required field validator visible = true, else not.For this I tried this code on Page_Load as well as on save button click, but it is not working:

protected void Page_Load(object sender, EventArgs e) {
if (ChkComplexPass.Checked) {
Regex4.Visible = true;
Regex.Visible = true;

[Code] .....

View 1 Replies

Ajax - Listbox Items Client Side Reordering Not Reflected In Server Side?

Jan 5, 2010

I reordered some items in a listbox using Javascript. When I read the items in a postback in the code behind (ASP.NET), the order is in the original order. How do I get the same order as shown in the screen after Javascript manipulation?

View 3 Replies

AJAX :: To Know Error Like Username Or Password Is Incorrect On Client Side Instead Server Side?

Oct 4, 2010

I m using site login Control in my login.ascx file and disaplaying login control in Div so if there is login link in page and i click on that then Login Div will popup which is site login.May i know how can handle error like username or password is incorrect on client side instead server side?

View 6 Replies

VS 2005 AJax Tab Container - Enable The Server Side Not Client Side

Feb 4, 2010

I have set the ajax tabs disable on form load. ON button click, I want to enable the tab server side,not client side.

protected void btnEnableCostPetroleumTab_Click(object sender, EventArgs e)
{
TabContainer2.Tabs[0].Enabled = true;
}

But its not enabling the tab?

View 12 Replies

First Invoke Server Side Code Then Client Side Script Without Using AJAX?

May 18, 2010

in a form i have a buttoin, when click both OnclientClick and postback should happen. on clicking the "Email" button a client side "mailto" tag should do the work and pull a new message window on the client's machine.

whereas, the email addresses should be invoked by the post back. so , when clicking the button the server side post should happen and on return the client side script should be invokded with the values read during post back, and populate all the email addresses.

i need know how to first do a server hit take the values and then execute the client script with those values without using AJAX

View 1 Replies

AJAX :: Calling Server Side Methods From Client Side Using PageMethods?

Jan 24, 2016

I am calling server side methids from client side using PageMethods. Can those methods return value back to client side. If yes then how and if no then how can that be achieved? refer to my code below.

function getValuesFromPSS(s,e)
{
debugger;

[Code]....

View 1 Replies

AJAX :: 'TabContainer' Must Be Placed Inside A Form Tag With Runat=server

Jan 11, 2011

Since upgrading to VS2010, I've been having issuse up on issues with my apps. Some are pure asp.net web sites, other are webpats that are eventually be converted to a Sharepoint web part.

In one of these webparts, I'm building a tab control on the fly. It fetches data from the table via bll/dal. On my dev box I build this in the code file of the default.aspx file and rendering it in a panel, except that it get the said error. I'm quite sure this is how I've done it in VS2008, so I don't know what is going on here - see my code below.

[Code]....

View 3 Replies

AJAX :: How To Call A Server Side Method From Client Side

Jul 16, 2010

I am using VS2010 and .NET4 for a web app. I have a script manager/update panel that has a couple of grids.

The client just leaves the page opens and views an updated grid every 30 seconds or so.

I want to refresh the grid by calling the server side method to load the grid, but not load the whol page using meta refresh or similar (too much screen flicker and unnecessary bandwith).

Is it possible to set some timer using javascript or something and call a specific server method to refresh controls?

View 3 Replies

AJAX :: Calling A Server-side Function From Client-side?

Feb 28, 2011

I want to do something a little bit tricky here. I want to call a server side fonction from the javascript. I know it can be done but I get some errors. This is my Javascript fonction where I want to call the server side fonction:

[Code]....

And this is the code in my VB page:

[Code]....

View 1 Replies

Disable The Page Refresh Due To ActiveTabChange Of TabContainer Inside UpdatePanel?

Jun 3, 2010

I am using AJAX TabContainer control with following settings. When I change a tab the postback happens and whole page refreshes. Because AutoPostBack="true"> . To AJAxify the behavior, I added UpdatePanel around it but still the page is refreshing. The control need to go to server because user controls contains some grids which need to be populated.

<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<asp:UpdatePanel ID="upTLTop" runat="server" UpdateMode="Conditional">
<ContentTemplate>

[Code]....

How can I disable the page refresh and at the same time server side operation happens in this case?

View 1 Replies







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