passing dataset to webusercontrol

    Date: 01/23/08 (Asp Dot Net)    Keywords: web

    I have a webusercontrol with a repeater on it.

    I'd like to pass a dataset to the webusercontrol and then have the usercontrol bind the dataset to the repeater.

    Should I do this using the set method ?

    EG:
    public DataSet SearchResults
    {
    set { //bind the dataset here
    SearchResultsRepeater.DataSource = SearchResults;
    SearchResultsRepeater.DataBind();
    }
    }

    Source: http://community.livejournal.com/aspdotnet/94669.html

« Dynamic SQL vs SP || Postback question »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home