Category: HowTo
-
Usual Methods to transfer data from Page To Page in ASP.NET MVC
Preamble: In ASP.NET ( like in PHP and other Web frameworks) there are 2 clear entities: Server ( code on the WebServer ) and Client( the HTML interpreted by the browser and javascript). Server and Client shares same cookies – means Client and Client both can read and write cookies. Transfer from the Client to…
-
Chosen and Jquery and MVC
In the MVC forums I have seen a reference to Chosen. From the description here: “Chosen is a JavaScript plugin that makes long,unwieldy select boxes much more user-friendly.” It look beautifool – and I see the opportunity to improve my toolbox. I said: “I will do in 10 minutes”. Well,it did take longer – but…
-
First version of Messaging system
Realized the first version. When you logon on the system,the application sends you an email and you can see it. Lots of thing done – however,the testing is not complete. Logging was the difficult part- since I want to work with various loggers( LOG4NET,NLOG,MS TRACE,and so on). I required to a duck typing from DeftTech.…
-
Jquery Ajax Request and MVC detailed
I have made a post about how to configure the MVC with Razor,Partial View and returning JSON. It does not need a database – that also because it should be simple to download and see the mechanism. The sample demonstrates: Cascading dropdown ( see the button Populate from action and Cascading drop down) Populating a table from a Partial View(see the…
-
Differences MVC versus WebForms
Rule of thumb for differences between ASP.NET MVC versus ASP.NET WebForms 1 : If it is a Web Form Control ( asp:textbox,asp:gridview) it does not work in MVC. Period. 2. Use DisplayTemplates/EditorTemplates/PartialView/HtmlHelpers and some jquery (or your favorite javascript framework) magic. See http://msprogrammer.serviciipeweb.ro/2010/05/30/mvc-helper-templates .3 Security is NOT on web.config ( location ). Security is on…
-
Implementations GUI details
When creating a GUI you must think to give user some good feeling about what the software can do – so I started to MVC 4 website,that have mobile support integrated. More,you must demonstrate some features right away to the user – so what’s best if not a message from system admin to the user …
-
Creating Edmx files and testing
The favorite ORM in .NET world for me it is edmx files. It gives you the database plain – and have generators for POCO (http://blogs.msdn.com/b/adonet/archive/2010/01/25/walkthrough-poco-template-for-the-entity-framework.aspx) as for EF4.1 DBContext(http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-model-amp-database-first-walkthrough.aspx). I will use this one – because of the new ! But the template is over simplistic -so I improved . I do not want you…
-
Interfaces and more
Summary: If you want common behavior,you need an interface. And from the first one is a small step to re-organizing the program. Body: When you make a component for other people,you must make the possibility for those to 1. customize your software with their software 2. provide a default implementation For the messaging component,the…
-
Simple messaging system -database configuration
Contents We will create the database tables and user to access the database from the application You will find at bottom the scripts for creating database materials to read further homework for you As an older database programmer,I have started with database configuration. The selected database engine is Sql Server 2008 R2 Express – the…