mvc

Codeigniter form_validation help

Hi there I am having a problem with my form validation, basically the problem is that I am getting a repeated view loaded if the validation fails, please see my code snippet, else { //the user is a new customer so we need to show them //the card details form $this->addViewData('returningCustomer', f...

VB WPF MVC (Model + View + ?)

Hi, I have an old VB6 application. I want to recreate it in VB.Net using WPF. But I am a bit confused about the "Model View Controller"-pattern. I have two books about design patterns (GoF and J.Bishop) afair this pattern is indeed not mentioned inside one of the two books. I have also searched the internet I found some java-examples. Bu...

Why does my MVC application report the GetExecutingAssembly Name as App_web_xxxxx.dll?

I am updating our CruiseControl.NET continuous integration environment from using the old Visual Studio 2008 Web Deployment projects to Visual Studio 2010. I do not want to use the Beta 2010 Web Deployment projects as I think I can make use of the updated Publishing/Packaging in 2010. Currently I have managed to configure the CruiseCo...

MVC2 LogOnModel not found.

So i've been working on a MVC2 application just to learn the ropes really. One thing i did not like about the default set-up is that the views, models and controllers were in a single assembly together. This was not hard to overcome, moved both to different projects and migrated each folders contents over. However, now time has come...

how to call renderpartial from spark

I'm using both spark and .aspx view engines. My partial is in aspx so i'm tring to call from my spark engine. I've seen something like the following ${Html.RenderPartial("HeaderControl")} Seems like i'm missing a reference, can't really see what. Dynamic view compilation failed. d:\Website\Views\Retailer\Index.spark(11,23): ...

How much directory separation should my framework have?

Hey guys, just a small question here.. (hopefully!) I've been trying a bunch of different directory structures for my PHP MVC framework. While doing this, I thought of a few reasons to separate different parts of the application from each other. For instance, let's say this is my current structure: - index.php - private/ - applica...

Communication between AS3 and an OOP PHP site

I have an OOP PHP site structured with a MVC pattern. A page on the site has an embedded SWF that needs to pull information from a database. In the past, I would have just had a procedural php file for the swf to load the data from the database from. However, that method doesn't seem like it would fit with a more objected oriented site. ...

ASP.NET MVC2 CrAzY Characters in View Output - WTF

Every once in a while when I'm running my app I get really "REALLY" strange characters in my output instead of the appropriate page. Now I know that this is because of some error, but unfortunately the error doesn't present it's self, but rather just produces strange characters. Here's an example of a complete page source code. �...

Auto generate grid using mvccontrib by passing datatable in ASP.net MVC 2 application

Hi, In My project i want to use the mvccontrib (http://mvccontrib.codeplex.com) to auto generate grid by passing the DataTable to the Grid. Currently Grid does not support this. Grid takes IEnumerable(Of T) and auto generate columns. Is their any way i can achieve this by passing DataTable. Or How do i convert the DataTable to IEnumera...

How do I define object base authorization in ASP.NET MVC?

I am creating an application for a video gallery, where I have different types of cds like audio, video, songs, movies etc. I need to give users access to only some of the cds types, for example only songs and movies. How can i achieve this in ASP.NET MVC? ...

Allow empty html tags in ckeditor

I am using ckeditor 3.1 in an MVC application. If an html tag is empty then it places &nbsp; in it. i want to allow div tag as empty(<div></div>), and no   to be get inserted(<div>&nbsp;</div>) . I have also used the latest code for ckeditor(3.3.1) but the same probelm persist. Do we have to make some manual change in any particular file...

javascript checking path already exists

how would i check if the file path already exists in javascript ...

Having a class and ID together in an HTMLHelper method. ie. Text

I saw this implemented somewhere but basically below I'm using the textbox HTMLHelper to draw a textbox with the id myID and default text 'text_goes_here'. I want to also add a class to thiis helper, i saw somewhere it implemented with new {@class =''} as a third parameter creating an object but im not sure exactly how its wrote <%= Ht...

FilePathResult or custom Action Result?

To send pdf files (or any other file type) to the browser, I've seen examples that use the FileResult class or a custom Action Result. Is there an advantage of using one over the other? Thanks ...

ASP.NET MVC autopostback drop down not working

With the following code: <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js" /> <script type="text/javascript"> $(function () { $('#selectOptions').change(function () { $(this).parents('form').submit(); }); }); </script> ... <% using (Html.BeginForm("PostedValue", "Home")) { %...

How to upload text to an ASP.NET MVC 2 Action from a Windows Application

I'm new to asp.net mvc and web development in general and would like to know the best way to pass text from a windows application written in c# to a asp.net mvc website so it can be stored in a database. Is it possible to call a controller action (via a url similar to REST) from the Windows application or do I need to create a web servic...

ASP.NET MVC Strongly Typed View With DropDownList

Long story short, I'm trying to add a few extra items to ViewData to make my life easier, and its an edge case that doesn't really justify its own model just for this one case. Keep reading for more specific details. So I have a strongly typed edit view for one of my objects, everything works great until I try to put a dropdownlist on t...

ASP.NET MVC Updatable List View

I can't find anyone doing this, and I'm trying to get my head around the best way to tackle this issue. I'd like to take the standard "List View" view in an ASP.NET MVC application, and convert all of the "Labels" to "TextBoxes" and then save any changes made to each record. The end result would function very similar to the List View i...

Logic in the Model or in the Controller with CodeIgniter?

Hi! I'm relatively new to CodeIgniter and the MVC philosophy in general, so I'm trying to clarify this before I make any bad habits. I have an application that registers. Users. Currently, the flow is like this: User navigates to the "somewebpage/register", which loads the "register" function of the controller Controller checks to se...

how to get class info. in attribute class which is written on that class.

hi all, [myattribute] class myclass { } myattribute:attribute { // here i need to access all properties with values and methods of "Myclass". } how can i get this..? ...