mvc

c# DB connection string through VPN

I am trying to connect to a database on another network through a vpn. How do I set up the connection string? There is a network password to get on the network and then a database password to connect. Is there a way to set this up? <connectionStrings> <add name="remoteDB" connectionString="eng=INV;Links=tcpip(Host=xxx.xxx.xx.xx,xxxx)...

Zend Form does not validate input.

Zend Form is not my friend today! This works :- Controller:- public function indexAction() { $loginForm = new Application_Form_Login(); //is there a submitted form? if($this->getRequest()->isPost()){ //yes there is so process it. $formdata = $this->getRequest()->getPost(); if($l...

General .NET MVC2 questions.

I am just getting into .NET MVC2 (.NET in general even) and I am having a hard time getting familiar with the "flow" of things. The MVC framework, I get.. for the most part. The part that I am getting tripped up on is applying standard programming practices to .NET MVC. For example public ActionResult Index() { var dataContext = new...

asp.net mvc selectlist

by using selectlist how can i enter the please select. is there a way GrpDown = new SelectList(_db.Groups.Where(m => m.vcr_GroupName != "SuperAdmin" && m.int_Priority >= Authorization.Priority && m.bit_Active == true).ToList(), "int_GroupId", "vcr_GroupName"); ...

Beginnner question about PHP and MVC

Hi, I'm trying to learn MVC architecture for PHP. So I play with some simple classes and functions. I can't find what's wrong with this code, which returns a: Fatal error: Call to a member function fetch() on a non-object in /opt/lampp/htdocs/test/MVC/Vue.php on line 15 Here's my code: Model.php: class News { public fun...

Starting a Java project - IDE, Framework, etc. -

Hi, I need support in order to speed up development process. I received a request to start developing a website with java technology. I usually develop in C# - ADO for Entities - ASP.NET MVC - MSSQL server - Visual Studio. Best of these choices were: - C# Intellisense. - ORM. - Complete Security Management of Users, Roles. - Separation o...

In Zend Framework applications, what purpose does the /views/filters serve ?

I have an idea of what view helpers do (/view/helpers), but I have no idea what a view filter (/view/filters) is, or what its used for, can some one please shed some light on the matter? Thank You =) ...

Why do Java webapps use .do extension? Where did it come from?

I have always wondered why so many Java developers use ".do" as the extension for their web controller (MVC) resources. Example: http://mysite.com/register.do It doesn't even seem to be framework specific as I have seen it in Spring MVC and Struts projects. Where did this ".do" extension practice come from. Why was this done instead of ...

Using a custom validator in a variable length list in Microsoft MVC 2 (client-side validation issues)

I have created a variable length list according to the many great posts by Steve Sanderson on how to do this in MVC 2. His blog has a lot of great tutorials. I then created a custom "requiredif" conditional validator following this overview http://blogs.msdn.com/b/simonince/archive/2010/06/11/adding-client-side-script-to-an-mvc-conditio...

Posting a list of objects trough json to actionMethod in asp.net mvc

Seems there have been some talk about this issue before, but i will post this anyway.. Public Function test(ByVal val As List(Of TestObj)) As ActionResult For Each o In val Next End Function Class TestObj Property id As Integer Property name As String End Class When trying to call this function trough jQuery's post m...

Object is null. How to set it? c#

I have a variable FirstThreads of type List<Thread>. I am trying to do the following, but FirstThreads is always null. FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize) .Take<Thread>(PageSize)); I can't do this: FirstThreads = FirstThreads.AddRange(Threads.Skip<Thread>(PageIndex * PageSize) ...

html helper html.RouteLink is it possible to place Image? c#

Hello all, <%= Html.RouteLink(">>>", new { page = (Model.PageIndex + 1) },null)%> Is it possible to set image instead ">>>" and how? Take care, Ragims ...

Differences between MVC and MVP Patterns

Possible Duplicate: What are MVP and MVC and what is the difference? Can somebody explain me the difference between two design patterns for a web application in .net. I am very clear on MVC Pattern and whenever i think of MVP i always feel its is same as MVC. Please clearly explain the difference between a controller and prese...

Getting AsyncController to work with Ninject

I am trying to convert some actions within a controller to run asynchronously in an mvc project that is using ninject for dependency injection. I'm following the steps by inheriting AsyncController and changing the methods that correspond to the 'X' action to 'XAsync' and 'XCompleted' but the async action is not getting resolved. I'm con...

Add slashes in Area name on an ASP.NET MVC 2 route

Currently I have an Area in my ASP.NET MVC 2 project call 'API', which is self explanatory. As the API of my web application matures, I will soon need to add version numbers to my address. ie/ Instead of : http://site/API/ I will need http://site/API/1.0/ http://site/API/1.1/ ... What's the best practise to achieve this in ASP.NE...

tooltip for html.RouteLink

hello all, is it possible to write tooltip for html.RouteLink? my link: <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)},null)%> Thank and take care, Ragims ...

Jquey + jeditable table row edit multiple fields

Hello, I am trying to figure out the way to edit a row of table by button with jquery and jeditable. My aim is to have a "edit" button which will change desired row cells to edit mode. As per now I have: $(document).ready(function() { $("#addrowbutton").click(function() { $("#addrow").show(); }); $("#canceladd")....

paging with asp.net mvc c#

Hello its my code where I giving out paging of view: <div style="float: right;"> <%= Html.RouteLink("<<", new { page = 1 }, new { title = "first page" })%> <% if (this.Model.HasPreviousPage) {%> <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1) }, new { title = "previous page"})%> <%}...

ASP.NET MVC - Serializable

Hello there! I'm trying to use the new Html helper extension Serialize() from the furthure assembly.. If you take a look at: View <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<MvcApplication2.Models.ProductViewBinding>>" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/...

Disable browser "back" button

Possible Duplicate: Disable browser's back button How can I disable a browsers back button, in an asp.net mvc project. Can I use java script for this ? or is there any other ways to do this ? ...