This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi I'm building up an admin interface using WebForms and ASP.NET4 - normal CRUD. This code example helps (see download link about half way down) http://www.mindscape.co.nz/forums/Thread.aspx?PostID=8912 Is the current best practise for WebForms to use a similar pattern? eg PerRequestUnitOfWorkScope in Global.asax? Are there any other examples of LightSpeed WebForms CRUD? Regards Dave |
|
|
For "WebForms classic" (codebehind a go go), yes, PRUOWS in Global.asax is probably your best bet. If you're using a more structured approach such as MVC or MVP (as a pattern, not necessarily the ASP.NET MVC framework), then you could also handle this through the base controller or presenter class. The Film Festival sample may help with this -- it doesn't use Web Forms itself but the structure would be pretty similar. Finally, if you only need raw CRUD rather than a "proper" UI then you can use ASP.NET Dynamic Data with LightSpeed -- see the docs for the gory details. |
|
|
Hi Ivan - yes I'm looking at the classic WebForms approach :-) I'll spike out the PRUOWS approach. Regarding Dynamic Data - from my limited research, I've been put off it a little as it hasn't seemed to have gained much traction, and hopefully I can do most of what I need fairly easily in webforms. Thanks for the heads up and quick reply! |
|