StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SampleWebApp - WebBindingSourceExpand / Collapse
Author
Message
Posted 10/07/2007 9:08:38 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/21/2008 8:17:21 AM
Posts: 112, Visits: 664
Hello, I testing the web stuff of Strataframe, I try with the web example (WebBindingSource) and when I edit and update a row on the gridView appears the following error:

Error de servidor en la aplicación '/Web Sample'.
--------------------------------------------------------------------------------

The business object 'Customers' could not be found on this page.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: System.InvalidOperationException: The business object 'Customers' could not be found on this page.

Error de código fuente:

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

Seguimiento de la pila:


[InvalidOperationException: The business object 'Customers' could not be found on this page.]
MicroFour.StrataFrame.UI.Web.BasePage.GetBusinessObject(String Name) +150
MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetBusinessObject() +109
MicroFour.StrataFrame.UI.Web.WebBusinessBindingSource.GetView(String viewName) +51
System.Web.UI.DataSourceControl.System.Web.UI.IDataSource.GetView(String viewName) +32
System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +382
System.Web.UI.WebControls.DataBoundControl.GetData() +27
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +66
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +99
System.Web.UI.WebControls.GridView.DataBind() +24
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +92
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +100
System.Web.UI.Control.EnsureChildControls() +134
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +63
System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +429
System.Web.UI.Page.FindControl(String id) +57
System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +282
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2548




--------------------------------------------------------------------------------
Información de versión: Versión de Microsoft .NET Framework:2.0.50727.832; Versión ASP.NET:2.0.50727.832


thanks!
Post #11895
Posted 10/07/2007 10:23:56 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 07/21/2008 8:17:21 AM
Posts: 112, Visits: 664
Hello again, I see that if I change the gridview's viewstate property to true, it work, but I see that I update a row on the gridview, press save on the form (to save the bO) and the record don't change, I have to handle the event RowUpdated and set manually each row on the BO?

thanks!

- Fabian
Post #11896
Posted 10/08/2007 8:50:39 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 9:09:33 AM
Posts: 2,661, Visits: 1,876
Changing the viewstate property on the grid will cause it to save its data source to the viewstate (the business object), so when the grid is updated, the proper instance of the business object is not updated (the one from the viewstate, not the one from the form).  So, no, you don't have to manually handle the UpdateRow event; it is handled internally to copy the data back to the business object.  However, I am not sure why the Customers business object could not be located.  Let me test a few things here and see if I can find a solution for you.


www.bungie.net
Post #11903
Posted 02/28/2008 7:00:10 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 04/18/2008 6:08:08 PM
Posts: 13, Visits: 136
Hi,

I had the exact same problem with the sample ... did you find a solution to the missing Customer Object Issue.

Regards

jd

Post #14599
Posted 02/28/2008 9:18:02 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:43:51 PM
Posts: 4,241, Visits: 4,285
Are you running the C# or VB.NET sample?  Also, did you get the same from the forum or the install (http://forum.strataframe.net/FindPost12344.aspx) ?
Post #14602
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:03pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.062. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.