Hi Guys,
This should be relatively simple for the MVC experts out there, but i'm still learning the ropes.
I have a View which is not strongly-typed, simply ViewPage<dynamic>.
On this View, i have a single textbox, which is extended using jQuery's AutoComplete
When the user types something into the textbox, the AutoComplete does an AJ...
I have two tables in my application. The first one, Sections, stores content for a specific section of an online publication. This contains (among other things) the section title and a field CurrentRevisionId (FK).
A second table, Revisions, stores different revisions of that content. It has PK RevisionId field (the FK above, used to...
Hello everyone,
i have recently run into a strange problem. i have a table in db named Task. A Task may have a parent task and more than one child tasks (self join). i have written a stored procedure that returns me all the tasks in the project their children and sub children upto n level using CTE (common table expression). my required...
hi,
I am working in asp.net MVC....
Not sure if this is a bug, or a misconfiguration on my part, but the &format= doesn't work on the IIS7 staging server but it works fine on local VS Web server(2008)
i.e. http://localhost:12345/<p1>/<p2>/&format=xml works, but
www.example.com/<p1>/<p2>/&format=xml doesn't.
please let m...
I have an input box where in the value entered will be POSTed to the Action parameter.
But I also want the value to reflect on the url like this:
www.my-site.com/search/myquery
Any idea on how to achive this?
Here are the codes..
Search Form
<% using(Html.BeginForm("Index", "Search")) { %>
<%: Html.TextBox("q...
Hi Guys,
i try to deploy a simple mvc2 application. but it doesnt work.
my hosting provider is qualityhosting.de and they support mvc.
i see the homepage "My MVC Application - Welcome to ASP.NET MVC!" but after a click
on "about" (for example) i got "The page cannot be found".
Could someone help me please?
Thank you!!
...
Let's take as an example a standard default ASP.NET MVC project created by Visual Studio.
Being on ../Home/About page I click Log On link and get to the ../Account/LogOn page. After logging in I'm being redirected to the Home page, not to the Home/About page from which I get to the LogOn page. Why is that?
Though, in the AccountControl...
Could somebody recommend some of the best strategies they've used to populate items in an HTML select list on the client side?
I'm using an ASP.NET MVC application and making use of jQuery.
The select list in question is simply a collection of strings which will need to be saved with the model.
I'd rather not have a server call for ev...
I want to allow HTML in a comment box (eventually use tinymce or something like that), store it in an MSSQL database, and then read it back to a page where the field is rendered in a tabl cell.
It all works fine with the storing of the HTML after I fixed the validation problem on the action method. But when read back from the database, ...
Im showing a table of data using a paginated list, with a search box and submit button above this. I wish to be able to search this table of data then re-Post the view and update with the newly searched for data on the click of the submit button. How would I do this in MVC? Would I have to start looking at AJAX or JQuery or can it be don...
<a href="../../App_Data/form.xml">Download Sample Form </a>
Why is this link not working?
...
I'm using MonoDevelop on Mac OS X Snow Leopard to develop an ASP.NET MVC Application. I have tested it on Visual Studio 2008 on Windows 7 and it worked fine, but when compiling it on MonoDevelop it throws the error: The type or namespace name 'Objects' does not exist in the namespace 'System.Data' under this line: public partial class Mo...
What is the best way to check the file type and size in asp.net mvc c# controllers?
...
Hi, I have a HTML.BeginForm() to change user's data (email, password etc) but I want to separate the contents at the same page, I mean that there will be:
MainContent with submit button and also
- a HTML.BeginForm() with fields to change password + submit button
- a HTML.BeginForm() with fields to change email + submit button
th...
I have a handful of controllers and each controller has a test class with unit tests. Each unit test calls a single action and verifies that the action handles a given scenario.
The test class has a setup routine that instantiates a number of fake repositories and other fake objects. The fake repositories have static collections that ...
Hi, I'm starting to learn MongoDB, using the NoRM C# driver in an ASP.NET MVC project. I'm just writing POCO classes right now, and have question on how to implement relationships between Blog Posts, Comments, and Tags. I think I have the Post & Comment, but not sure what to do on the Tags. In SQL, they are many-to-many relationship, how...
After looking at the available options, I'm looking at making a plugin for jQuery (and coincidentally, a library for ASP.NET MVC) that will provide some simple methods for dynamically adding objects to a collection of a ViewModel.
I speak of things like this ( http://www.highoncoding.com/Articles/640_Adding_Multiple_Nested_Data_in_ASP_...
How do I accomplish this? The SMTP class throws error on dev machine about not finding an SMTP server. Is there a way to test sending emails on development machine?
...
I have CompanyController and DepartmentController:
public class CompanyController : BaseBackendController
{
private ICompanyRepository repository;
public CompanyController(ICompanyRepository repository)
{
this.repository = repository;
}
...
[HttpPost]
public ActionResult BatchDelete(long[] ids)
{
var e...
I am using a custom membership system and works great but when the user logs in all my pages get distorted because some styles and images fail to load, I used Google Chrome Developer Tools and I get several errors "Failed to load resource, (error 500 internal error) or something similar but everything else seems to be working fine only t...