Would welcome any help.
I am learing to write code using ASP.NET MVC framework, I sort of sold on this concept.
My main stumbling block right now is how to setup and test a repository that replaces the database. To test out the MVC application, I have created a class and called it a fakerepository.cs This class implements methods fro...
I have an HTML form containing some textboxes and two jqGrids. The user selects items from the first grid, and that moves them into the second grid. I want to submit the data from the textboxes, as well as the selected items (ie those in the second grid) as part of a FormCollection object back to my Controller. What would be the best way...
I have various simple ASP.NET MVC views for CRUD operations which work fine on their own as a simple webpage. I will now integrate them into the website itself (into the content) and have for instance links like "Create new post" which would fire up the view in a chosen Lightbox clone (don't know yet which one, maybe Colorbox or Thickbox...
Hi
I have an MVC site that I would like to allow the owners to edit the content of the views in the style Adobe Contribute allows for traditional WebForms sites. Obviously due to the nature of routing in MVC, the URLs do not map to physical files on disk so this becomes a problem for a tool like contribute. Are there any other tools out...
Hello gurus,
I have designed simple state machine workflow that contains a few states: intial state is (A) "Waiting for documents", (B) second state "Calculating", (C)last "Done";
State (A) has an event driven activity which handles an external event called DocumentsReceived if this event is invoked, the state would be set to state (B)...
I have a home page with a search box and a button on it.
I click the search button and i go to a results page.
the results page also has a search button and when i click it i get the error Validation of viewstate MAC failed
<% using( Html.BeginForm("Result", "Search" )){ %>
<%= Html.TextBox("SearchText", Model.SearchText)%>
<input val...
I was wondering if I could send an email with video, where i can embed my wmv or any video files from my website on to a email so that when customers open the email they can click play and watch the video?
Or Can I include youtube video directly into email. So that the users can directly watch youtube video on their email?
Thanks.
...
I dont think i quite get the Ajax functions in mvc, because i get this wierd problem.
I got the following code which makes my ajax call, it is placed in a partial view with a productList:
<% using(Ajax.BeginForm("AddToBasket", "Basket",
new { productID = item.Id },
...
Hi, all
I want to use an example to explain what I want.
Assume I've following DB design:
Item (id, name, categoryID);
Category (id, name);
When user wants to create an Item (fill in form), I'll give a list of categories in a dropdownlist, and when user chooses one of the categories ASP.NET MVC will automatically bind categoryID, to...
It's been a year since this question and I'd like to know now - what view engines are people finding very good and why?
...
Ok this seems like an easy one:
In c# asp.net mvc I can declare some public class like:
public class Foo {
public static string Bar {get
{return "bar";}
}
}
and access it from any html like:
<%=Foo.Bar;%>
right?
Well, I have to do the same in ASP.NET MVC VB.Net but I cannot access any variable or method:
public class Fo...
I just ran into trouble with the AreaDescriptionFilter of Spark using MVC 2 Beta.
The following line is from my Application.spark file. It results in the view engine looking in all possible locations of the view - except in the folders of the area "Shell".
# Html.RenderAction("ShowMainMenu", "Navigation", new { area = "Shell" });
Run...
I have a simple form for searching for a user
<p>Enter a user's id number to search:</p>
<% using (Html.BeginForm("Search", "UserAdmin", FormMethod.Get)) { %>
<%= Html.TextBox("id") %>
<input type="submit" value="Search" />
<% } %>
I want this link to go to useradmin/search/{id} but the link is rendered as useradmi...
I am getting 403 error when publish an Asp.Net MVC app to IIS6. Any clue?
...
By default, ASP.NET's membership provider redirects to a loginUrl when a user is not authorized to access a protected page.
Is there a way to display a custom 403 error page without redirecting the user?
I'd like to avoid sending users to the login page and having the ReturnUrl query string in the address bar.
I'm using MVC (and the A...
I suspect I may be wording this question incorrectly (it’s been a while since I’ve done anything in the Microsoft space) but here goes.
In essence, I’m trying to programmatically access an XML document with the ~/Content directory. I’ve tried to do this along the lines of…
XElement resourceConfigXML = XElement.Load(@"~/Content/resource...
Hello gurus,
I'm running a state machine workflow to control user interactions with the website. The workflow runtime is hosted in asp.net. I was able to get it to work as I wanted it to but still the event fired to transition a state in the workflow doesn't always transition the state. This makes me question the integration of WWF w...
Simple question:
Where should I place [assembly: NeutralResourcesLanguageAttribute("en-US" , UltimateResourceFallbackLocation.Satellite)] for an ASP.NET MVC application?
On the HttpApplication class in Global.asax.cs?
...
I'm new to MVC. I'm having trouble trying to accomplish having a route setup in the following manner:
System/{systemName}/{action}
Where systemName is dynamic and does not have a "static" method that it calls. i.e.
http://sitename.com/Systems/LivingRoom/View
I want the above URL to call a method such as,
public void RouteSystem(str...
Hi,
I have created a custom ResourceProvider to pull localization information from a database. I now want to use DataAnnotation to add validation to the model.
DataAnnotation has ErrorMessageResourceType and ErrorMessageResourceName properties but ErrorMessageResourceType only accepts System.Type (ie a compiled resource file)
Is there...