Can PHP communicate with XSLT?
I want to use a combination of xml & xslt as a templating system. The question that I want answered is: can xslt and PHP communicate with each other (i.e share variables)? ...
I want to use a combination of xml & xslt as a templating system. The question that I want answered is: can xslt and PHP communicate with each other (i.e share variables)? ...
Hi friends, Is ther any user control for displaying data(like gridview in asp.net). Actually i found many control which works but, i cann't reuse it. Because in each and every page i need to put the same logic. Is there any control which I can re-use for all pages? How I create user control in MVC for GridView.?? ...
how can i disable the list box Html.ListBox("Organization", Model.OrgListbox as MultiSelectList) ...
I try to use the jquery + json to get all elements in form and build a JSON var to post in a ASP.NET MVC method. $.fn.serializeObject = function () { var o = {}; var a = this.serializeArray(); $.each(a, function () { if (o[this.name]) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; } o[this.name].pu...
I am working in asp.net mvc application. During the initial load of my view, my controller returns a list which has some decimal? properties in it. Say one account has amount = 31.56 and other account has amount = 30.00. I am doing a lot of jquery stuff in my UI to bind these items do some computations using account.amount. There is a ...
If you look at the example at this link: http://www.atlanticbt.com/blog/asp-net-mvc-using-ajax-json-and-partialviews/ How would one write a unit test for the JsonAdd method? I have a similar situation in my own code, but the RenderPartialViewToString errors when calling: ViewEngineResult viewResult = ViewEngines.Engines.FindPartial...
Hey folks, Asp .NET MVC 2 apps started from Visual Studio 2010 are damn in my opinion. It takes 2-5 seconds to refresh or open a new page. Do you have the same problem? Do you know if this ASP .NET MVC 2 debug mode can be somehow sped up? I work at 64 bit computer, Windows 7 and Visual Studio 2010. ...
I've been looking on forums for 2 days now and can't find a good answer so I'll just post it. I appear to be having a problem posting JSON back to the controller to save. The JSON should map to model view but it keeps getting default(constructor)values rather then the values from the POST. We have a series of JS widgets that contain a...
i want to know the alternative to jquery you people use and your reviews about that? ...
I am sure that I am somewhat lost in this area... my understanding is that Dependency Injection means initializing something that is required by a class..so for instance. If my controller is going to need a service and I want to be able to test it then I should define two Constructor methods for it... so, my question is... why do people ...
For instance I have a model X with properties Title(string) and Valid(bool). I need to show same model on two separate pages with different field labels and input controls. E.g. "Title" for title and "Valid" for valid on one form while "Destination" for title and "Returning" for valid on the other. I guess the easiest way would be to h...
how can i define the id in this button <%= Ajax.AjaxImageActionLink("../../Content/images/add.png", "Change Password", "ChangePasswos", new { id = item.int_UserId }, new AjaxOptions { UpdateTargetId = "msgdiv" })%> ...
Hi guys. My SO is Windows server 2003, and i have already installed on my machine .net 4 and MVC 2. But when i open vs2008 i don't see MVC web projects, strange in my pc at home appears perfectly but here in the work nothing. Someone knows how to resolve? Thanks ...
Hi, I'm slightly confused about the controller-model relationship in MVC. Should a controller be able to access any model in the system or should it have a 1:1 relationship with a specific model? Both options seem to present problems: If the relationship is 1:1 obviously if something elsewhere needs to be updated it can't for example ...
How to get the previous url using the Janrain RPX login? I´m using Asp.Net MVC to request. ...
On some photobook page i want to show appr 20 thumbnails. These thumbnails are programatically loaded from a database. those thumbnails are already resized. When i show them the images load kinda slow. some take 0.5 seconds to load some wait for 2 secons. The database doesn't matter because when i remove the database layer, the performan...
Following the example here: http://www.highoncoding.com/Articles/689_Uploading_and_Displaying_Files_Using_ASP_NET_MVC_Framework.aspx I have an .ascx file I'm using as an editor template, and I would like to use this method to upload files, my .ascx file looks like so <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<M...
I need to write an app that runs for iPhone and iPad. The issue I'm running into is how do you setup an iPadView and an iPhoneView to hook to the same controller? In other words, I don't want to have any duplicate controller code--I should only have to make a different view for each device. Right now I link up view->controller by ch...
Is this a bug or a feature? All code below has been simplified for the sake of brevity and easy replication and does not actually do anything useful other than highlight the behavior. I have a class that includes an int named ID: public class FooterLink { public int ID { get; set; } } In my controller, I have an Edit actionresul...
I'm trying to create an xml-based template system. The idea is to return my views as xml files (xhtml) and then append them to specific nodes in a template xml file. The template xml is then transformed with xslt. My question is: how do I insert these xml files into the template xml file? ...