I know you can share control easily with master page. But what if I need to share my control with pages under different master or even in different project? Specifically I have SQLDataSource which I am hoping to not have to duplicate across my entire solution for each masterPage that I have.
Do I need to have nested master page to achieve this?
A possible solution is to put my SQL DataSource control in a seperate page. And have each different master page always load that page into a ContentPlaceHolder. Is this possible?
It is more flexible to use
IEnumerable<TEntity>instead ofList<TEntity>for return type.