473,789 Members | 2,422 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with databinding

Hi all!

I have a tab control with 2 tabs. All tabs have fields that are databinding
to a unique binding source. The problem is that if I don't access the second
tab, it didn't work. After access it, all works fine.

For example, I have the following tabs:

Tab 1
nameTextBox
codeTextBox
addressTextBox

Tab 2
groupTextBox
birthdayTextBox

I have a Binding Source and when it is assigned, the fields on Tab 2 is not
updated. If I access Tab 2, all works fine after this.

Is there a way to start binding in all tabs?

Thank you
Vanessa
Jun 27 '08 #1
3 1090
Hi Vanessa,
I have the same problem. I don't know if there's a technical solution but I
usually get around it by programmaticall y changing tabs after assigning the
binding source.
Jun 27 '08 #2
Hmm, i just can't see where the problem is.
If you want to edit/view the values assigned to the textboxes of tab2
you have to activate tab2. Otherwise you do not need these values.
Jun 27 '08 #3
If you perform code that assumes that the databinding has been performed, it
will not work until the other tab pages has been activated. That is (I
think) the problem.

"Roman Wagner" <ro**********@g mail.comskrev i en meddelelse
news:32******** *************** ***********@i76 g2000hsf.google groups.com...
Hmm, i just can't see where the problem is.
If you want to edit/view the values assigned to the textboxes of tab2
you have to activate tab2. Otherwise you do not need these values.

Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1879
by: Mike Murphy | last post by:
Has anybody been experiencing problems with .NET 1.1 SP1? I installed it from Windows Update, but the "Microsoft .NET Framework 1.1 Configuration" dialog shows the build number prior to SP1! Further, examining .dll versions in WINNT\Microsoft.NET\Framework\1.1.4322: mscorcfg.dll: 1.1.4322.573 mscordbc.dll: 1.1.4322.2032 Further, I've been experiencing some spurious behavior in some of my .NET applications that hasn't happened...
0
1033
by: Brian Conway | last post by:
I am trying to dynamically generate a dataset that pulls back information based off of a login id, once it has the dataset I want to take information from the dataset and populate editable fields on a form. So far I know that the click event works based off of the login id, because I can get a datagrid to populate with the correct information. However, I don't want to use a datagrid, I want to be able to use the dataset and bind the data...
11
1238
by: Hrvoje Vrbanc | last post by:
Hello, I have the following problem: I have a DataGrid control on my page with a column with TextBox controls and another one with ImageButton controls. In order to force a call to JavaScript client-side script when ImageButton is pressed, I added the following code to OnItemDataBoundEvent (check for Item Types not shown here): Dim tbKolicina As TextBox = e.Item.Cells(6).FindControl("tbKolicina")
3
2611
by: Musravus | last post by:
Hi all, I have a piece of XML that looks like this, which I want to DataBind to a Repeater (the Repeater is inside a UserControl): <SECTION id="MAIN" > <SUBSECTION id="SUB1" /> <SUBSECTION id="SUB2" /> <SUBSECTION id="SUB3" /> </SECTION>
3
3996
by: Justin Morris via DotNetMonster.com | last post by:
<asp:TextBox ID="TextBox1" runat="server" value='<%=Server.HtmlEncode (Request.Cookies("Username")("Username"))%>'/> <input name="Password" type="text" id="Password" value='<% =Server.HtmlEncode(Request.Cookies("Username")("Username"))%>'> i have created a cookie and want to use it with my login page. I currently have asp:TextBox with form validation control. I can get the cookie value to appear but not in the asp:TextBox. I can use a...
8
2186
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got answered... In 1.1 we always did our own myDataAdapter.fills and we liked that control for lots of good reasons. Now the new DataSource (or is it a TableAdapter:Dataset) automatically fills the Gridview. How can we control that fill? In a...
2
2382
by: clickon | last post by:
I am confused about the way in which asp:table objects work. When a control is within an asp table it generally appears to be in the scope of the tables parent control. E.g. if i have a page that consists of an asp table called MyTable containing a textbox control call MyTextBox then i can access MyTextBox directly from the PageLoad event handler without having to use MyTable.FindControl(MyTextBox). MyTextBox can also be used for a...
8
2091
by: Dirk | last post by:
Hello, I have a problem to use databinding with my business layer classes. My data class does not have simple properties (string, int or datetime), instead, all my properties are objects of the generic type Field<T> (see sample code). public class Employee { public Field<stringForename
1
3472
by: Mundo | last post by:
Hi I'm pulling my hair out with a problem caused when DataBinding a DataSet to a web control. I first tried using a GridView but when that failed, I tried a Repeater. I'm getting the classic "'System.Data.DataRowView' does not contain a property with the name X" error message which suggests I'm not putting X in the SELECT statement. But this is not the case. If I set the GridView to AutoGenerateColumns="true", it works fine and all the...
1
1634
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello to all, I want to know if DataBinding in asp.net 2,0 is better than to fill up the values of the controls of the following form: this.miControlTextBox.Text = valorParaControlTextbox; Performance with databinding is good in asp.net 2.0 ? Would you prefer: databinding or set value to Text property of control ?
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9511
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10136
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4090
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3695
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.