•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,569 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,050 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 10821 | Replies: 1
![]() |
•
•
Join Date: Feb 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hi everyone, here's my problem.
I have 3 web forms. WebForm1 contains a tab control "UltraWebTab1" with just 2 tabs.
First tab displays Target URL WebForm2.
Second tab displays Target URL WebForm3.
WebForm2 contains a label lblSourceLabel with a text value of '123'.
WebForm3 contains a label lblTargetLabel with a null value.
My goal it to transfer the lblSourceLabel value to lblTargetLabel upon tab change from tab1 to tab2. I'm using JavaScript, ASP.NET and Infragistics.
Here's my code, but it's not working. What am I doing wrong?
function sendValue()
{
// Get reference to UltraWebTab
var ultraTab = igtab_getTabById("UltraWebTab1");
if (ultraTab == null)
return;
//
// Get reference to 1st tab (WebForm2 )
var tab = ultraTab.Tabs[0];
// Get reference to 2nd tab (WebForm3)
var tab1 = ultraTab.Tabs[1];
//
var source = tab.findControl("lblSourceLabel ");
var target = tab1.findControl("lblTargetLabel");
target.value = source.value;
}
I have 3 web forms. WebForm1 contains a tab control "UltraWebTab1" with just 2 tabs.
First tab displays Target URL WebForm2.
Second tab displays Target URL WebForm3.
WebForm2 contains a label lblSourceLabel with a text value of '123'.
WebForm3 contains a label lblTargetLabel with a null value.
My goal it to transfer the lblSourceLabel value to lblTargetLabel upon tab change from tab1 to tab2. I'm using JavaScript, ASP.NET and Infragistics.
Here's my code, but it's not working. What am I doing wrong?
function sendValue()
{
// Get reference to UltraWebTab
var ultraTab = igtab_getTabById("UltraWebTab1");
if (ultraTab == null)
return;
//
// Get reference to 1st tab (WebForm2 )
var tab = ultraTab.Tabs[0];
// Get reference to 2nd tab (WebForm3)
var tab1 = ultraTab.Tabs[1];
//
var source = tab.findControl("lblSourceLabel ");
var target = tab1.findControl("lblTargetLabel");
target.value = source.value;
}
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
- Making ASP.Net pages better looking (ASP.NET)
- How to transfer values between ASP.NET pages (ASP.NET)
- variables from javascript in asp.net (ASP.NET)
- ASP.NET and Mozilla - Issues! (ASP.NET)
- Using Hidden Variables in ASP.NET (ASP.NET)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
- ASP.NET problem (ASP.NET)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: XHTML and javascript 'setInterval'
- Next Thread: Javascript: Go To Line Number



Linear Mode