Hi, i must be doing something wrong or maybe i don't get this. I'm trying to fill 'PropAllMenus' (that has a bunch of properties) with data coming from my entity framework. However, when doing the conversion trough a function i get a 'InvaldCastExeption' in my 'WeekMenuRepository'. Here is the code:
PropAllMenus
Public Class PropAllMen...
Hi there,
Is it possible to make my application ask for username and password prompting for it before render a view?
Just like on twitter API to get information about your account:
http://twitter.com/account/verify%5Fcredentials.xml
So before render the view || file it asks you to insert you username and password, I think this is made ...
I'm using a helper class to build my hyperlink. The markup looks like this:
<a href='/controller/action?id=val'></a>
This is the same markup that the Html.ActionLink() produces. However, if I use the Html.ActionLink(), the id is accepted as a parameter in the method inside the controller. If I just generate the a tag in a string like ...
I am using jQuery Autocomplete and MVC to populate a dropdownlist with a bunch of column names.
Whenever a user changes the value of a DropDownBox on my form I make a request to my controller to return a new list of columns (as an array, wrapped in a JSON Result) that will populate my AutoComplete boxes.
My Problem is that the autoco...
I added wildcard mappings to my website in IIS 6.0 so that my MVC application works properly but now I get a page can not be found for every request. Once wildcard mappings are inserted I can not browse to a test html file I created or any of my routes.
The site works fine when the wildcard mappings are off and I create a application ex...
I'm writing a simple news site. I want that the URL will be something like this:
http://domain.com/killing-puts-focus-on-crimes-against-latinos
...instead of the basic Controller-View-ID structure. I do not want something like:
http://domain.com/news/killing-puts-focus-on-crimes-against-latinos
How can I do this?
Thanks.
...
Hi,
I am learning ASP.NET MVC now a days and I have found that most of the examples in ASP.NET MVC are with ORM. I don't have any issue in using ORM for my learning and personal project. But at my work we have worked only with ASP.NET web forms and we use stored procedures only. We have data access layer (simple c# classes) as interface ...
Hi,
I have a local install and a live install. My live install is working except I changed one of the methods to be restricted via [Authorize(Roles = "Admin, Host")] I want to remove this, but I need to do a build of the solution and move the .dll over for it to work (correct me if I'm wrong).
I cannot build the solution because my loc...
Hey guys, i've got uploadify handling some file uploads on my mvc project and that part is working very nicely i just want to know what i will need to add to my controller action to get access to scriptData variables that i am passing from the uploadify javascript
EDIT for some more clarification:
my uploadify script is as follows:
va...
I cannot find any examples on how to do a Bulk/batch insert using Linq to Entities. Do you guys know how to do a Bulk Insert?
...
If an ASP.NET MVC application using Data Annotations...
<%= Html.ValidationSummary("Things broke...") %>
<% Html.EnableClientValidation(); %>
And we post to the server. Won't we still hit the action, check the ModelState.IsValid and come back to the original view with the validation error. Is it still considered client side validati...
What is an elegant way to leverage the existing [HandleError] and [Authorize] attributes when dealing with XHR calls from javascript?
So, say for example a method GetJson which returns a JsonResult.
When an error occurs, the [HandleError] method will send back a ViewResult which will be retrived in the callback function in javascript.
...
I keep getting errors like this after my pages are done refreshing.
The controller for path '/S43G/S4_Manager/WebResource.axd' could not be found or it does not implement IController.
but I get the error for any file that does not exist on my hard drive. regardless of extension
(.png, .css, etc)
I've tried all of the following to fix ...
What I'd like to do is pretty simple in theory: a Google map is on the left, and a list/table is on the right. Each item in the list/table is plotted on the Google map. As you zoom in and out on the map, the list/table is 'filtered' to only show the rows that are visible on the Google map. Is this something that is possible?
Edit:
My l...
I have a secure form (attribute action="https://...") in an unsecured (http) page. The purpose is to transmit data securely while avoiding mixed content warnings ("some items are unsecured") due to unsecured Google Maps element on my page.
When the form posts and succeeds, everything is fine. However, if the form fails, my user ends u...
I have a library that I created with some business logic that includes writing to a System.Diagnostics.EventLog instance. The library is normally called from a Windows Service application, but now I'm trying to call those same library functions from my ASP.NET MVC application.
I tried this code inside my controller to create the EventLo...
Hi,
I am using the Spark view Engine instead of the default ASP.NET view engine and I'd like to be able to add a 'spark' view instead of a 'ASP.NET' view when adding a new view to the project. I assume this would just be a template of some kind but I can't seem to find it.
for example I want it to generate a view something like this;
...
I see my product’s bag ViewShoppingCart.ascx
<%= Ajax.ActionLink("Посмотреть карзину",
"ViewShoppingCart", "Products",
new AjaxOptions { UpdateTargetId = "content" })%>
And I want to change the quantity in ViewShoppingCart.ascx.
<%using (Ajax.BeginForm("UpdateItem", "Products",
new AjaxOptions { UpdateTarget...
In a web application i'm working on, items can pass through multiple states (eg. workflow) and after each workflow a rule can be run after each step which can stop the process or display additional messages.
How should these rules be defined?
I was thinking about a dll per rule (and hooking them up either with MEF or events) but one a...
Are there any debug visualizers for Visual Studio for MVC?
Would be great to be able to visualize things like ModelState, ViewState, Routes etc.
If you're interested in this just favorite the question. If it gets a lot of favorites I'll think about writing one
...