39 Solved Topics
Remove Filter
|
|
Im working on a small website and im a little confused on one step. I'm following a very simple mvc pattern, ive currently got one controller that creates a session array that holds all the posted data IF the form has been submitted, This data is coming from several different … |
|
SEEMS AS IF MY ARTICLE HAS BEEN SUBMITTED TWICE. I DO APOLOGISE FOR THAT Hi guys, I'm working on a small website and I'm currently stuck on a small issue. Ive got a set of dropdown boxes created and populated in HTML, for example: <select name="heatingType" id="heatingType" required> <option value="" … |
|
Hello. I right-clicked on a a view (Views/input/index.vbhtml) and chose "set as start page". But it always gave me an error on the browser (The resource cannot be found.) I have to manually enter the url localhost:xxxxx/input/index for it to work. I've already checked routeconfig.vb and it's ok routes.MapRoute( name:="Default", … |
|
This may appear as child problem but i have confusion about this When we document Root what this means?? I am creating directory strucure for framework eg this is directory structure from code tutsplus `----public Document root where public files are accessed -css -images -content -js ------ Resources -library -template … |
|
|
What is the best practice for including JQuery in Codeigniter? I've tried including the following line in my controller code: $this->load->library('javascipt/jquery'); But, when the page loads, I get > Unable to load the requested class: Jquery My setup is using xampp, CodeIgniter folder "CI" is located in /htcdocs/ci/. Thanks in … |
How to use two models in a view using Tuple and view model and what is there diffences? |
|
Action link in my nav menu <li>@Html.ActionLink("Log Off", "Logout", "Account")</li> My Logout.cshtml codes. @{ ViewBag.Title = "Log Out"; Session.Clear(); FormsAuthentication.SignOut(); Response.Redirect("~/../Home/Index.cshtml"); } Why I can't access my logout form? |
|
Can anyone give me an example to use authentication and authotization in MVC and C#? |
|
[Autorize] I want to set the page if the user is not currently login in MVC. How can I do it? I want to set it in "User/Login" |
|
I want to insert from product (id, name, price). How can I insert it using mvc[c#], mssql manually. |
|
Here's my product table. [id, name, price, description, unit] For example. I want to edit only the name and description. How can I do it in mvc? |
|
A method in the **controller.php** file public function invoke() { if (isset($_GET['book'])) { // show the requested book $book = $this->model->getBook($_GET['book']); include 'view/viewbook.php'; } else if(isset($_GET['add_book_form'])) { $action = $_GET['add_book_form']; include 'view/add_book.php'; } else if(isset($_GET['add_book'])) { $title = $_POST['title']; $author = $_POST['author']; $description = $_POST['description']; $this->model->addBook($title, $author, $description); include("view/add_book.php"); } … |
|
Hi there, i'm looking for the easiest image slider banner for my homepage, any suggest? Thanks!! |
|
I am learning MVC and i would love to do my web site with different languages... if the site come from my domain mysite.fr i wanna show french, if comes from mysite.it i wanna show italian.. etc etc So, i did all what the e tutorial asked me to do … |
|
Hi, i am looking for a full tutorial for MVC4!!! I need a complete tutorial where i can manage user registration and one list of articles with relative reviews!! Can anybody help me with this??? If you can tell me some links where i can find something like this (because … |
|
i am calling store procedure from MVC, which returns single record only. SP contains: PROCEDURE [dbo].[GetMonthlyReport] @emplID INT = NULL, @month VARCHAR(50) = NULL AS BEGIN IF (@emplID IS NOT NULL AND @month IS NOT NULL) --If Block begins BEGIN SELECT * FROM MonthlyRecord WHERE Month = @month AND EmplID … |
|
In if else structure when null arguments are passed to two string variables then it always hit the condition when i have set Var1 != "" && Var2 != "" why ? since nulls are passed to both then why it hits this condition ? code: public ActionResult ShowCalTextBox(String DateFrom, … |
|
Greetings all. In my MVC app I am trying to iterate through 2 collections, which are similar to a jagged array (a collection of modules, each containing a collection of components). Module and Component each have an Index attribute where the sort order is specified through an admin tool. The … |
|
i am bit confused by the nature and working of query , I tried to access database which contains each name more than once having same EMPid so when i accessed it in my DROP DOWN LIST then same repetition was in there too so i tried to remove repetition … |
|
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 … |
|
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 - … |
|
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); } … |
|
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 … |
|
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 … |
|
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 … |
|
|
I was looking at using the Ext JS 4.1 (http://www.sencha.com/products/extjs/) , it promisses to enable developers to use the model-view-controller (MVC) architecture when building their app. can someone give me an example of how I can use the Ext JS 4 with MVC? if I wanted to create a form … |
I am having some trouble. I have a Telerik editor where I display I file that is housed in my application. I need to save the changes back to the file. But some things also get saved to back to the database. My save button currently does save back to … |
|
I am trying to write an MVC application. I am rather new to MVC and I am taking the project over from someone else whom started writing it. This is what I am trying to do. I have some html documents that are located within my application. When a user … |
|
Hey! for a school project, came to me the following question: the libopenmetaverse is more directed to any of the components of the MVC (model, view, controller) or apply to any of them? someone can help me with this? thanks |
|
[CODE] RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 [/CODE] my url = localhost/mvc/ i work on windows in xampp i have a problem when i go to my url /404 i thinks i am on localhost/ so it redirects me to localhost/xampp/splash.php but it … |
The End.