Hi All,
I want to create a web page where a registered user picks a number from 1 to 10. When a user picks a number that number is removed from the available list.
Is there a way to guaranty that no 2 or more users can have the same number?
Thanks,
rod
...
I am having a simple Azure cloud app(WebRole=ASP.Net MVC) which draws charts using ASP.Net Charting control.
Specifications-->
Chart RenderType = ImageMap
Chart ImageLocation = "/Images/Chart_#SEQ(1000,1)"
Number of app instances deployed on Windows Azure = 5
App contains a button which draws charts as per users parameters. When user ...
i have a table T with fields id, parentid, name. i make relationship with own table so parentid=>id one to many, so if parentid=null it is a parent record, and if parentid not null it is child record
after mapping i have class with 2 new properties- T1 (Collection of T) and T2 (Instance of T)
so how can i fill dropdownlistfor, if i not...
hi there
I am using editor and display templates on my MVC project with MetaData
I use something Called UIHint that enables me to show a particular control
for example all my description fields require a textarea that is using tinyMCE
however i want the name of the textarea to match the name of my field:
i.e i have Model Employee, wi...
hiya
when using EditorFor(model => model.FieldName)
i want to have a generic say datepicker, rich text editor, upload box etc
but with editorFor you cant pass a value, so you have to create a strongley typed element for
each model that requires one of the above.
anyone know if you can pass a generic model or a generic value like usin...
I'm in the process of designing my ASP.NET MVC application and I ran across a couple of interesting thoughts.
Many samples I have seen describe and use the Repository pattern (IRepository) so this is the way I did it while I was learning MVC.
Now I know what it's all doing, I starting to look at my current design and wonder if it's the...
i have this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>
<script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var CurrName = $(".ckeditor").attr("name");
CKEDITOR.replace(CurrN...
I'm building a MVC web application with C#. Since the site will be multilingual, I've implemented my own ResourceManager. This class is responsible for fetching the required resource strings from a database/cache depending on the currents thread culture and works fine so far.
My problem is, I'd like to use the my custom ResourceManager...
I've this controller
public class AdminController : Controller
{
private IAdministratorService _administratorService;
public AdminController(IAdministratorService administratorService)
{
_administratorService = administratorService;
}
}
And I've this:
private ModelStateDictionary _modelState;
public AdministratorService(IRe...
I'm trying to model class and sections of a class and further instances of sections.
so route should be
Class/ (Create, Details, Index, Edit) for classes
Then I've a section controller
ClassSection
so I would do
Class/1/ClassSection/ (Create, ... ) since ClassSection without classid is useless
and then further
Class/1/ClassSecti...
I've defined the following route for a simple blog.
routes.MapRoute(
"Blog",
"blog/{year}/{month}/{day}",
new { controller = "Blog", action = "Index" },
new { year = @"\d{4}", month = @"\d{2}", day = @"\d{2}" }
);
The url should be able "hackable" to accomplish the following:
http://abc.com/blog/2010 -> shows all
posts in 2...
I've configured structuremap successfully but every page search for a controller with name "scripts"
public class StructureMapControllerFactory : DefaultControllerFactory
{
public override IController CreateController(RequestContext context, string controllerName)
{
Type controllerType = base.GetControll...
I'm having a problem with an ASP.NET MVC application that I'm developing. I'm still fairly new at web development and in particular MVC, so please forgive me is this is a really stupid newbie mistake ;-)
I have a view that displays a list of products. Each product has a 'details' link that I want to link to a details view for that produ...
The question title says it all. I need to get an instance of the application's MembershipProvider from within a controller. I have a custom membership implementation that has a custom User property that describes the logged in user. At the heart of the issue is that I need to retrieve this User object.
My application has done a skeletal...
i have slowly been moving from microssoft ajax to jquery for all my ajax stuff. the only thing i have left is some forms that are posting over using microsoft ajax by using Ajax.Beingform. This is an asp.net mvc site so submit should call a controller post action.
What is the simplest way to convert this to jquery so i can remove my r...
Can you bind to an object when posting with jQuery?
You can call this controller action
public ActionResult AddCar(Car myCar)
{
. . .
}
Where the properties of the form using the binding of ASP.NET MVC to populate the properties of the car.
If I am posting via ajax and jQuery can I do the same thing?
...
Visual Studio 2008 not picking up the MVC 1.0 project template.
The MVC 1.0 release is installed on my system along with .NET 3.5 w/ SP1 (prereqs).
I can't find the MVC template in the VS application's disk folders when manually searching. My folders are:
VS 2008 (9.0)
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\, rele...
I'm using MVC. I copied the login form from the login page and inserted into a new page (home controller, index view). I copied the code from the accounts controller into the index view. for some reason, i'm still not able to login. I'm not sure what's wrong as it looks like I copied the necessary code exactly. When I use the form on th...
I need to implement a functionality to allow users to enter price in any form, i.e. to allow 10 USD, 10$, $10,... as input.
I would like to solve this by implementing a custom model binder for Price class.
class Price { decimal Value; int ID; }
The form contains an array or Prices as keys
keys:
"Prices[0].Value"
"Prices[0].ID"
"Pr...
I do not understand this error, do not generate error in "JsonResult Test ()", I am doing other projects as ASP.NET MVC
Thanks
Error:
System.InvalidOperationException: This request has been blocked because sensitive information could be disclosed to third party web sites when this is used in a GET request. To allow GET requests, set J...