I need to develop a generic jQuery-based search plugin for the ASP.NET MVC application I'm building, but I can't figure out how it's supposed to fit, or what the best practice is. I want to do the following:
$().ready(function() {
$('#searchHolder').customSearch('MyApp.Models.User');
});
As long as I have implemented a specific i...
I want to create a new row in my database on a table that has a couple of foreign key relationships and I haven't been able to get a handle on what order and what calls need to be made. This is what I have so far:
db.Models.Order order = DB.Models.Order.CreateOrder( apple );
order.CustomerReference.Attach( ( from c in db.Customer where ...
I have implemented what I thought was a pretty decent representation of MVC in several web applications but since having joined crackoverflow, I'm finding that perhaps my initial definitions were a bit simplistic and thus I'd really like some clarification on the differences between the Data Access Layer and the Model or Domain Layer of ...
I have found jQuery to be a great tool to simplify my MVC Views.
For example, instead of including complicated logic to add alternating styles to my tables I just do this...
$(document).ready(function() {
$("table.details tr:odd").addClass("detailsAlternatingRow");
$("table.details tr:even").addClass("detailsRow"); ...
I'm starting a new project and I'm looking for a nice, light MVC framewok for PHP.
I'll use PDO for database abstraction and jQuery as UI framework.
...
Looking at MVC frameworsk, it seems we require more of classic ASP knowledge then ASP.NET postbacks and Viewstates. Are we moving backwards to complex UI + code logic in the actual HTML?
...
I've read all the marketing speak about how mvc and webforms are complementary etc... However it seems that all the blogs talk about is mvc and the only news coming out is about mvc.
Is microsoft going to continue to IMPROVE webforms as a first class citizen or will it just be a supported technology as they move all their real efforts,...
I'm having a quite complex model with many fields, has_many associacions, images added by image_column etc...
New object will be added by multi page form (8 steps) - how shoud I accomplish validation and propagation between those steps?
I think validation_group could be useful for defining validations for each step, what about overall ...
I'm looking to get started building a project and want to use RSpec from day one. My Ruby background is limited, however, I do have a good understanding of MVC and the structure within Ruby.
In doing some research for books and tutorials, I've found no currently published books, and have found no tutorials that give a good "hello world"...
Can someone recommend some good resources for learning about MVC in PHP? It doesn't have to be specific to MVC in PHP. In fact, I'm looking for recommendations of materials that focus on the higher level concepts with examples that could port well to any language so even ASP.net books will be tolerated ;-)
Any recommendations for books...
Trying to make a form wizard with jquery tabs.
Is it possible to have each step of the form in a separate view, then load each via jquery tabs' ajax option? When I ajax load just the partial (just the form), it has no way to access the js, css etc. (as there are is no 'header' for the partial file), and it doesn't seem to inherit from t...
Now that everyone is talking about MVC, I notice that the business rules are not being addressed. In the old days of the 3-tier architecture, The business rules were in the middle layer. Where do they fall in the new MVC?
...
A little benchmark with ASP.NET MVC. Viewpage code:
public string Bechmark(Func<string> url)
{
var s = new Stopwatch();
var n = 1000;
s.Reset();
s.Start();
for (int i = 0; i < n; i++)
{
var u = url();
}
s.Stop();
return s.ElapsedMilliseconds + "...
Before you answer, this question is complicated:
We are developing in asp.net / asp.net mvc / jQuery but I'm open to solutions on any platform using any framework
I think logic like sorting / hiding columns / re-arranging columns / validation (where it makes sense) should be on the client-side
I think logic like searching / updating th...
Hi,
How to dynamically bind data to <%Html.Dropdownlist.... in asp.net MVC?
Regards,
Ambika
...
So i am reorganizing a winforms C# solution to help decouple and make it cleaner and more organized. The solution tracks a small business orders,etc . .
I have broken out the projects so far into
App.View - all GUI Related Code
App.Data - just data structures and interfaces. No other implementation code
App.BusinessLogic - all busines...
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've decided to separate the Web, Model and Controller out into different projects in the same solution, that reference eachother.
The referencing goes like this:
Web ---[references]---> Controller ---[references]---> Model
Now I wanted to add 2 custom me...
I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, else it wouldn't work.
In a non-MVC application tha...
A page executes a number of tasks and takes a long time to process. We want to give the user feedback as each task is completed.
In ASP.NET webforms we used Response.Flush()
What way would you a approach this in ASP.NET MVC?
...
I have two models. We'll call them object A and object B. Their design looks something like this:
class Foo(models.Model):
name = models.CharField()
class Bar(models.Model):
title = models.CharField()
Foo= models.ForeignKey('myapp.Foo')
Now, suppose I want to make a method within Foo that returns all Bar objects that r...