473,411 Members | 2,285 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

User Control Data binding

Hello,
I created two user control,
the first manage an object of mine,
the second is a DataList in which each Item is the first
control...when I click the 'save' button in the first control,
the object is saved with new values, but in the list is displayed the
old value (until I postBack again)

Can someone tell me the right way to manage updates of nested user controls?
Thanks
M.
Oct 24 '06 #1
1 1498

Try this

In inserted event of DataSource of first control, you can call

1. Me.SecondControl.FindControl("DataList").Databind

Shahzad Godil
Karachi-Pakistan
MSN Messenger : sh*********@hotmail.com
"Maury" <ma*********************@gmail.comwrote in message
news:1N********************@twister1.libero.it...
Hello,
I created two user control,
the first manage an object of mine,
the second is a DataList in which each Item is the first
control...when I click the 'save' button in the first control,
the object is saved with new values, but in the list is displayed the
old value (until I postBack again)

Can someone tell me the right way to manage updates of nested user
controls?
Thanks
M.

Oct 24 '06 #2

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

Similar topics

0
by: Simon Barbour | last post by:
Hi all, Tearing my hair out on this one so hopefully somebody can help. I have written a custom control to represent a button on a touchscreen EPoS (electronic point of sale) peice of...
0
by: Zi | last post by:
I have a user control within a data grid. I am binding the user control to one of the values from the data grid. The data grid implements paging. It is all working ok for the first page but once i...
0
by: MeiMei | last post by:
Hi, I have designed a user control which exposes properties for data binding in the containing web page, and I want to use the Repeater web control in the containing web page to display all the...
1
by: Shourie | last post by:
I've noticed that none of the child controls events are firing for the first time from the dynamic user control. Here is the event cycle. 1) MainPage_load 2) User control1_Load user clicks a...
3
by: Sam Kuehn | last post by:
I have been stuck on this for some time and am desperate for a solution. I run into this all of the time! I will give a over simplified example to illustrate the problem. Say you have 2 user...
0
by: AMDRIT | last post by:
Hello everyone, VB2003-Winforms I have a class object (testclass), that I would like to bind parts of to two custom controls (control1 and control2). The testclass is stored in a hash table...
11
by: John J. Hughes II | last post by:
I have a DataGridView displaying data from a DataSet. To the right of that I have a custom user control which displays one of the data set fields. The custom user control is bound to the data set...
0
by: John Smith | last post by:
ASP.Net 2.0 / C# / IIS 6 I have 2 pages. The master page consists of a tabbed menu created using the Menu and MultiView controls. Something like this: ...
2
by: John Sheppard | last post by:
Hello there, I have a dataset on a form...I shall call the host form. I also have a user control with a whole bunch of textboxes and gridviewcontrols on it. I shall call this the leech form. ...
0
by: lmeyers | last post by:
On parent page user selects template from drop list. Based upon selected template multiple user controls are dynamically populated beneath. Each user control will contain different data elements. The...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.