82 Topics
I have been tasked at work, well actually I volunteered to create an MVC site (as a demo) that will eventually be the base for moving my employer's legacy C#/asp.net code to MVC. It's a large site, used globally, and we are a small team of 5 devs. Right now …
Hello Daniweb community, I have an app that is built on custom MVC design pattern. The app is designed that when the controller is empty, that is when $url[0] is empty, then the app should automatically redirect to index. The code to do this is found on bootstrap.php and looks …
Im making a website that works around a very basic MVC structure. I have three folders, the Model, View and Controller. I want to display the content of the database in the dropdown once the page has loaded. My view has: <div id="appCalc"> <form id="applianceCalc" method="POST" > <?php if(isset($error)) { …
Hi Guys! im making a small website based around a very simple and basic mvc pattern (in this case just seperating files into different folders) Im currently stuck on selecting data from the database and displaying it. My model looks like this: <?php require_once('../Controller/config.php'); class Readings { public $dbconn; public …
Hi Guys! So im making a small application based around a basic mvc structure. I have three folders: Model, View and Controller The view code is: <?php session_start(); require_once('../Controller/loginController.php'); ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Energy Checker: Login</title> </head> <body> <div class="formLogin"> <h2>Login to your account</h2> <form …
There is a null reference exception occurred in MVC 4 application as below [click here to view exception](http://i.stack.imgur.com/ypBet.png) but values are came to the variable. there for no point to happen null reference exception. why is that. good luck :)
Hi. I have to do a MVC project and I don't know exactly how to do it. on the clientside I will have an input form the data (at least two codes and up to 8) will be sent to the server (best way?) then the server will access a …
Hello guys, I wonder if I could get some help with a project I'm planning to start. As you all probably know, I'm learning MVC and I've followed dozen of online tutorials, dipped in and out of many books but I got to the conclusion that I have to dive …
Guys, I am a little confused with the usage of the keyword model/Model in MVC, so I was hoping somebody could clarify a few aspects of it (needless to say internet searches didn't really help that much). Given this model: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace Ebuy.Website.Tests.Models …
Can any one suggest me to access db from MVC WITHOUT Entity framework..I need tutorial ..
when I added entityfarme work model in mvc Application ..so ultimately it added respected model classes for each table in database .and it added commented line in each class like that // <auto-generated> // This code was generated from a template. // // Manual changes to this file may cause …
i have two controller customer and order in mvc Application ..I wnat to show customer in drop down list in order controller when click on order create ..or click on following url .http://localhost:1957/order/Create any help ..
This will be a great help for me to carry my project further. I need to check the text box value(form) with database. If it exist I try to show warning message and if not ask the user to enter the values. I try to implement this code with Windows …
Am a neonate to the entire world of apache and mvc devpt. I'm having terrible nightmares (over 2 weeks now) writing an .htaccess rule for an MVC application, such that all requests get redirected to a public skin folder. the way i want it, All publically viewable files are stored …
Hi, my task is to read a text file and display it in a DataGridView and to be able to filter the data. Each column in a DataGridView will be a string from a file, separated by "," -> column1, column2, column3... Each line will be a new row. The …
I am new to MVC 4 and I need to create a tree view using a single class in MVC4. Kindly help.
hi to all, I'm using vs 2013 and MVC Here i'm bind the value from database to drop-down list without using VIEWDATA. here i done using view data to bind the database value. Anyother method to bind value from database to drop-down list.
I'm using vs 2013 and MVC hi to all, Here i'm bind the value from database to drop-down list without using VIEWDATA. here i done using view data to bind the database value. Anyother method to bind value from database to drop-down list. Here i want to use Modals.
Hello, I'm building an application in MVC which allows people to upload and sell there items, (Like ebay but on a much smaller scale) I currently have a view where they choose the categorie they want to place there item in, when they click ok I pass in the selected …
Hi All, Really, I need your help to create phonebook application with MVC. in which the application contains a contacts database. also the application should contain a login screen to delete or edit contact information. the links of update and delete a contact record should appear at the end of …
I'm creating a Sports system in mvc 4 . i need to add a checkbox list? how do i go about doing that? and how do i enable a button when A certain checkbox is selected?
i am picking list of names from database, according to scenario each name exists many times in database, That's ok. Now i have filled a DROPDOWNLIST with those names but in drop down list each name appears several times but i want to display each name 1 time in DROPDOWN. …
So I read somewhere that your views should not contain any logic in them. But let's say you pull back a query from your model which displays four boxes two of them need to be checked in the view. I'd pass this as an array into the view but in …
Good morning all I'm having a problem with injecting a class into the constructor of another class. I am creating an MVC framework, for learning purposes. In bootstrap.php, it loads the various classes needed, and also instantiates a few classes Code snippet for bootstrap.php below. <?php /** * file: /system/core/Bootstrap.php …
Hi there, ho can i check in MVC if the users of my website are coming from my domain .it , .fr or .co.uk etc? Thanks
i can view anybody record and then can edit it if i click edit button below record, after clicking it takes you to another page whihc shows textboxes and dropdown, checkboxes to edit and all textboxes contains values for that EmpID but problem is that i want pre selected value …
does any one know of a method or code to send emails stored on databases through mvc programming c#
what are the advantages of using mvc over asp.net ?
We have been given a integrated project we must develop an system using MVC any1 who can help cos we have never used it before.. any1 whos willing to help....
HI, ho can i do a select list from my table with MVC? Example database = mydatabase table = styles ID NOM show my select <selct name=aaaaa> <option value=ID>NOM</option> Thanks
Hi there, I'm looking for a free layout to use with MVC visual express 2013 thanks
Hey gang, I am trying to get my site running using the MVC approach. I have a parent class called BaseController. All other contoller classes inherit from it. When you go to http://example.com/home/index the HomeComtroller loads properly (a child of BaseController). Where I am stuck is having HomeController executing its …
Hello. I'm having some troubles with my code and was just wondering if you could give me a hand. I'm working on a MVC project using data access layer (DAL, BLL, Model). So, I want to list some categories. When I click on a category, I want to list all …
I'm working on a simple, custom login system where users can make an account and log in. In this system I'm using Sessions to make sure if user is logged in or not. I'm using MVC4 as well with Entity Framework. Right now, I want to make a function where …
I am creating a new ASP.NET MVC 4 application (actually my first MVC application) that is a part of my previous ASP.NET web forms application. I have never used ASP.NET inbuilt authentication methods in any of my project. This new MVC 4 app will be published on a sub-domain of …
Hello, I am working on a project and I'm having a bit of trouble trying to localize my resources outside my MVC application. I currently have a MVC Application where i've defined my Resources in App_Global_Resources, and I have a C# Project where I've defined my Models with all the …
how to disable a button (that is found in a view) from a method in a controller ?
Hello, I'm currently developing an application that will have to support Globalization, meaning that it will have to support different languages. I've been doing some research since this all new to me and I want to take the best approach, and for now all I've been doing is following some …
Hi everyone, I have a tricky question, at least for me. We have a website deployed on IIS that once in a while throws a NullPointerException when trying to read the `HttpContext.Current.Application["JScriptRootPath"]` value. So this is the whole scenario: This is just a key added in the Web.config file that …
Hi Everyone, I want to do 301 redirect from the old asp.net webforms website hosted in IIS6 to the asp.net mvc 3 application hosted in same server.Following are the urls that i would like to redirect to the new urls. http://oldsite.com/blog/888-miso-collapsible-origami-tables.aspx => www.somesite.com/postdetails/miso-collapsible-origami-tables http://oldsite.com/blog.aspx?tag=art => www.somesite.com/Blog/TagPosts?tag=art&tagPostType=1 http://oldsite.com/blog.aspx?month=2012-3&p=2 =>www.somesite.com How do …
I am new to authorisation and authentication. I have looked at the defaultMember, Role and Profile Providers. But they seem to limit me from communicating with my own database schemmas. Please I would love to have links were I can read on how to write my own Providers to perform …
Please does any one know how to configure signalR on an mvc project.
Here is a section of code from a MODEL class of the MVC Framework: public TableModel getTableData() throws SQLException { try { String sql = "SELECT date as 'Date',eventName as 'Name', time as 'Start Time' FROM Event"; pst = conn.prepareStatement(sql); rs = pst.executeQuery(); TableModel model = (DbUtils.resultSetToTableModel(rs)); return model; } …
Hello, I would be grateful if someone could help me with building a simple dynamic menu breadcrumb in PHP with mysql, using the MVC concept. My pages are stored in a mysql db, and the table is formatted with the following fields: Autokey, Title, IDMenuParent. The latter takes NULL as …
Hi Im getting into a php mvc framework, available here ([url]http://www.phpro.org/tutorials/Model-View-Controller-MVC.html#8[/url]), but they only explain their code, and dont offer much other advice on the basics of working inside a framework... how would i go about posting a form? working outside of any framework i usually just post the form …
I am delving into trying to understanding how the MVC structure works. I am following a [tutorial](http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/) and a little bit down the page where is is explaining the Controller class and how it initiates the Model and View there is some code there that does not quite look right …
What is the best and fun way to learn MVC 3 technology that can apply to real production environment? Any web site or sample projects are always welcome. I would always like to learn quick too so any videos are also welcome
What is MVC really? Is "model-view-controller" basically the way all ASP.NET programs in Visual Studio are made? Is it the default way WPF applications are arranged?
The End.