mvc

roleManager causes invalidOperationException in Default.aspx.cs

Hi, I'm trying to implement a customRoleProvider in asp.net MVC 1.0. The class looks like this using System; using System.Web.Security; namespace Project.Web.Services { public class CustomRoleProvider: RoleProvider { public override bool IsUserInRole(string username, string roleName) { throw ne...

How to host ASP.NET MVC site in a subfolder

Hi! I'm trying to run a little ASP.NET project in a subfolder of my hosting. My domain is www.gorangligorin.com, but i want to run my app in www.gorangligorin.com/testmvc. ASP.NET MVC runs with no problems on the top level, but not in subfolders. The server says this (line 58 is colored red): Line 56: ASP.NET to identify a...

ASP.NET MVC MEMBERSHIP

I have just created a user in ASP.NET MVC ,and i want to insert him into Membership table. How can i do that? , because i can`t insert into Membership_Users thanks ...

Adding tags to posts in Ruby on Rails

I am creating a blog in Rails using the Scaffold feature. I would like to add a 'tags' field to each post like on StackOverflow and Wordpress. I can do this with a string type ( scaffold post title:string body:text tags:string ) and then comment seperated but this isn't a good practice, since I also want the reader to be able to browse b...

newbie question about css property set up in Web developer 2010 Express

I am relatively new in C# and ASP.NET MVC. There is something unusual that happens and it could be a simple property setup... I have a MVC Web app and a css file associated with it in my Content folder. Now everytime I do some changes in the css file I don't see these changes when I run the app. It seems that whatever I do the app keep...

codeigniter pagination customizing

Hi everybody, I am browsing trough the CI documentation particularly http://codeigniter.com/user_guide/libraries/pagination.html . First thing that was stuck in my mind was "CodeIgniter's Pagination class is very easy to use, and it is 100% customizable, either dynamically or via stored preferences." but there always but something. My...

ASP.NET MVC 2 LINQ-to-SQL generated classes and Model Validation

Hi, I just want to make sure I understand correctly the best practices for ASP.NET MVC2 with LINQ-TO-SQL. Please correct me if I am wrong at any of the following points: LINQ TO SQL generates classes for you, based on your tables The generated classes are Models Those are the models we are supposed to use in the Views If we want to a...

What version of .net will MVC 2 require?

Will MVC 2 run on .net framework version 4.0 or 3.5 sp1? Has Microsoft even made an announcement yet as to what the requirements are? Also, Will MVC 2 be an installation separate from .net 4.0 or will it be installed with 4.0? ...

Which are the J2ME MVC frameworks?

I have to do a quite big project in J2ME for school. I didn't used 'till now J2ME, so are there J2ME MVC frameworks for which I can find books or at least very good online tutorials? MVC is what I'm looking for because we have to do unit testing and I'm familiar with MVC from ASP.Net MVC, Rails and Grails. So, any good framework to use ...

Could this be C# Model View Controler console app in and if not why ?

Just trying to grasp the MVC by doing ... and still not sure got it right .. using System; using System.Text; namespace MVPConsoleApp { class Program { static void Main(string[] args) { View objView = new View(); Controller objController = new Con...

Adding a link to a static file with a custom URL on Symfony

When using Symfony 1.0, is it possible to create a link to a static file i.e. a PDF or DOC file and link to it a custom URL? I'd like to add a file e.g. example.pdf to the web/uploads/pdf folder on the server but then link to it with a URL such as: http://www.example.com/docs/old/test/example.pdf This situation has arisen because some ...

Help, first codeigniter application

Help, this is my first Codeigniter app and I am having the strangest problem, the View is not getting the values of the variables from the database. I followed this tutorial, and instead, when I load the page, the values from the foreach loop show like this $value instead of displaying the actual contents in the database. I'm confused! ...

MVC: actions that don't exist

Hi there, Ihaven't done much MVC and still learning the hard way on how to do things. MVC 1 and C# The Problem I want to provide a customer with a link such as www.temp.com/redirects/cust100?id=123&url=www.nothere.com from the URL i know it will go to the controller of "redirects" but there isn't an Action of "cust100". How do i creat...

Best Small & Mid-Size Application Arcitecture

I am Developing a mid-size application and want to implement Application Architecture, I've read some Architecture Books and Approach and think about AAFN (Application Arcitecture For .net) presented by Microsoft SOA SDLM SDO MVC and vice versa ... this is a web application that will extended with some other small application ( j...

MVC Routing problem

I am learning MVC and I need to understand why it doesn't work the way it should. Here is my routing : public static void RegisterRoutes(RouteCollection routes) { // Note: Change the URL to "{controller}.mvc/{action}/{id}" to enable // automatic support on IIS6 and IIS7 classic mode //http://localhos...

Codeigniter cookies

I was hoping someone, could give some information on Cookies and Codeigniter, I have read there user guide on them so I have an understanding of how to set them, etc. What I want to know is how do I use for example if you look at the BBC website, you can drag and drop the boxes and it will remember where you placed them with out the need...

Controller <-> Service component interaction

UPDATED: I have a desktop application, with the following components interacting: Winforms UI. Service (in-process C# class that contains business logic to actually do stuff). Controller (C# class that coordinates events raised by the UI and calls service methods). If a controller asks a service to do something, but that service nee...

PHP MVC view looping

I have a template for a "blog preview" - which is basically just a thumbnail, title, and short excerpt of said blog in a nice concise structure built for repetition in a list. As hinted above, I intend to pull the top 10 blogs on my site from the DB in my model, transfer them to the controller, which will supply them as for the view. In...

Model Data Type versus View Control

I have having a little trouble wrapping my head around the design pattern for MVC when the data type of the model property is very different than what I wish to display in a form. I am unsure of where the logic should go. Realizing that I am not really sure how to ask the question I think I will explain it as a concrete example. I have...

Understanding Smarty and MVC Frameworks

Hello there, I just created this thread to discuss with people who have adopted the smarty system, and how many time it took to you to understand it, because i just can't get the idea, instead of making every easier as everybody says i think it just make more complex to code. More than a problem with only smarty is with the whole MVC m...