98 Topics
![]() | |
I have a tab structured view which consists of 5 different tabs. the content in all the 5 tabs were same, So i have reused the code and rendered the same code multiple times using knockout js. the problem here is that I have a datepicker control too. As the … | |
i have below code and i need to addd close button (x) on popover for each three popovers ,can any one help me how to do this <div class="row"> @*<div class="col-lg-1 popper" title="Note" data_toggle="popover">sdsda*@ <div class="col-lg-1"> <i class="ShowToolTip popper fa fa-eye LabTaskClass28 LabTaskClassforShowHideCol77" title="No task result for note" data_toggle="popover" style="/*! … | |
I need help.. someone please provide some suggestions where to start.. I'm trying so hard to become a Fullstack .Net developer.. I'm currently learning MVC using C# | |
I am currently experiencing something strange with one of my routes' responses and haven't been able to find any information elsewhere. So, let's say I make a call to a route in my controller with JQuery, like this. It's a POST action and I expect JSON data. // Send the … | |
I'm currently doing some encoding work to protect a site from XSS attacks. We've stuck a bunch of `<script>debugger;</script>` tags in the db. Dispite my best efforts, the strings I've encoded to stop the debugger getting hit (to prevent an XSS attack), are still getting hit in developer tools. Is … | |
Is it possible to make a web page that takes up responsibility for backing up a web applications tables(Oracle DB, and perhaps SQL server I am trying to be multi db supportive)? Essentially I want to create a database backup script that is kicked off by pressing a button on … | |
<pre> hi every one I am working on vs 2012 and mvc 4 ,just small project , i need to apply theme( http://all-free-download.com/free-website-templates/download/magic_city_template_2087.html ) and remove default one ,can any one help me how to do this ?? </pre> | |
So here is my problem laid out as simple as I can put it. I cant combine multiple entities together that have related data but are different (one database table has id number that is shared by database table 2 and table 2 has employee number which is shared with … | |
using (MySqlCommand cmd = new MySqlCommand("SELECT EmpId, Emp_Name, Salary , Start_date , End_date , CASE WHEN (Employees.End_Date is null) THEN DATEDIFF(DATE_ADD(Start_Date, INTERVAL 30 DAY), Start_Date) * Salary/30 ELSE DATEDIFF(End_Date, Start_Date) * Salary/30 END AS Total_Salary From Employees;")) { using (MySqlDataAdapter sda = new MySqlDataAdapter()) { cmd.Connection = con; sda.SelectCommand = … | |
![]() | I have a SPA which uses an AngularJS front end and C# back end. The issue I'm having is when I navigate to the login page, it is using @Html.Partial("_LoginPartial"). The url then becomes .../Account/Login. When I click on say the "About" tab, this uses an AngularJS route which in … |
public IList<Labour> Labours { get; set; } public class Labour { public string WorkDates { get; set; } public string WorkHour { get; set; } } I have this code above on my class. How can i add this to my Create View Razor? can anyone tell me please. Also … | |
I want to save an image from my computer to my project. c:\\image1.jpg to MyWebProject image folder. how can I do it? | |
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. | |
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? | |
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 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 … | |
[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. | |
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 … | |
So here is the thing its been days since im trying to solve this, i'm debuggin a project from the company i work, its a web system, and here is the thing i have a javascript file which im going to call 'docart.js' and a core file which i will … | |
i am told t use old traditional way of SQL in MVC so created login register page but now problem is that i can't return data to VIEW from dataset. Model public ConnectionStatus Login_db(String email, String pwd, String conStr) { String hashedpwd_login = FormsAuthentication.HashPasswordForStoringInConfigFile(pwd, "SHA1"); using (SqlConnection sqlCon = new … | |
Hi, i created a Menu controller and inside my views folder i create a page Menu.cshtml with the list of my menus and submenus, now, i would love to show this page in my _Layout.cshtml, this is the code : @model IEnumerable<Menu3.Models.Menu> <!-- If the Model isn't null --> @if … | |
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 … | |
i would like to know which is better to program with asp.net or mvc? what are the differences between the two? | |
Hi, i was wondering how is working with MVC to put my website on the webserver!! I mean, my fear is about the database... if i make some change on my code and i wnat to put the project on the server, will i lose my data on the database … | |
Hi, i did create the following class in my Models folder and i create the Styles controller, everuthing is fine... but muy problem is the following. When i clicK on the link style i got my list of styles and when i click in one style i got the idin … | |
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 … | |
O would like to understand how to manage my website with Multilingual option for exapmple if the user is cominf form the domain .fr or .it or co.uk ect... how can i do this??? Thanks a lot for your help | |
Hi, i woul like to get the following routing example in MVC : mysite . com /NAME/NAMECATEGORY/ID i have a list of items in name and each item has a category... when i choose and item i would like to show the category as well and not only the id … | |
Hi, how can i apply a simple text editor to my textbox "SUBTITLE" and a full text editor to my textbox "BODY" in MVC? Thanks | |
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 just copy the css of the YETY layout and everything works fine but i have a proble to apply the dropdown menu on my MVC link.... i have the following link : @Html.ActionLink("Collection Hair", "Index", "Styles", null, new { @class = "navbar-brand" }) and i would love … | |
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 … | |
What would be the best approach to have multiple Admins create its own users in asp.net mvc? Using Role? Thanks | |
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 … | |
getting this error: > The best overloaded method match for 'System.Web.Helpers.WebGrid.WebGrid(System.Collections.Generic.IEnumerable<object>, System.Collections.Generic.IEnumerable<string>, string, int, bool, bool, string, string, string, string, string, string, string)' has some invalid arguments i am trying this code public ActionResult Generated_PaySlip(int? emplID, String month) { var PaySlip = DataContext.GetMonthlyReport(emplID, month).SingleOrDefault(); return View(PaySlip); } VIEW: @using EmployeeAttendance_app.Models … | |
Hi all! I am sorry if im asking same thing for the nth time but i can not find the answer to my question... I have problem adding partial views... I have One-to-Many relation in the database tables. My Model is: using System; using System.Collections.Generic; public partial class Job { … | |
i am receiving Emplid in this action, public ActionResult showDDL(int? EmplID = null) { ViewBag.EmplID = EmplID; if (EmplID == null) { IEnumerable<GetAtdRecord_SpResult> EmployeeAtd_2 = DataContext.GetAtdRecord_Sp(0).ToList(); return View(EmployeeAtd_2); } else if (EmplID != null) { IEnumerable<GetAtdRecord_SpResult> EmployeeAtd_2 = DataContext.GetAtdRecord_Sp(EmplID).ToList(); return View(EmployeeAtd_2); } return View(); } View: @{ var grid = … | |
Hi there, Once i done my project whit MVC how should i make it working on line? I mean, i would love to put on line via FTP but the project seems too big for this... which filese shoult i upload? and how?? Thanks | |
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, … |
The End.