tag:blogger.com,1999:blog-4394562672296169849.post3971078556903980114..comments2023-12-21T18:06:15.136+08:00Comments on class Programmer : IEnableMuch {: Flexigrid CRUD(inline form) with ASP.NET MVCIEnableMuchhttp://www.blogger.com/profile/01393635235961303977noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4394562672296169849.post-58533235813367614722012-10-27T01:27:56.558+08:002012-10-27T01:27:56.558+08:00I've added JsValid reference (in the bin folde...I've added JsValid reference (in the bin folder of my application). I also added the following into my web.config<br /><br /> <br /> <br /><br /> <br /><br />However, if I include the code referencing JsAccessibleValidatonSummary, I still get an error. What else is missing?<br />Naomihttps://www.blogger.com/profile/14349415198731303848noreply@blogger.comtag:blogger.com,1999:blog-4394562672296169849.post-11300280543186330362012-10-27T00:57:10.295+08:002012-10-27T00:57:10.295+08:00I am unable to run the sample, I am getting this e...I am unable to run the sample, I am getting this error: I also see that the error refers to the places I don't have in my configuration.<br /><br />I haven't used NHibernate before, is it possible for you to create a simpler sample (beginners style) with minimum extra dependencies?<br /><br />FluentNHibernate.Cfg.FluentConfigurationException was unhandled by user code<br /> HResult=-2146233088<br /> Message=An invalid or incomplete configuration was used while creating a SessionFactory. Check PotentialReasons collection, and InnerException for more detail.<br /><br /><br /> Source=FluentNHibernate<br /> StackTrace:<br /> at FluentNHibernate.Cfg.FluentConfiguration.BuildSessionFactory() in d:\Builds\FluentNH\src\FluentNHibernate\Cfg\FluentConfiguration.cs:line 235<br /> at FlexigridCrudDemo.Mappers.ModelsMapper.GetSessionFactory() in c:\Flexigrid\FlexigridCrudDemo\FlexigridCrudDemo\Mappers\NhDbContext.cs:line 49<br /> at FlexigridCrudDemo.NinjectControllerFactory.b__3(IContext x) in c:\Flexigrid\FlexigridCrudDemo\FlexigridCrudDemo\NinjectDependencyResolver.cs:line 61<br /> at Ninject.Activation.Providers.CallbackProvider`1.CreateInstance(IContext context) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Activation\Providers\CallbackProvider.cs:line 45<br /> at Ninject.Activation.Provider`1.Create(IContext context) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Activation\Provider.cs:line 39<br /> at Ninject.Activation.Context.Resolve() in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\Activation\Context.cs:line 157<br /> at Ninject.KernelBase.b__7(IContext context) in c:\Projects\Ninject\Maintenance2.2\ninject\src\Ninject\KernelBase.cs:line 375Naomihttps://www.blogger.com/profile/14349415198731303848noreply@blogger.comtag:blogger.com,1999:blog-4394562672296169849.post-54460615783259102482012-10-23T09:47:45.488+08:002012-10-23T09:47:45.488+08:00In order to use JsAccessibleValidationSummary , yo...In order to use JsAccessibleValidationSummary , you got to add JsValid's reference in Web.config. Line #30 http://code.google.com/p/flexigrid-crud-example/source/browse/trunk/FlexigridCrudDemo/FlexigridCrudDemo/Web.config#30<br /><br />The source code for JsAccessibleValidationSummary: http://www.ienablemuch.com/2011/07/ivalidatableobject-client-side.html<br /><br />IEnableMuchhttps://www.blogger.com/profile/01393635235961303977noreply@blogger.comtag:blogger.com,1999:blog-4394562672296169849.post-61780113137020747332012-10-23T06:15:31.571+08:002012-10-23T06:15:31.571+08:00When I try to get your application running I am ge...When I try to get your application running I am getting<br />Cannot open database "TestCrud" requested by the login. The login failed.<br />Login failed for user 'user name here'.<br /><br />Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br /><br />Exception Details: System.Data.SqlClient.SqlException: Cannot open database "TestCrud" requested by the login. The login failed.<br />Login failed for user 'user name here'.<br /><br />Source Error: <br /><br /><br />Line 47: <br />Line 48: <br />Line 49: _sf = fc.BuildSessionFactory();<br />Line 50: return _sf;<br />Line 51: }<br />Naomihttps://www.blogger.com/profile/14349415198731303848noreply@blogger.comtag:blogger.com,1999:blog-4394562672296169849.post-82939343235424562312012-10-23T03:41:34.919+08:002012-10-23T03:41:34.919+08:00Thanks, but this line @Html.JsAccessibleVali...Thanks, but this line @Html.JsAccessibleValidationSummary(excludePropertyErrors: true) doesn't seem to be working for me.<br /><br />I am using ASP.NET MVC4<br /><br />Also, I am looking for a way to invoke the regular Create/Edit view from the grid as I need to first get information about current selected row (more columns). Do you know how to achieve this?Naomihttps://www.blogger.com/profile/14349415198731303848noreply@blogger.com