asp.net-mvc

Best method for Website Automation?

Let me rephrase the question... Here's the scenario: As an insurance agent you are constantly working with multiple insurance websites. For each website I need to login and pull up a client. I am looking to automate this process. I currently have a solution built for iMacros but that requires a download/installation. I'm looking fo...

Ajax.Actionlink, how to get the form data to the controller action

View <%= Ajax.ActionLink("Create", "Create", ViewData.Model, new AjaxOptions { HttpMethod = "POST" })%> <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %> <% using (Ajax.BeginForm("Create", "Customer", ViewData.Model, new AjaxOptions { HttpMethod ="POST" })) {%> <fieldset> ...

Best Practices when Implementing IModelBinder

I'm looking for a set of best practices to use when implementing IModelBinder. I've read three different MVC books and each one does some slightly different stuff in their implementations without any real explanation. The Hanselman, Haack, Guthrie, Conery book doesn't even mention IModelBinder Palermo recommends extending DefaultModel...

Unable to bind ID Property to the View,due to conflict with ID Property of System.Web.UI.Page in asp.net mvc.

While debugging into view i did a quick watch and i found that for "ID" its showing a GUID due to that i had to change the name of the property in my model as i had property by the name ID, i had problems when binding the value from the session to the textbox. Is there any other way besides changing the name of the property? ...

help with 2d array form in asp.net mvc

http://www.plus2net.com/php%5Ftutorial/array%5Fcheckbox.php the link is my reference in PHP i want to ask how can i archive the samething with 2d array of data in asp.net mvc. if posible please show me some example, i can't find any info. I remember that php did this very easy. or even in ruby on rails. elementname[][] thank you ...

Looking for direction on Classic ASP 2.0 Resources (coming from .NET)

I have a classic ASP 2.0 project coming up. I mostly do ASP.NET WebForms and more recently MVC. I did a little bit of ASP many years ago. Do you have any book recommendations? If I find a 3.0 book, would that confuse me too much? Any specific resource on the net for getting up to speed that you recommend? And lastly - how do you fe...

Dependency injection and ASP.Net Membership Providers

I am in the process of creating a custom membership provider for an ASP.Net MVC website. The provider is being created as a separate class as part of a bigger library. There is a need for the back-end data store to be flexible as it could be an Xml File or SQL database. My initial thought was to create an interface for the data store and...

Are the MS MVC framework and jQuery suitable for a long-lived application?

I'm working on a web-based application that is intended to have at least a 6 year lifetime. Once the application is delivered, chances are that it won't be modified during that time frame. We're considering using the asp.net MVC framework and jQuery, but I'm wondering if that's a good choice. The customer is probably not going to want...

What have your ASP.Net MVC deployment experiences been?

I've been waging a bit of a battle with MVC recently, trying to get it deployed and working correctly on my web host server. While the host (ixwebhosting) has been very prompt and efficient at resolving some of the technical difficulties, I'm still encountering odd behaviours around getting the views to render. Specific issues I've str...

How to access the MVC current Action

Hi I have an MVC application used with CWAB. It is a modular MVC application and using CWAB to dynamically load the MVC modules. I wan to access the current action of an MVC module within CWAB. CWAB project also reference System.Web.Mvc dll. Any suggestions? ...

Internet Explorer Post Data Bug - ASP.NET MVC

I just started playing with MVC and I've run into a roadblock. I'm using a partial view as a User Login flyout on the header of each page using OpenID. When the user clicks on the provider (similar to stackoverflow) it authenticates and then either returns to the calling page or redirects to the signup page. The code works flawlessly ...

CKEditor and MVC

I have integrated ckeditor into a MVC asp.net project. My problem is that the input is encoded back to the controller and then when redisplayed in a view the contents contain the encoded characters & html tags. How do I show the inner html and still have the text encoded. Any suggestions would be appreciated. ...

How should I handle Authorization/Authentication in my Asp.net MVC app?

I am creating an Asp.net MVC application and I'm currently using the built in Authentication/Authorization code that comes with the sample MVC app. For the most part this is working ok and I kinda understand what's going on. What's concerning me though, is that now I kind of have my users stored in two different tables across two datab...

ASP.Net MVC vs ASP.Net Forms

Why would you consider using ASP.Net MVC or standard ASP.Net with forms and controls for a web project? Apart from personal preference what would be the reasons? What sort of projects do you find more suitable for MVC and what projects for normal ASP.Net? Would you consider transferring your current projects to one or another? ...

For argument's sake, how will i convince someone that Linq2Sql is far better than Data Access Application Block in an Asp.Net MVC project?

How will i convince someone that Linq2Sql is far better than Data Access Application Block in an Asp.Net MVC project? ...

Upload Excel File and display in Grid in asp.net MVC

I need to export the Users List from excel to my asp.net mvc(C#) application. The Excel should have an header like First Name Last Name Email,... and its values like                                  John          Smith           [email protected],                                                               ...

open a network file from an intranet web application

I am currently building an intranet applicaiton using asp.net mvc and I am wondering if there is a way to link to a file or folder available on the network. I tried simply <a href="G:/folder/">open folder</a> But obviously that won't work as it just gives the output: file:///G:/folder/ which doesn't actually open to anywhere. I unde...

Access code in a View via reflection

I have an HtmlHelper CmsEntry that is used like this <%= Html.CmsEntry("stores.buyourstuff")%> This helper is used lots of times and I want to generate a list of all views that contain this helper. The list should contain the Viewname and the key ("stores.buyourstuff"). Is there a tool or some sample code that already does this? ...

How to send the Id of this anchor as a function parameter?

Edit: Sorry guys, I got the issue, Misspelled class name :( Hey, I got a quick question for your guys here. I have some anchor tags each of them points to a url of a certain user. The link id is the username. All the links share a css class (.userset). When a user clicks the link I need to issue an Ajax request -using jQuery.ajax metho...

Which validation library for ASP.NET MVC?

Hi, I'm trying to decide what validation approach to take for a new ASP.NET MVC project. (And wow there are plenty of options!) The project uses NHibernate, so the first thing I considered was the NHibernate Validator (Because of tight integration with NHibernate). However, as far as I can see there are only a couple of benefits to th...