Hi,
we are developing a website that also have smart phone (starting with iphone but possibly adding android and blackberry later) counterparts (a subset of functions like Yelp or Urbanspoon for example) and we are thinking about following REST paradigm using ASP.NET MVC. Our team is fairly new to this area of software development and w...
I have a number of ASP.NET applications that use log4net without issue. I have not been able to get log4net to log anything in any of the services I wrote using the MVC libraries. I have the configuration identical (aside from log file name) in all the services. Each service is running as the same user and use the same application pool. ...
Hi ,
I am new to ASP.Net MVC. I am trying to create a google type of search functionality for my drop down list, which has a hugh amount of data. It means when I type the characters the related search items will be filtered. I am not finding the correct parth to do it in ASP.NET MVC environment.This is part of a Data entry form. The fo...
In webforms, if I wanted to display a list of categories I would create a category control. this control would either take in parameters or analyze the current url and list the categories and breadcrumb as appropriate.
What options do I have with asp.net mvc?
...
Is there a difference with impersonation between an ASP.Net MVC controller actions vs. an ASP.Net Web Form? Using the exact same code within the same web project, I am able to successfully impersonate the Windows user when connecting to SQL Server from a Web Form but not from the Controller Action. Here is the code sample I am testing ...
I am calling my partial view like this:
<% Html.RenderPartial("~/controls/users.ascx"); %>
Can I pass parameters to partial view? How will I access them in the actual users.ascx page?
...
I have a UI that presents a number of checkboxes to the user, and for each one that is checked, I need to create an entry in a mapping table.
LookupTable <- MapTable -> DataTable
I have a custom binder for DataTable, but can't figure out how to get it to create the MapTable objects.
Is this possible? Using asp.net MVC 1.0 and LINQ t...
I'm trying to get setup using the DataAnnotations validator in ASP.Net MVC 2.0 Beta, but with the following model:
public class Foo {
[Required] public string Bar {get;set;}
}
And the following code in my view:
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<Foo>" %>
<!-- later on -->
<% Html.EnableClientVa...
Hello, I'm trying to figure out how to alter the value of a checkbox in ASP.Net MVC. Basically what I want to do is have the value of a checkbox returned to the DefaultModelBinder so that I can use it in my controller method for manipulation. As of now, the values generated default to true/false for visible and hidden inputs respective...
I am getting an error in my viewuser control:
Could not load type 'System.Web.Mvc.ViewUserControl'
My viewpage passes the MyViewUserControllerUserList class in the RenderPartial call.
So I am doing:
action creates its strongly typed view data, which has a property which is a strongly typed class that my userlist.ascx expects.
user...
Hi,
The application consists of lots of runtime generated grids and charts.
Coloring of gridcells will be required for some threshold based on data.
also there will be use of ajax for sorting, paging and exporting on gridviews.
Should I go with webforms or can mvc provide some benefits over webforms when struggling with
preinits, event...
Hi there,
Im trying to implement a client and server validation for my webapplication using castle valitors.Has anyone got any examples of how to use Castle Validators with ASP.net mvc v2 Client validation.
...
My action creates a strongly typed viewdata, which is passed to my view.
In the view, I pass the Model to the render partial method.
public ActionResult Index()
{
ViewDataForIndex vd = new ViewDataForIndex();
vd.Users = Users.GetAll();
return View(vd);
}
public class ViewDataForIndex: ViewData
...
Hi,
I have a JQuery UI dialog box. The app allows people to create lists and this dialog lets them specify the listname. Here it is:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>
<% using (Ajax.BeginFo...
I have an Asp.net MVC project authenticating through AD. I would like to store audit information in tables for the current logged in user. What should I be storing in the database? I am currently using SamAccountName for my membership and role providers. Should I be using this? Should I use the more verbose and modern UserPrincipalName? ...
In ASP.MVC i am able to display some data in a MvcContrb grid and have Edit and Delete Options. When i click on Delete the selected row will be deleted and the grid will be refreshed. Now when i click on Edit the user will be navigated to a new page with the Emp ID selected Ex
I am thinking if I can open a Modal Popup Extender with the...
I'm using a FormCollection to get client input on an ASP.Net MVC view. I was using a checkbox, and I would just check to see if the FormCollection's AllKeys list contained the name of the checkbox I was checking. I now need to switch to a radio button, but since the inputs need to have the same name (which seems a bit silly to me), I can...
Hi there,
Im trying to choose the best server/client validation framework to use with my MVC application. I would like to know what is the best validation framework to use with MVC to do server/client validation.
My options are:
Castle validator
Microsoft Data Annotations
nHibernate Validator
...
Is there an ASP.NET MVC controller or helper class that can automatically return the proper HTTP response based on the HTTP request header? I'd like it to be able to return JSON, XML, or a View based on the request's content type, with the only thing I have to do is populate some global Model object with data from the database.
...
I'm looking to restrict access to controllers/actions that represent my website's api. Only registered users who meet a certain criteria (pay accounts, not free trials) will be able to use the api. The website currently supports forms authentication with users logging in with a username/password combination or via open id.
How would...