9 Topics

Member Avatar for
Member Avatar for ryan311

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 …

Member Avatar for Sebastián
0
890
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
564
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
605
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
434
Member Avatar for Jigs28

Hi, I am confused between razor and asp.net coding. Asp.net code itself is a server side code so why it is said that razor code is server side embedding code for creating dynamic web pages? Normal asp.net code also runs at server side so what is the need for razor …

Member Avatar for internet_red
0
257
Member Avatar for UFO Disko

Hello, I'm currently following the video tutorials found on asp.net (the site)\ And I just finished my delete page but I'm getting errors. This is the code of the page DeleteMovie.cshtml [CODE]@{ Layout = "~/_SiteLayout.cshtml"; var id = Request["MovieID"]; var SQLSELECT = "SELECT * FROM Names where MovieID=@0"; var db …

0
111
Member Avatar for Ajuddy

i need to have Total of price displayed in webgrid. from the code below. [CODE] @{ var db = Database.Open("SmallBakery") ; var selectQueryString = "SELECT * FROM Product ORDER BY Id"; var data = db.Query(selectQueryString); var grid = new WebGrid(source: data, defaultSort: "Name", rowPerPage: 3); } <!DOCTYPE html> <html> <head> …

Member Avatar for mani-hellboy
0
137
Member Avatar for masterjiraya

Dear readers and administrators, I wonder if I have the right to suggest here to add new item list in this site but it since I have the right post it here, I want to suggest to add a forum section or thread section under web development about the new …

Member Avatar for masterjiraya
0
473
Member Avatar for jeffcogswell

This past Summer, Microsoft announced the beta of a new product called WebMatrix. Two weeks ago, the third beta came out. But before I talk about it, I have to ask: Is this a new product? Or am I having déjà vu?[ATTACH]18093[/ATTACH]WebMatrix (one word) is, in fact, a brand new …

Member Avatar for masterjiraya
3
629

The End.