I am having the same problem as this post but the answer does not work....
No overload for method 'Pager' takes '4' arguments
Am I using old MVCContrib or the answer is deprecated?
my code looks like this:
in controller
public ActionResult Index(int? clubid,int? page)
{
List<aspnet_Users> memberList = new List<asp...
For anything under the Scripts or Content folders in my ASP.NET MVC application, I am getting the following error:
The page cannot be displayed because an internal server error has occurred
That's the response in its entirety (excepting the headers) - nothing else. I am hosting this on GoDaddy, and have not had problems with this a...
So I am an old web forms guy and new to the MVC (in general, not only ASP.NET) framework. My views are starting to look a lot like the good old classic ASP. Not that i'm adding any business logic or anything, but more of a presentation logic. I end up with a lot of <% %> tags and if/else statements for deciding links to display or styles...
Hi!
I'm trying to use forms.signout but sometimes it does not log out the user and he still can navegates through the website.
How can I resolve this? I also configured web.config forms authentication, but it's still not working.
I'm using FormsAuthentication to autenticate an user passing he's login.
Thanks!!
...
in asp.net mvc 1.0, there is a new feature for handling cross site request forgery security problem:
<%= Html.AntiForgeryToken() %>
[ValidateAntiForgeryToken]
public ViewResult SubmitUpdate()
{
// ... etc
}
and i found the token generated in html form keep changing every time a new form is rendered.
I want to know how these token...
We want to prevent other users from editing other users profile, still allowing a superUser to manage all profiles. I don't know the best way of doing this, I am sure I can accomplish it, I am mainly looking for the best way or best approach.
I thought about putting an IF before the line below that will show that line in that conditi...
[Authorize (Roles="group1")]
will not allow group1.
also, if I do Roles.IsUserInRole("group1"), its false despite the users role correctly identified in asp.net membership db.
what could i be missing?
EDIT: if I do this I can read the role, but not as above: Roles.Provider.GetRolesForUser("username")
...
Hi,
I am trying to deploy a MVC application on IIS7. The IIS is configured to integrated pipeline. When I am using the full path (for example: http://mysite/Controller/Action), I am getting - 404 Not Found.
The MVC is installed on the hosting server.
Does anyone have any idea what the problem could be?
...
I am creating an application and want that determine what pages are displayed in a menu based on the user login. I am creating an application controller abstract class to pass data back to the master page but the http context is not initialized when the code get called. I was trying to avoid filters but I am lost. Any thoughts?
publi...
I have jQuery similar to this on a view:
<script>
$(function() {
$("#yourID").makeAsyncUploader({
upload_url: "/Images/AsyncUpload",
flash_url: '/Scripts/swfupload.swf',
button_image_url: '/Scripts/blankButton.png'
});
});
</script>
I need to change the upload_url to ...
I have an application that is made up of 10+ related ascx files that we use to display our data on the users browser using the Html.RenderPartial helper.
I need to email the data that is a duplicate of what is on screen. I would like to be able to get the generated html without having to do a screen scrape.
Are there any suggestions a...
i have a query that returns large sets of records which i render on the view. I would like to add paging so i only show 10 records at a time. I also want it so when i click next, i just get the next 10 records without refreshing the whole page. what is the best way to do that using ajax to avoid redownloading all of my website images ...
I want to create a view from scratch for a controller action ... what i want to put in the view i have saved it in the database as a table .... can i do that???
if yes anybody can help ...
This article i already went through this article i wanted to implement this without the ruby .so i am starting from scratch...
...
I am using NHibernate/Fluent NHibernate in an ASP.NET MVC app with a MySQL database. I am working on an operation that reads quite a bit of data (relative to how much is inserted), processes it, and ends up inserting (currently) about 50 records. I have one ISession per request which is created/destroyed in the begin/end request event ha...
How do other people debug HTTPS sites from Visual Studio 2008? This link seems to indicate that Visual Studio's built in web server does not support HTTPS, but there must be some way to debug these sites, right? If not the integrated server, can IIS7 be set as the debugging web server?
...
I have a controller with the following action code:
public JsonResult CheckPasswordStrength(string password, string username, string firstname, string lastname)
{
...
return this.Json(jsonResponse);
}
Then in my javascript on page I call
$.getJSON('http://localhost/site/controller/CheckPasswordStrength', { password: 'test', use...
How to I format a query string so it looks like this
search?q=power+tools
currently it looks like this
search?q=power%20tools
Is there a way to do this without replacing the space for a plus sign?
...
Hi!
I've installed (in this order):
64bit Windows7,
64bit Visual Studio 2008,
Microsoft Free Web Platform Installer (WEB PI)
- installed iis7
- bunch of samples
- ...
asp.net mvc 1.0
Visual Studio 2008 sp1
When opening an existing solution with mvc web application in it, i get this error:
"The project type is not supported by this ins...
I want a Route with two optional args; I thought the following would work:
routes.MapRoute(
"ProductForm",
"products/{action}/{vendor_id}_{category_id}",
new { controller = "Products", action = "Index", vendor_id = "", category_id = "" },
new { action = @"Create|Edit" }
);
But it only works when both vendor_id and cate...
Hi All,
I know that there are a few questions like this on SOF, but I was interested if someone could succintly answer it with examples.
I am new to linq and mvc, and although a lot of it is sticking, I am finding it hard how to imagine that I can do lots of stuff with data. Here is an example.
Lets say that I have 5 tables, some of w...