Parameter as web user control

F

Fernando

How can i bind a parameter from a sqldatasource to a web user control
property?

Tanks
 
M

Manish Bafna

Hi,
I have already posted this yesterday in asp.net forum.
I am again posting here for you.I think you are looking for this:


Yes you can do it through properties.Suppose in UserControl class you create
following property:

private DataSet x;
public DataSet SetDataSource
{
get
{
return x;
}
set
{
x = value;
}
}

In the parent page you can write following:

UserControlInstance.SetDataSource = ds(a dataset variable)
Hope this has cleared your doubt.

Thanks and regards,
manish bafna
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top