Avantajele Dataset/DataTable

Am descoperit, cu uimire, virtutile Dataset si DataTable. Sunt extraordinare pentru proiecte one-shot! Am avut de facut o integrare intre SQL SERVER, MySQL si ORACLE(date care trebuiau verificate, mapate, schimbate, vazut diferente, grupate, etc) Dataset-ul s-a dovedit a fi unealta perfecta pentru join-uri intre tabele, pentru filtrari si altele. Admiratia mea pentru OO a mai […]

Continue reading →

Tutorial .NET – p13 – Log-area operaţiilor cu log4net

In orice aplicaţie este bine sa ţinem evidenta operaţiilor făcute de utilizator( ce a modificat sau chiar ce a văzut). In acest scop putem folosi fie mecanismul de trace din .net,  fie o soluţie proprie, fie Logging and Instrumentation Application Block(http://msdn2.microsoft.com/en-us/library/ms998162.aspx), fie log4net(http://logging.apache.org/log4net/   Vom utiliza in acest exemplu log4net .El suporta log-area operaţiilor in […]

Continue reading →

Tutorial .NET : generarea documentatiei proiectului

Documentarea – Scrierea de fişiere Help.   In .NET sunt doua tipuri mari de fişiere Help : Cele care produc Help pentru utilizatorul final si cele care sunt auto-generate din comentarii la cod.   Avem nevoie de următoarele: 1.Html Help Workshop – e free si puteţi sa îl downloadati de aici http://www.microsoft.com/downloads/details.aspx?familyid=00535334-c8a6-452f-9aa0-d597d16580cc&displaylang=en. Adiţional puteţi downloada […]

Continue reading →

Tutorial .NET : Dos Project – very short demo

Open the book.sln solution and add a new project of type ConsoleApplication (name it  BookDos) Add reference to the BookObjects project and add an app.config file and write to this file the same as in the corresponding app.config file from BookWin application. The post build event on project – properties must be the same as […]

Continue reading →

Programming in .NET – part 9 -site map and localization

The site map is relatively easy: Add a new item – find “Site Map” and accept the default name (Web.sitemap) And put the following <?xml version=“1.0“ encoding=“utf-8“ ?> <siteMap xmlns=“http://schemas.microsoft.com/AspNet/SiteMap-File-1.0“ >   <siteMapNode url=“default.aspx“ title=“Main“  description=“First Page“>     <siteMapNode url=“frmPublisherList.aspx“ title=“All publishers“  description=“Publishers list“ >       <siteMapNode url=“frmPublisher_Insert.aspx“ title=“New Publisher“ description=“Add new“></siteMapNode>       <siteMapNode url=“frmPublisher_Edit.aspx“ […]

Continue reading →

tutorial .NET – p8 – edit in ASP.NET

  Now we will edit the Publisher objects . Add a new WebForm , name it frmPublisher_Insert.aspx and make sure the “Place code in separate file” and “Select master page” are both selected by default. Change in source view the title from “Untitled Page” to “Insert Publisher” Now we must put controls in place to […]

Continue reading →