Problem with select button on gridview CSLA 2.0

Problem with select button on gridview CSLA 2.0

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


memocr posted on Monday, February 26, 2007

Hi.

I have a gridview conected to a csla object. on my gridview i have a select button. what happens is that when i click the select button to select one row of the grid the app crashes, no error, no info, just crashes.

in the other hand, i connected to tha database using a sqlconnection, sqlcommand and filling a dataset with a dataadapter, you all know the process... i filled the dataset with the result of the same store procedure as my csla object. same grid, same select button and guess what? the select button works!!

any idea?

thanks

RockfordLhotka replied on Monday, February 26, 2007

GridView = ASP.NET right?

So when you say the "app crashes" you mean the browser crashes? IIS crashes?

memocr replied on Monday, February 26, 2007

web....
and yeah the browser....


Internet Explorer cannot display the webpage

 
 

Most likely causes:

  • You are not connected to the Internet.
  • The website is encountering problems.
  • There might be a typing error in the address.
and i'm just trying to select a row, theres no redirect and it isn't even going into the page_load between hittin' the button and crashing

RockfordLhotka replied on Monday, February 26, 2007

You know it isn't getting to Page_Load because you are running this in the debugger and have set a breakpoint at the top of that method?

If that's so - then it appears to be an actual issue getting IE to post back the page, and I've got no idea on that. Try Firefox and see if it has the same issue?

The problem with IE7, in particular, is that it is intentionally obscure about the actual nature of any problem that is encountered...

Another thing you can/should do, is turn on more verbose error reporting in your web.config, so if it is a server-side issue (and it most likely is) that you get some more detailed and useful feedback.

memocr replied on Monday, February 26, 2007

yeah i have a break on the page_load and on the selectedindexchanged.

well, i didn't try firefox before, but i have now  and it actually worked. so, it must be an IE7 issue with CSLA? jjumm.. because as i said before...i don't have the problem when i bind the gridview with a dataset...

haven't someone else have this issue, because it is very common to bind ur gridview with a csla object....

RockfordLhotka replied on Monday, February 26, 2007

If it is a browser issue, then it isn’t CSLA – it is something to do with the javascript being emitted by the ASP.NET page. CSLA doesn’t emit anything to the UI at all.

 

In other words, there’s some difference in how the grid is configured or your page is configured between your two test pages. The issue may be that in one page you are using data binding and not in the other, or something like that.

 

I, and many, many, other people use the GridView control with CSLA J

 

Rocky

 

Copyright (c) Marimer LLC