Assign datasource id at runtime

Assign datasource id at runtime

am 11.01.2008 11:02:58 von ajaykalathil

Hi,

How I can assign datasource id at run time to a repeated control. I
want different data source to a same control based on some criteria.
is it possible
?

Re: Assign datasource id at runtime

am 11.01.2008 12:12:27 von Eliyahu Goldin

Is myRepeater.DataSourceID = "myDataSourceId" what you need?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


wrote in message
news:71ec5b4c-4489-4d20-9acd-724edcf99982@n22g2000prh.google groups.com...
> Hi,
>
> How I can assign datasource id at run time to a repeated control. I
> want different data source to a same control based on some criteria.
> is it possible
> ?
>
>

RE: Assign datasource id at runtime

am 11.01.2008 12:16:00 von jignesh

Look for DataSource Property, assign value and call Repeater.DataBind.

Regards
JIGNESH

"ajaykalathil@gmail.com" wrote:

> Hi,
>
> How I can assign datasource id at run time to a repeated control. I
> want different data source to a same control based on some criteria.
> is it possible
> ?
>
>
>