177 Topics
|
|
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 … |
|
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 … |
Hi, thanks for viewing this thread. How to call MVC controller action method from ASP.NET webform and pass few parameter to the MVC? I have found this solution: http://www.codeproject.com/Articles/37539/Redirect-and-POST-in-ASP-NET and would like to know whether is there any other ways to do it. Just like to explore other solutions. |
|
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … |
|
I have followed all the tutorials, but still I have a problem that I can't get an object from a form to the controller using Spring MVC. What might be the case? I am using Thymeleaf to format my jsp pages. <!DOCTYPE HTML> <html xmlns:th="http://www.thymeleaf.org"> <head> <title>Getting Started: Handing Form … |
|
Hi there so i was just wondering how i would go about developing some sort of page to display whether or not a module has been loaded or not, is there some simple way to do this that can scan your web app on launch and then report if a … |
|
How to use two models in a view using Tuple and view model and what is there diffences? |
|
I have 1 gridview with big table...colums:k,mi,ib and 3 textbox...texbox1 is first column,textbox2 is second and textbox3 is third! I want when i type some number in textbox1(That number is K),i want to textbox2 and textbox3 give me value of mi and ib in same row as k...but i got … |
|
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? |
|
i have following code @model EMS1.Models.UsersViewModel @{ ViewBag.Title = "List of users"; var grid = new WebGrid(source: Model.users, canPage: true, rowsPerPage: 10); grid.Pager(WebGridPagerModes.All); } @{ ViewBag.Title = "IndexViewModel"; } <script src="@Url.Content("~/Scripts/jquery-1.6.1.min.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"></script> <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script> <h2>Grid</h2> <style type="text/css"> .table { margin: 4px; border-collapse: collapse; width: 300px; } … |
|
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? |
|
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 .. |
|
|
Anybody using L5 yet? Just got to grips with 4.2 and thought I had it cracked. L5 was a shock. The "simplicity" of 4.2 has disappeared IMO. The documentation sucks too. But I don't want to be a hater. Am I missing out on rolling back to 4.2? I've read … |
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 i have crate an Partial view with name "_Menu" it's view items as menu and sub menu in my website _Menu Partial view Code: @model IEnumerable<MainCats> @using GoShope.Models.GoShopeDB; @{ IList<MainCats> mainList = Model.Where(id => id.IsCompany == true).ToList(); } <div class="panel-group category-products" id="accordian"> <div class="panel panel-default"> @foreach (var item in … |
|
I am new to vs2012.I am trying to run MVC3 tutorial to experience the working of vs2012. I have ran thesame tutorial on vs2010 successfully and inserted new record. Now I want to run thesame tutorial on vs2012. On both cases, i am using sqlserver management studio and entity framework(dotnet … |
|
I'm trying to create an ASP .NET MVC WebSite that allows the user to enter the website without providing any additional information or by specifying an id or a name. Is this possible? How? I've tried the following method but it's not working public void Index() { //... ProcessClient(); } … |
|
Hello All, I have searched every forum and google etc but nothing directed me in right path. Requirement: I am using a COM object which can be initialized only once. But, when I try with webapi the first run goes fine and the rest fails as the COM object does … |
|
I want to show record of one row in multiple rows of webgrid. How can i achieve this. View @grid.GetHtml( tableStyle: "grid", headerStyle: "head", alternatingRowStyle: "alt", columns: grid.Columns( grid.Column("vehicleType","Type"), grid.Column("make", " Make"), grid.Column("modelType", "Model"), grid.Column("color", "Color"), grid.Column("registartion", "Registartion"), grid.Column( header: "Action", format: @<text> <a href="DeleteVehicle#" id="deleteLink" onclick="DeleteVehicle">Delete</a></text>) ) ) instead … |
|
I have Book of ASP.net 4.0 2010 by kogent learning solution ........... this Book is very large to study ... i just want to know to learn important section of book.. because i have 1 to 2 month to apply for job .... this book is very big i think … |
|
Microsoft ASP.NET MVC is arguably one of the most flexible frameworks for building modern web applications. One of the things that I've noticed over the last couple of years is that with many AJAX applications using Restful web service, many MVC controllers are now almost redundant. Using the default MVC … |
|
I am considering learning some server side stuff with java, however I am getting mixed views and opinions when searching. I read a benchmark that claims java has superior performance than most alternatives, and I was considering taking a look at grizzly or spring, but I really don't know too … |
|
[HttpPost] [AllowAnonymous] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel model, string returnUrl) if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.PasswordpersistCookie: model.RememberMe)) { return RedirectToLocal(returnUrl); } ModelState.AddModelError("", "The user name or password provided is incorrect."); return View(model); } Can I get to know a good source for unit testing this. I am new to unit testing. |
|
**Part One**: Learning the Basic Patterns **Disclaimer**: please pardon my spellogrammatico errors. I am not really a rough draft person. I type and write codes the split seconds as they crossed my mind, otherwise I will get extremely lazy and then will eventually hibernate like a tardigrade. I hope I … |
|
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. … |
|
hi there while I was developing asp.net mvc application for ma company which has a log in page https://ella.abeycld.com/Management/Tab#Lead/Detail/20356 when I copy and past the above login page on Firefox and google chrome browsers it automatically redirect and take me to http://localhost:10099/Login/Login?ReturnUrl=%2fManagement%2fTab#Lead/Detail/20356 but while I use safari browser and past … |
The End.