[RESOLVED] Error without an error message
I'm pulling my hair out :eek:
I have a table that contains 2 formviews
I have an "edit" button that changes the mode of the FV to edit as follows
FormView1.ChangeMode(FormViewMode.Edit)
This works fine, but when I add the line for the second formview;
FormView1.ChangeMode(FormViewMode.Edit)
FormView2.ChangeMode(FormViewMode.Edit)
I get an error when I build the app. However, there is no error message to tell me what is wrong. How can I isolate the issue?
Re: Error without an error message
Have you tried using just FormView2.ChangeMode(FormViewMode.Edit) ojn it's own to see if it is the second line causing the issue? Might be ...and this is only a guess...but might be coz it's trying to alter two objects at the same time, can't see how this would be an issue or problem, but maybe try just for testing purposes… if by altering the views individually with say a button for and a button for another to change the view's; if that then works...if so then you may just need a small time delay between the 2 change's of view's call's. If not then maybe copy the code and start a new project to check it isn’t just a complier code error of some sort
Hope that helps :thumb:
Re: Error without an error message
I have tried pretty much everything you have suggested.
I tried renaming the FV's, I tried removing them, It's almost as if the IDE isn't seeing them, however they do appear, but they don't appear to have any properties exposed in the code behind.
I am doning nearly the same identical thing on several other pages with no issues. The frustraiting thing is that it says there are build errors, but no errors appear in the error list
Any help of suggestions is greatly appreciated
Re: Error without an error message
hummm...can you post your file and if I can or maybe some one else can (as I only got vb 2003, vb 6, asp web matrix, Microsoft Visual Web Developer 2005 Express Edition installed on my machine) can have a look to see if its just your computer or not ? Have you tried using one of the other working pages and making a copy and simply editing the code to make it like for the page that doesn’t work ...bit of a long winded solution but may work....when you used buttons separate buttons for each control to control the view of the items individually did that not work ? :ehh:
Re: Error without an error message
Thanks for the offer to review the code. I ended up fixing the issue by remaking the page from scratch. Painful but it resolved the issue.
Re: [RESOLVED] Error without an error message
ah right well sorry we couldn't help :blush: Glad you got it sorted in the end though :thumb: