How to get CslaDataSource in toolbox

How to get CslaDataSource in toolbox

Old forum URL: forums.lhotka.net/forums/t/174.aspx


DansDreams posted on Tuesday, May 23, 2006

In my windows form projects I don't have to manually add items to the toolbox as with VS2003.  All the CSLA stuff is automagically there.

But with a web site project the controls like CslaDataSource aren't there.  What's weird is that it actually shows up in the toolbox for a windows form project, but I've got nothing for the web project.

Is there something wrong here I can fix?

Brent replied on Tuesday, May 23, 2006

After you have referenced Csla in your web project, right click your toolbox and select "Choose items."  Try sorting the list by name and you should see the Csla specefic toolbox items.

DansDreams replied on Tuesday, May 23, 2006

I know about doing that.

With VS2005 I've never had to do that with Windows Forms projects.  All the CSLA controls just show up in the toolbox without me doing anything special to add them.

Is it supposed to work that way with web projects as well?  I did check the Choose Items list and actually the CslaDataSource is checked.  Maybe just something weird going on with my machine.

DansDreams replied on Wednesday, May 24, 2006

Ok, this is weird.  I have a big giant solution a la ProjectTracker where I have CSLA, my business object library, a WinForms solution and a Web solution all in one.

In the WinForms project everything works as normal.

When I look at the properties/references of the web site project I have only the business library listed.  If I remove that then the CSLA libraries show up in the list.  If I add the business library project back in the CSLA stuff disappears.  If I try to manually add CSLA at that point it tells me a reference to CSLA already exists.  I'm presuming it is tracking through the business library and not re-listing projects referenced indirectly through it.

The problem is that the CSLA controls only show up in the toolbox when they are visible in the references list.

Has anybody else dealt with this or is nobody doing any ASP.NET with CSLA?  Or is there just something hosed with my Visual Studio?

DansDreams replied on Wednesday, May 24, 2006

I eventually got this to work normal through some combination of removing and adding references and using the Choose Items on the toolbox.  Couldn't repeat if my life depended on it, but at least I'm productive again.

skaue replied on Monday, October 08, 2007

I don't know if this might spare your life, but this is how I did it.

I opened my solution (Web Application Project) that already references CSLA and had a working aspx with a CSLAdatasource control. (I don't know if all this is required for it to work).

I rightclick toolbox under General and clicked Choose items...
In the first tab I pressed Browse and pointed to the csla.dll in my "Solution Items"-folder (custom self-made folder).
When the dll has been loaded there will be several new items in the "items-list" and I just checked all of them and pressed OK.

Done!

rexhxiao replied on Monday, October 08, 2007

Support is not the only web project?
You try to open a web project .

In my case ,It only appeared in web project .
The other four components appeared in the win project.

skaue replied on Tuesday, October 09, 2007

What components are we talking about here? The one I've seen so far is the CSLADataSource. What other four are there?

Copyright (c) Marimer LLC