177 Topics

Member Avatar for
Member Avatar for IndyItMan

am confident this has been asked before, but I am preparing to reorganize my existing application in the structure referenced here: http://lostechies.com/jimmybogard/2009/12/09/organizing-asp-net-mvc-solutions/ and was wondering what kind of "gotcha"s I need to avoid. The app is growing beyond my early expectations due to new business requirements. It looks like I …

0
105
Member Avatar for old_apache

for example: current url : localhost/website becoming : localhost/website/product without refreshing. Thanks in advance

Member Avatar for harsh9
0
330
Member Avatar for old_apache

Hi I have a partial view, where my partial view will be called from Menu. When i call it, do server send only the partial view, or send all view (header, menus, footer)?

Member Avatar for pitic
0
162
Member Avatar for grafic.web

Hi there, this is the code of my contactcontroller.cs : using ContactMvc.Models; using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace ContactMvc.Controllers { public class ContactController : Controller { // // GET: /Contact/ [HttpGet] public ActionResult Index() { return View(new ContactMessage()); } [HttpPost] [ValidateAntiForgeryToken] public ActionResult Index(ContactMessage post) …

0
158
Member Avatar for grafic.web

Hi there, in am new with Webmatrix and Visual studio 2013 and i would like to create the following : (for all user of the website) 1) a classic form contact in asp.net razor : email name subject message If is possible this message wil send an aoutomatic mail to …

Member Avatar for grafic.web
0
565
Member Avatar for DeanMSands3

Hey Daniweb! What's a good site, or maybe someone could write up a quick-and-dirty example of a desktop app showing how to use the Model View Controller pattern? I'm no slouch at google-fu and found this lovely example through Wikipedia: http://www.songho.ca/opengl/gl_mvc.html which I'll look at after class tonight. I'd still …

Member Avatar for hulkishungry
0
298
Member Avatar for dany12

Hy I want to understand what is a better approach on problem solving point of view for a php project , a framework or the mvc pattern? I would like to add that I know that both principels are quite the same but with a minor diffrence that a framework …

Member Avatar for dany12
0
368
Member Avatar for Nayyar_1

I have to consume webservice that have a method like this: SubmitUser(UserReg user, HttpPostedFileBase image) { // webservice side processing` } UserReg is a custom class on webservice side that have several properties like username,id,latitude,longitude etc.. I have to submit my data through this method and save webservice response after …

Member Avatar for geniusvishal
0
204
Member Avatar for Singlem

I have been trying to get a single model, with multiple partail views that use that model to sumbit the form correctly. @Html.Partial("_EmployerDetails", Model) <br /> @Html.Partial("_OutcomeControl", Model) When I submit the form only the firt PatailView model is posted. The second partailview values is null. I need to modulize …

Member Avatar for LastMitch
0
165
Member Avatar for jameslivsey

Hi, I have a form that has two controls; a textarea and an upload, one of which is hidden depending upon the selection of a dropdown. What I'm trying to do is alter the action of the form depending on which control is hidden. so if the textarea is visible …

Member Avatar for C#Jaap
0
136
Member Avatar for singularity~

I am trying to combine the data from two repositories in MVC4. I am using a join statement in my Action function to gather information from two tables. I am passing this this data onto my view. I am a little confused to how to correctly combine the data from …

Member Avatar for tinstaafl
0
202
Member Avatar for extjac

MVC Design Question Hello, I would like to move an web application to MVC Laravel 4 (not sure yet). The challenge is that the application is used by many customers and each customer have its own website/front-end but they all use the same backend/admin. The strucutre is something like this... …

Member Avatar for extjac
0
183
Member Avatar for sagngh8

Is it possible to create directory with permission(domain users the IIS user account)while deploying the asp.net mvc application.I need to be able to create directory for image upload with appropriate permissions(only domain users should be able to modify it) while deploying the web applications. Is this possible? Thanks, S.

Member Avatar for LastMitch
0
345
Member Avatar for divin757

When I click the login button I never get any values posted to the server. I accept a AuthViewModel but it is always null. I have tried using @html.EditorFor but have not had any luck with it. **User Controller** [HttpGet] public ActionResult Password() { UserModel user = (UserModel)Session[Constants.SessionVars.Authenticate]; //error - …

Member Avatar for BMXDad
0
606
Member Avatar for singularity~

I have jQuery, jQuery Mobile and jQuery-UI included in my MVC4 project. I am having a problem where the jQuery-UI script only loads if the page is refreshed, otherwise the jQuery-UI will not load initially. I have tried moving the include script to the bottom of the page instead of …

Member Avatar for LastMitch
0
189
Member Avatar for ryan311

I always getting this error in my dropdownlistfor: Value cannot be null. Parameter name: items View code: @Html.DropDownListFor(model => model.SiteId, new SelectList(ViewBag.ListSiteClass, "SiteId", "SiteName"), "", new { @onchange = "GetSiteid(this.value);" }) Controller Code: [HttpPost] public ActionResult Create(ServiceDTO ms, FormCollection form) { if (ModelState.IsValid) { int sid = ms.SiteId; ServiceDAO.Insert(sid); } …

Member Avatar for ryan311
0
12K
Member Avatar for ryan311

Can anyone help me. My code is not working this is cascading drop down list. It's connected to my database. Jquery Code: <script type="text/javascript"> $(document).ready(function () { $("#SiteId").change(function () { var idDept = $(this).val(); $.getJSON("Service/GetBuildingNameList", { id: idDept }, function (myData) { var select = $("#BuildingID"); select.empty(); $.each(myData, function (index, …

Member Avatar for LastMitch
0
437
Member Avatar for nccsbim071

Hi, In my website i have implemented custom session values. In which, on log on i set the session value to some object. This object is used to extract user specific data from db. now the problem is If user logs in with : test1.somesite.com and logs off and again …

Member Avatar for jhoonbey
0
803
Member Avatar for gaasha

I'm new to MVC4 programming. I want to populate a **DropDownList** from a table's field but don't know how to, although I searched for relevant material from Internet but couldn't get some workable info. There are 2 tables **Software** and **Category** (showing the type of S/w e.g. Anti-Virus or Graphics …

Member Avatar for LastMitch
0
308
Member Avatar for AARTI SHRIVAS

i am googling for mvc in php but not get proper result is there any good website from where i can learn mvc for php and, is any other framework needed for this mvc i am currently using bitnamiwamp apche server for php what framework is used for mvc can …

Member Avatar for LastMitch
0
150
Member Avatar for 03hasnam

public class EventView extends javax.swing.JFrame { Connection conn = JavaConnect.ConnectDB(); PreparedStatement pst = null; ResultSet rs = null; private EventModel model; /** Constructor */ public EventView(EventModel model) { initComponents(); this.model = model; updateEventTable(); } public void addEventListener(ActionListener al) { addEventButton.addActionListener(al); } /* public void clearListener(ActionListener cl) { clearEventButton.addActionListener(cl); }*/ public …

Member Avatar for JamesCherrill
0
135
Member Avatar for unikorndesigns

Please analyze the following code. This is being used in CodeIgniter framework... $results["rows"]=$this->Category_model->getAll(); $i=0; while($i<count($results["rows"])) { //$parentids[]=$results["rows"][$i]->cat_id; $disparray[]=array( "cat_id" => $results["rows"][$i]->cat_id, "cat_name" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_name"), "cat_parent_id" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_parent_id"), "cat_desc" => $this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_desc"), "cat_num_posts" => $this->Category_model->fetchnumposts($results["rows"][$i]->cat_id), "cat_parent_id_name"=>$this->Category_model->fetchcatinfo($this->Category_model->fetchcatinfo($results["rows"][$i]->cat_id, "cat_parent_id"), "cat_name") ); $array=explode(",",$this->Category_model->fetchallkids($results["rows"][$i]->cat_id,0)); foreach($array as $item) { if(strlen($item)>0) { $spacecount=substr_count($item,"&nbsp;"); $id=str_replace("&nbsp;","",$item); $spaces=array(); …

Member Avatar for unikorndesigns
0
187
Member Avatar for eoop.org

Hi, I want to develop a CMS that I can use when I make websites. Want to simultaneously post it online so that people can download it and develop plugins and themes for this. Would like to have it as user friendly as other CMS such as Wordpress, Joomla, Dupal …

Member Avatar for eoop.org
0
188
Member Avatar for don.davis.773

so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a …

Member Avatar for Gribouillis
0
202
Member Avatar for Delusional

Hello can anyone help me with the following problem? Here goes... I have the following in my js file: $(function () { $('a.modalDlg2').live("click", function (event) { loadDialog(this, event, '#User Details'); }); }); /* end document.ready() */ function loadDialog(tag, event, target) { event.preventDefault(); var $loading = $('<img src="../../Content/assets/images/nivo-loader.gif" alt="loading" class="ui-loading-icon">'); var …

Member Avatar for AleMonteiro
0
110
Member Avatar for Delusional

Hello, I'm trying to pass a List object from view to controller. The program works by pressing the link "Add new line", this adds a new row to my web page, with a input box and i would like for that input box content, on submission, to be passed to …

Member Avatar for pritaeas
0
189
Member Avatar for extjac

What's your recommendation for PHP MVC frameworks?? i tested Codeigniter and it seem easy to use.... I am not a full time developer, but I do have some customers with backends, etc…My intention is to migrate some of old php code to PDO but I am now wondering if I …

Member Avatar for jkon
0
192
Member Avatar for Raakesh399
Member Avatar for reibi

Hello everyone, I am trying to create dynamic dropdown of category and when a particular category is selected then it should show sub-category automatically from the database. I have used this using javascript in OOP PHP but having difficulty while using it with codeignitor. So please anyone, help me with …

Member Avatar for cereal
0
3K
Member Avatar for php_noob

Are there working examples regarding MVC. Unfortunately, the one in their website is not working. http://www.asp.net/mvc

Member Avatar for nakor77
0
88

The End.