I've finally got the datepicker to work on my MVC demo site and also the dialog. I still have a few issues: the dialog doesn't show in IE7 so when I click a link where a confirm dialog is supposed to appear it just removes the row without showing the dialog.
It works great in Firefox3 and Safari.
Please try for yourself on my Demo sit...
I am building an Asp.net MVC site where I have a fast dedicated server for the web app but the database is stored in a very busy Ms Sql Server used by many other applications.
Also if the web server is very fast, the application response time is slow mainly for the slow response from the db server.
I cannot change the db server as all ...
Is it ok to do the following:
View(new {Object A, Object B})
Or should Object A and Object B be explicitly declared in a new type?
Thanks.
...
i want to create custom validator for checking fields exists in multiple tables
...
In my asp.net-mvc website I have a field that usually has a string (from database) but can from time to time contain nothing.
Because IE doesn't know how to handle the css "empty-cells" tag, empty table cells need to be filled with an
I thought
Html.Encode(" ");
would fix this for me, but apparantly, it just returns " ".
I c...
I am looking to implement a live search in my MVC app similar to this site when you type in a question and results come up that are similar or like the search on http://www.krop.com/
I have the search code all working and results updated. I just need to know how to add the AJAX to the MVC framework (I know this site was built using it) ...
Hi
I want to know if its possible and how to do the following , i have a basic MVC application (ASP.Net) that i have modified to work for me. Now the application already handles authentication perfectly fine but i need to use this authentication in another app.
Without creating a webservice is it possible for me to make calls to the app...
I would like to take a set of controls (INPUT, SELECT, TEXTAREA) which are contained within a DIV and send their values as JSON via AJAX to a server. This is easy enough with JQuery's serializeArray.
However I then want the server to respond with the same structure of JSON that was sent and re-load the control values using the provided...
I'm playing around with RhinoCommons and NHibernate and I had a question about the UnitOfWork pattern.
Sorry if this is a n00b question.
Should the UnitOfWork be started at the very highest level (ie the controller)? Or say in the service module that the controller is calling down into?
...
I think this is pretty typical, you have the same website project with an "admin" section and a public facing section. In this website I want to configure the default errors, but I also want them to display in the correct layout. (the admin looks different than the public facing site).
In webforms you could put a different web.config in...
Hi all,
I'm working on a demo that makes use of Spring.NET IoC capability in ASP.NET MVC . It's kind of like the MyBlog application presented on pair programming video tutorial on www.asp.net site. I've completed the same demo using Microsoft's Unity framework and now want to try out the Spring container.
To that end I've implemented a ...
I was wondering what everyone thinks of this. Is the code easy to follow? Or is there a better way to do this? By the way, this is how I am currently doing validation at the moment with ASP.NET MVC. I can follow it, but I am the one who wrote it. For some reason SO is removing the line breaks between the validators.
public overrid...
On a related post I mentioned that I have found custom HTML helpers to be just that, helpful, when developing. For instance, when I need paging for a "grid" I have a custom helper that I can call --> Html.Pager()
Some have made a point that HTML helpers are a violation of the MVC model. Personally, I don't see it being any different t...
When using ActionLink to render data from database which has HTML tags
(ie <p>)
incorporated in it, ActionLink escapes the tags. What is the best way to handle this?
...
Whats the best practice approach to creating a form that is used to both create new models and edit existing models?
Are there any tutorials that people can point me in the direction of?
Cheers
...
Should I use the same controller and view for editing and creating models in ASP.NET MVC, or should I create a view and controller action for creating and a view and controller action for editing?
The editing view is certainly likely to be different - it doesnt always make sense for the user interface for editing an object be the same a...
I am using FCKeditor as web editor in my asp.net mvc beta application.
I inserted FCKeditor in Create.aspx page and every function of FCKeditors works well except image file uploading from my local pc :(
I changed some configuration as FCKeditor's document
Here's I changed,
fckconfig.js
var _FileBrowserLanguage = 'aspx' ; // asp ...
We are preparing to develop an enterprise Human Resources Project using ASP.NET and our team is interested in using MVC instead of WebForms but we are a bit worried about this.
We are not sure that this is a suitable solution for an Enterprise project.
...
I want to configure my model binders with Nhibernate:
So I have:
<object id="GigModelBinder" type="App.ModelBinders.GigModelBinder, App.Web" singleton="false" >
<property name="VenueManager" ref="VenueManager"/>
<property name="ArtistManager" ref="ArtistManager"/>
I have an attribute which marks controller actions so that they us...
I've built web sites using classic ASP, ASP.NET web forms and lately ASP.NET with ExtJS. However, I've always felt that I've had to do a lot of the heavy lifting and that there was no real RAD until the application was fairly mature.
I've only briefly looked at RoR and Django, but they look like a step in the right direction. Does anyo...