Sharepoint Smartparts?

Posts   
 
    
JustBarno
User
Posts: 4
Joined: 13-Dec-2007
# Posted on: 20-Dec-2007 21:24:52   

I have a usercontrol where I created with an LLBL Data source. Simple gridview bound to the datasource listing the items in a table.

When I put this on my test page, it works fine, but when I add the control to a smartpart in sharepoint, the data is not pulled.

Sharepoint's web config has the same connection string as my test project, and the page doe snot return any errors, the list is just empty. so I'm not sure where to look.

Can you point me to any properties I can use to debug? If i response.write the datasource.entititycollection.count it gives me an object ref not set to an instance of an object.

Thanks.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 21-Dec-2007 10:37:39   

Is there any errors or exceptions displayed?

Is it related to the following thread? http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=8173

JustBarno
User
Posts: 4
Joined: 13-Dec-2007
# Posted on: 21-Dec-2007 22:45:29   

Thanks Walaa, but no error is displayed, and my web config already has the entry from the referenced thread.

Posts: 254
Joined: 16-Nov-2006
# Posted on: 22-Dec-2007 23:18:08   

If you debug the web app and set CLR exceptions to break into the debugger - are any exceptions thrown even though no error is propogated up to the ASPNET page?

JustBarno
User
Posts: 4
Joined: 13-Dec-2007
# Posted on: 26-Dec-2007 20:37:05   

MattAdamson wrote:

set CLR exceptions to break into the debugger

Is this a special debugger setting? I looked in options and didn't see it. VS2005.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 27-Dec-2007 09:44:35   

1- Go to the Debug menu 2- Select Exceptions (Ctl-Alt-E) 3- Select Common Language Runtime Exception. 4- Change "When the exception is thrown" to "Break into the debugger". This will apply the setting to all exception types unless you've overridden this.

By default, VS is configured to break when an exception is not handled. What we want is for it to break into the line which raises the exception (when an exception is thrown).