|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Parameter as web user controlHow can i bind a parameter from a sqldatasource to a web user control
property? Tanks 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 > > >
ERROR: The state information is invalid for this page and might be corrupted
Problem accessing controls ReportViewer Causing Major Problems Properties do not reliably persist using CompositeControl file upload and download Formfields in Repeaters - validation and save into DB themes Images SiteMap resolve question Any way to set attributes for server controls by referencing properties/methods/variables? Enter text in at least one textbox |
|||||||||||||||||||||||