I have a ASP.NET MVC application. The code in the aspx is like that
<input '<%= ViewData["Disabled"] %>' class="Text1" type="text" name='test' value='0'/>
ViewData["Disabled"] contains at this state a string =
'disabled="disabled"'
the result in firefox:
<input class="Text1" type="text" value="0" name="test" disabled="disabled"...
for more info of what I mean here is a quote from the user guide of the php mvc framework CodeIgniter
CodeIgniter supports "flashdata", or session data that will only be available for the next server request, and are then automatically cleared. These can be very useful, and are typically used for informational or status messages (for...
I'm looking for a good framework for PHP and see most offer the MVC approach, are there any other (or better) design methods/approaches that would be considered more efficient or best practice? MVC is starting to look dated but I wanted to know if it's still considered the industry standard.
...
Hi Everyone,
I am trying to add some simple validation to my asp.net mvc form and am having trouble getting the .input-validation-error class to be added to my inputs. The validation-summary-errors and .field-validation-error work fine. Thanks in advance for your help!
Edit: Thanks for everyone's help!!! I had to add this line to t...
Hello all
I am starting a new project with my new employer. I am used to developing applications in Ruby on Rails. The team I am working with are more orientated to PHP and have decided they would like to use Zend framework for our new project. I am already reasonably familiar with PHP but not Zend.
I am looking for any resources that ...
I'm trying to wrap my mind around the MVP pattern used in a C#/Winforms app. So I created a simple "notepad" like application to try to work out all the details. My goal is to create something that does the classic windows behaviors of open, save, new as well as reflecting the name of the saved file in the title bar. Also, when there are...
Right now it always goes to default.aspx that subsequently opens the default controller but I would like to go directly to the controller I am editing when I hit the debug button.
...
I'm about to start working on a new project at a somewhat new job, and I've run into a bit of a problem. They're not big fans of MVC.
The reason why this bugs me is that they claim they're currently using the Zend Framework when they're really not. They're barely using the DB model classes, and that's about it. No MVC, no extending of Z...
I'm thinking about frameworks. I know they make life a lot easier, but as far as I understand they also significantly burden the server, don't they?
I'm looking for some kind of benchmarks, famous frameworks to basic php comparisons.
I have a will to create a kind of my own framework - a way simplier (no ORM and other cool stuff, only ...
Hi, I am a .net mvc web developer trying to understand how open source licenses work; more specially the MS-PL license. I would like to create a commercial web application based off an open source project that comes with an MS-PL license. I know I can modify the software and use it for commercial use, but do I need to include the MS-PL l...
I need to maintain an xml column in a SQL database.
a) in my details page - I just want to display this column as "pretty" xml - like the browser would.
So instead of one big block of xml (e.g. <foo><bar><data>one</data><data>two</data><data>three</data></bar><other>something else></other></foo> ) I want it split out with each new tag o...
Is there a shorter version of the following:
Using ASP.NET MVC, this is in the HTML page
<%= IsTrue ? Html.Image("~/images/myimage.gif") : "" %>
I know I'm only really writing 3 extra characters, just wondering if there is something better.
...
since my app has a sidebar menu that gets built dynamically through an xml everytime I want to load a view I need to pass all of this parameters.
ViewData["mainItems"] = navigation.getItems();
ViewData["controller"] = controller;//this is just a string with the name of my controller
how can I avoid doing this everytim...
Hey everyone,
I have a simple question. Is it possible to call a controller method from a model? I can't seem to figure it out if it is possible. Should I just be returning something from the model to the controller rather than trying to call a method directly?
Thanks,
Pat
...
Hello guys,
I have a problem using Form Authentication.
When using IE everything is working fine using Form Authentication. But with firefox and chrome the value for User.Identity.Name and IsAuthenticated is always empty. The scenario is like this I have an ajax call to the controller ($.ajax.....) and in my controller I have their a f...
I've been reading this paper: Enforcing Strict Model-View Separation in Template Engines (PDF).
It contends that you only need four constructs within the views:
attribute reference
conditional template inclusion based upon presence/absence of an attribute
recursive template references
template application to a multi-valued attribute s...
I haven't used Rails, but I'm somewhat familiar with it. I'm more familiar with CakePHP. I get the idea that CakePHP is modeled after Rails, and they seem to have a lot in common.
But, basically, I'd like to know if patterning itself after Rails is, or has ever been, one of the goals of CakePHP? I understand it's not a port, but is R...
I'm still somewhat confused by how MVC is supposed to work.
Lets say I have a website selling widgets. I have a listing page, /widgets/list and a product page /widgets/product/123.
Both of these can use the widget controller and call the list and product methods - simple enough so far. Lets say I also have several other controllers f...
Hi,
In asp/net MVC, the project is divided into Models, Views and Controllers. Fine so far.
Say I have a Class 'person', which the people controller populates with data, using the person model.
Where is it best to put my person.cs class? In the controllers or the models folder? What do you do?
Thanks
Frank
...
I have a asp.net MVC app and I'm trying to get the jqgrid 3.5 to work in it. My grid does not use paging features but I want to use the page navigator bar for edit buttons. My grid within a jquery tab control on a content page. Displaying my data works fine in the grid but when I add the .navGrid() extension and options to it it breaks t...