473,385 Members | 1,912 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,385 software developers and data experts.

Problem with Binding

Hello,
I built an user control that shows an object
(TestObj) of an application, in the user control
I created a public property (of type TestObj) to change
the current displayed object ...

After this I created another user control with a datalist
which contains the user control for TestObj (in ItemTemplate)
with the intent to display an IList<TestObj>
I created a public metod of this :
public void Update (IList<TestObjmyList)
{
datalist1.datasource = myList;
datalist1.databind;
}

I always receive an error when binding: I tried to
debug the DataBinding event, but I can't find vaules
that will be bound (I searched in sender and e parameters)

Can someone help me?
Thanks
Oct 17 '06 #1
3 970
What error message do you receive?

Maury wrote:
Hello,
I built an user control that shows an object
(TestObj) of an application, in the user control
I created a public property (of type TestObj) to change
the current displayed object ...

After this I created another user control with a datalist
which contains the user control for TestObj (in ItemTemplate)
with the intent to display an IList<TestObj>
I created a public metod of this :
public void Update (IList<TestObjmyList)
{
datalist1.datasource = myList;
datalist1.databind;
}

I always receive an error when binding: I tried to
debug the DataBinding event, but I can't find vaules
that will be bound (I searched in sender and e parameters)

Can someone help me?
Thanks
Oct 17 '06 #2
Flinky Wisty Pomm ha scritto:
What error message do you receive?
The error says that the value in a dropdown
isn't present...
I tried to fill it in page_Init
but the problem is still there...
Oct 18 '06 #3
Sorry, dude, I got distracted by the sudden threat of redundancy;
anyone in the UK looking for a .Net guy?

ahem...
Did you fix this problem, Maury?
Maury wrote:
Flinky Wisty Pomm ha scritto:
What error message do you receive?

The error says that the value in a dropdown
isn't present...
I tried to fill it in page_Init
but the problem is still there...
Oct 24 '06 #4

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

Similar topics

5
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order...
0
by: mjsterz | last post by:
I've been working with VB .NET for less than a year and this is the first time I've posted on one of these groups, so let me apologize beforehand if I'm being unclear, not posting my issue...
3
by: shreya | last post by:
While generating client jar files from ant command using build.xml I am getting following error generate-client: Generating client jar for click2pstn.wsdl ... ...
2
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click...
0
by: edurazee | last post by:
I am able to create BoundFields and Footer-rows dynamically like this in my GridView: protected void Page_Load(object sender, EventArgs e) { CreateGridView(); ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...

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.