http://localhost:6223/RssFeed/RssFeedsLang?lang=Dari&cat=News
How can I get the http://localhost:6223/ of the url? Basically I want to discard /RssFeed/RssFeedsLang?lang=Dari&cat=News in the url. How can I do that?
...
Hi guys,
I've built an ASP.Net MVC 2.0 site in VS2010, targeting .Net 3.5.
I'm trying to 'bin deploy' to a server running IIS 6.0.
The server is a 'test' virtual server running Windows Server 2003 R2 64bit, and .Net 2.5 SP1.
MVC has not been installed on this server.
I am trying to replicate the hosting environment where this applicat...
I need lightweight database for an ASP.NET MVC application.
would prefer not to install anything additional on the host box
would also prefer being a little more robust than XML
would like to use activerecord or entity frameworks
...
I have a very simple view-model in a dll that I want to keep separated from the main web mvc project.
I am decorating the model with metadata attributes that will help the ui display the correct presentation (DisplayName, UIHint, DataType, ReadOnly etc) and I would like to reuse this information with different presentation layers later ...
In MVC 3 Beta, is there a difference between the templates MVC 3 Partial Page (Razor) and MVC 3 View Page with Layout (Razor) ?
I added a partial page (_partialList) to my application. Now when I return only the partial view, it applies the Layout present in _ViewStart.cshtml - acting very much like a stardard view page with layout.
...
I need to get the user's name and ID to be accessible in my view. When I use Page.User.Identity.Name, I get the email I use to authenticate it. This is how I go about authenticating the user from my controller:
if (!userService.ValidateUser(model.Email, model.Password))
FormsAuthentication.SetAuthCookie(model.Email, false);
How ...
I am trying to use Html.EditorFor for a value where I need both a DisplayFormat attribute and an HTML attribute (specfically a CSS class) to be applied.
Html.TextBox ignores the DisplayFormat attribute, and Html.EditorFor will not let me pass Html attributes. Other than writing the HTML myself, what is the preferred solution here?
...
I have a control on my master page that I create using RenderAction. The problem I'm having is when I use a form somewhere else on the page it renders this action using HttpPost instead of HttpGet.
I get why it's doing this as the request is a post, however this is not the desired or expected result as the control was not in anyway inv...
I have a spurious problem which seems to indicate the index value got from the jquery each method does not always start at 0.
My javascript looks a bit like this:
$("#mylist").each(function(index) {
var obj = new myclass();
obj.property = "whatever";
obj.sequence = index + 1;
parentobj.list.push(obj);
});
This all ge...
Looks like others have had this problem but I can't seem to find a solution.
I have 2 Models: Person & BillingInfo:
public class Person
{
public string Name { get; set;}
public BillingInfo BillingInfo { get; set; }
}
public class BillingInfo
{
public string BillingName { get; set; }
}
And I'm trying to bind this straight into my ...
My aysnc test calls a controller that depends on some values to be present in session, also my controller has [Authorize] attribute on it. So when i run the test, it kicks me to the login page.
What are the best usage patterns in scenarios like this?
Thanks,
-Binu
...
Hi
I guess this is a pretty easy one :). I have an aspnet mvc view with a Beginform, that specifies an action and controller to hit on submit. But on submit I want to call a service using jquery to get some data and then submit those data with the form.
Currently I have a submit button on the form where the onclick event of the button ...
My ASP.NET MVC site requires forms-based authentication for some resources (downloads, discussion forum, etc). This works great with the [Authorize] attribute.
However, I need my admin site (`~/Areas/Admin/*) to authenticate against active directory.
With regular ASP.NET or classic ASP, I would just go into the IIS config and change th...
Here's my scenario: I have a view with a dropdown list and when the user selects an item in the list I want to dynamically insert a partial view which is strongly typed with the same Model as the parent view. I thought this was a fairly common scenario and would be pretty easy to do but I may have been mistaken (or just inexperienced).
...
Hello,
Let's explain the context: I have a person form inside a jquery dialog that has some tabs to group informations related to this person (Personal data, addresses, emails, position, etc.)
One of the tab show the Person addresses through an ajax call to this controller action
[HttpGet]
public ActionResult GetAddresses( int id, int...
I have this code for on ASP.NET MVC website:
x.For<AccountController>().TheDefault.Is.ConstructedBy(() => new AccountController());
This code throws a warning which seems quite self explanatory but for some reason when I use the "Use" method it doesn't seem to work. I know I am doing something wrong and would appreciate some help.
Th...
I'm busy upgrading my MVC site to MVC 3, Windsor 2.5.1, NHibernate 3.0 Beta1. And all previous versions worked fine.
But I am hitting a wall with Windsor:
[TypeLoadException: Inheritance security rules violated while overriding member: 'Castle.MicroKernel.DefaultKernel.InitializeLifetimeService()'. Security accessibility of the overridi...
hi,
i'm new to asp.net mvc. I'm displaying data from a linq to sql query but unsure how to render a a list of data in a 2 column table.
eg. A list of products. I've seen this example, but wondering if there are any other suggestions - http://haacked.com/archive/2010/05/05/asp-net-mvc-tabular-display-template.aspx.
Hence if i have 6 pr...
hi ...
I am using solr search in my mvc.net application, all the search is working well.
but now i want to post my xml to solr by code(c#), so plz tell me how i post my xml to solr using mvc.net c(#)
...
What's the best approach to develop multilanguage MVC web application?. What I envision is having a drop down with several language preferences on the master page. Selecting the language option would change the site's language/culuture.
The site would also use a different suffix for each language option. for example selecting a languag...