mvc

Is is possible to use jquery datepicker for fetching data from db on selecting particular date ???

Hi, I'm using the JQuery DatePicker for exchange rate dashboard.How can i retrieve data on clicking specific date.The datepicker should fetch data from database and should display on text fied. The dates should be mark and clickable, and it should navigate to the particular Day Exchange rate Detail when the user clicks on one of the dat...

Where do I set common data for header in Pylons?

This is rather a general question about MVC. I have a set of templates for multiple controllers and their actions. All of them inherit from a overall template that contains footer/header. I want header to render email of currently logged in user. Common task. All tutorials are too simple to have basic example of how and where do I pa...

Exception handling - Is there a better way?

Hello guys/girls, public bool AddEntity(int parentId, string description) { try { _connection.Open(); SqlCommand command = new SqlCommand("INSERT Structure (Path,Description) " + "VALUES(" + GetPath(parentId) + ".GetDescendant(" + GetLastChil...

linq to sql joining two table

how can i do a join in this query to another table dynamic list = _db.Users.Where(m => m.vcr_UserName != "superadmin" ).OrderByDescending(m => m.int_UserId).ToPagedList(Cpage, defaultPageSize); i must have a topagedList there ...

Codeigniter objects in views

Hi There, I have started a new project at work today and a fellow developer has asked me to look into changing the way I work and implementing objects into my views to I can do checks within my view using the object. To me this seems wrong, as surely this is the work of the Model and/or controller? Or am I wrong? I assume he is wanting...

Inserting markup into hidden jqGrid column

Hi there, Got jqGrid up and running nicely where I've got a hidden field that contains some markup, just a table of data, and when I hover over a grid row the markup for the hidden column in that row appears in a tooltip. I want to be able to duplicate grid items and in doing so I want to clear the grid and repopulate with only the dupl...

MVC make action link perform a submit

I am currently trying to make an html submit occur, but using the MVC helper method ActionLink as I do not want it to be a button, I want it to be an underlined link like the rest on my page. This is what I have currently <%= Html.ActionLink("Delete Selected", "DeleteCheckBox", "Domains", "Default.aspx", new { type="submit" }) %> This...

Asynchronous PureMVC in Python

Taking the following code from here, from the shortened version at the bottom, exists this proxy: class DataModelProxy(puremvc.patterns.proxy.Proxy): NAME = "DataModelProxy" def __init__(self): super(DataModelProxy, self).__init__(DataModelProxy.NAME, []) self.realdata = Data() self.sendNotification(AppF...

Pass model from strongly typed view back to a controller action - mvc2 VB.net

Hello hello. Here's what I have. I have an MVC application where all the data is tied together by VisitDate table in my database. The home page is a strongly typed view of type VisitDate, all it does is pull up some simple data. Now, here's where I'm having a problemo. I need a link that passes the current model in the view back to a sep...

Paging with SubSonic

I am building a MVC 2 application with SubSonic 3 - I have tried many differant paging methods and can find nothing that feels right. I have a basic query that would be passed to a view which would loop and each iteration would call a strongly typed partial view. var SOQuestion= ( from q in repo.All<SOQuestion>() ...

How can I use another view if a specific parameter is given?

I have an action called new: def new @bookmark = Bookmark.new respond_to do |format| format.html # new.html.erb format.mobile format.xml { render :xml => @bookmark } end end Now, when the param[:widget] == "true", I want to use a lay-out other than application.html.haml, and I want to show another v...

Moving Url.Action into Jquery/JS? (MVC Web App)

Environment: ASP.NET 3.5, MVC 2 Web App, in the View file Index.aspx I have the following jqGrid (excerpt of code): $("#list").jqGrid({ url: '<%= Url.Action("GridData") %>', datatype: 'json', This is in an inline JS function called populateGrid. I need to move this function out of the View and into its own JS. In ...

Accepted Common Pattern for Throttling Login (or other) Requests in a PHP MVC Application

Is there a commonly accepted pattern (or class library, or etc.) for throttling certain form submissions for PHP MVC applications? I'm specifically thinking of the scenario where someone is running a dictionary attack against one of your login forms, and you want to block them after X requests in Y seconds, or if a certain pattern of re...

Linq OrderByDescending ThenByDescending Issue

Hi im having a problem with ordering with linq. I have a object with two datetime fields. One just stores the date (e.g. 8/2/2010) and leaves the time as all 0's While the other datetime field is created when the record is made and has the time on it as well. The idea of these two field are because I may want to add a "Headline/article"...

how to display the item in the listbox using jquery

hello Friends, I need to display the Items in the Listbox with Checkbox for each item. using jquery or asp.net mvc? can any body tell me how to do this kind of thing? thanks ...

PHP MVC question

Given a Controller class and a View class, is it better for the controller to directly assign values to view properties or, is it better to assign values to properties in the controller and then copy those properties to the view when ready to display it? Example Model Class class Model { public $propertyA; public $propertyB; } Ex...

MVC: How to encapsulate logic in MVC ascx partial view with the same efficiency of webforms ascx controls?

Hi, I have to build a few ascx partial views in my MVC applications to encapsulate re-usable functionalities as well as archive SOR and SOC. However, I encountered challenge how to encapsulate the business logic that drives MVC ascx views. In webforms, the code behind of an ASCX control can handle a button click event and browser stil...

Jquery problem:validation code not working.................

i'm using jquery in report section in my asp.net mvc project.But i had problem with jquery validation.Here code don't work and doesn't show any message when the date input text field is left blank. $(document).ready(function() { $("#FromDate").datepicker({ showOn: 'both', buttonText: "select Date", dateFormat: 'M d, yy' }); ...

Share a image between two websites by using asp.net mvc?

I have two web applications which need to show products' images, but how to let them share the images? for example, I have websites with urls: http://www.test.com and http://backend.test.com how could I upload images, store them and share with this two websites? Many thanks. ...

how can i start with MVC for php?

Possible Duplicate: What PHP MVC framework can you recommend? I've decided to start my next project using MVC structure.. Until now , i haven't used any framework or php editors , project designer tools for any of my previous projects... And all of them are working charm... But i decided to use MVC because the project may ex...