Home All Groups Group Topic Archive Search About
Author
11 Dec 2006 3:47 PM
Fernando
How can i bind a parameter from a sqldatasource to a web user control
property?

Tanks

Author
12 Dec 2006 8:26 AM
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



Show quoteHide quote
"Fernando" wrote:

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