|
Πρόσφατες Δημοσιεύσεις
-
In this post I would like to show you a hands on example on ASP.Net Web API by building a small ASP.Net application. I am going to build an ASP.Net MVC 4.0 Web application to create a Web API that returns a list of football players. I will also use the popular Javascript library JQuery to issue requests to the server.In the second part of this blog post I will show you how to support more operations in an HTTP service like create,update,delete players using a REST architectural style. Before I go on with the actual example I will talk a little bit about REST . In 2000, Roy Fielding introduced REpresentational State Transfer in his P.H.D Thesis. It describes a scalable architecture for building services that build on HTTP . REST is fundamentally different from SOAP . SOAP defines a transport-neutral model that is focused on defining custom services contracts with custom operations.You can invoke those operations over a variety of different transports using different message encodings. REST defines a transport-specific...
|
-
Ένας οδηγός από το Α έως το Ω για όσους θέλουν να εγκαταστήσουν AlwaysOn Availability Groups του SQL Server 2012 με Windows Server 2012 more...
|
-
Templates για κατασκευή εφαρμογών για Windows 8 από τη Microsoft Ινδίας (original post: https://www.meetmyapp.in/meetmyapp/windows_8_build.aspx ) Template Name: Blocks Styled Colored Blocks Styled Colored template will help if you want to build an app which has asymmetric display of blocks in the hub page Template Name: Drawing Template The Drawing template is an emulation of a Painting app with placeholders for Drawing area, Color selection and Tool Box. Template Name: Blocks Template Blocks template will help you in building an App which has the ingredients like Game, Content and Details Block Template Name: Health Management Template The Health Management template is an emulation of a Clinic app with placeholders for Profile, Reports and Patient details. Template Name: Bricks Style Brick Style template will help if you want to adopt a brick style variable size display in your app's hub page. Template Name: Translator Template The translator template provides placeholders for translating one language to...
|
-
UI simply depends on the smartness of our components. However the visible UI space is limited and most of the information is hidden behind components (tabs, popup forms etc). Therefore to display this hidden info user interaction is required. Tooltips however do not require any user interaction and our Suite supports tooltips with html formatting even in windows platform. We can already empower the detailed views of our XAF applications with native tooltip support as described in this help document . However when developing in XAF the sky’s the limit and in this post we will discuss ways to create tooltips as demoed in our XVideoRental RWA. DataOnToolTip By this we mean that we want to push any data a property of a business object has to a tooltip. Therefore, first we need to create a interface and extend our Application Model columns as described in our documentation , [ ModelAbstractClass ] public interface IModelColumnTooltipData : IModelColumn { IModelTooltipData TooltipData { get ; } }...
|
-
In this post I would like to talk about the size of the transaction log and under what circumstances it clears in relation to recovery models and database backup types (Full, Differential, Log). I will also give a brief overview of recovery models, database backup types. ( read more )...
|
-
I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. This is the sixth post in this series. You can find the first one here , the second one here , third one here , the fourth one here and the fifth one here . Make sure you read and understand those posts. In this post I will add some validations to our application through Code First Data Annotations and migrate those changes to our database through EF Code First Migrations. Right now there is no validation for the fields Rating and Comment of the MovieReview entity. I want to have a validation rule applied to the Rating field that will accept only values 1 to 10 and it will be mandatory . The Comment field will only be 100 characters long and also mandatory .We also want to have the characters for the Name property of the Movie entity restricted to 70 and the name of the Director...
|
-
I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. This is the fourth post in this series. You can find the first one here , the second one here the third one here and the fourth one here . Make sure you read and understand those posts. In this post I will add Search functionality to my application and 1) Launch Visual Studio and open the application 2) We must add code to the _Layout.cshtml view in the Shared folder and more specifically to the menu. We must add an entry so someone can navigate to the Movie View. The nav section becomes like this <nav> <ul id="menu"> <li>@Html.ActionLink("Home", "Index", "Home")</li> <li>@Html.ActionLink("About", "About", "Home")</li> <li>@Html.ActionLink("Contact", "Contact", "Home")</li> <li>@Html.ActionLink("Movie", "Index", "Movie")</li>...
|
-
The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here’s an excerpt: 4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 48,000 views in 2012. If each view were a film, this blog would power 11 Film Festivals Click here to see the complete report. Tagged: 2012, [...]...
|
-
I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. This is the fourth post in this series. You can find the first one here , the second one here and the third one here . Make sure you read and understand those posts. I am building an ASP.Net MVC application where users can enter movies and rate them. As we develop our application I will change the requirements and add more features. My goal is to have a working application and at the same time show you the building blocks of ASP.Net MVC. In the last post we have created the entities needed in order to store and retrieve data (models,views and the database). Now I would like to talk about Code Blocks and Code Expressions in Razor Views . 1) Launch Visual Studio and open the ASP.Net MVC application 2) Open the Index.cshtml from the Views/Movie folder.These are the contents of...
|
-
I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. This is the third post in this series. You can find the first one here and the second one here . Make sure you read and understand the first post and the second post. As I design and develop the application I will explain some of the most common building blocks of ASP.Net MVC like Code blocks,Code expressions,Action Results,Action Selectors,Action Filters, Layout Views and Partial Views . Now we have to think about the data access technology that we will use in our sample application. I am going to build an ASP.Net MVC application where users can search through a collection of movies and rate them. I will not use traditional ADO.Net data access techniques. I will use Entity Framework (EF) which is part of the .Net framework. Obviously I cannot go into much detail on what EF...
|
-
I just got an (overpriced) Philips PTA01 USB adapter the other day to make my Philips Smart TV also work wirelessly (apart from via Ethernet cable) and it came with the Philips MediaConnect software on a CD, or at least I thought so till I placed the CD in my computer. I then found out [...]...
|
-
I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. This is the second posts in this series. You can find the first one here . Make sure you read and understand the first post. In this post I would like to look into the internals of ASP.Net MVC and what happens when an incoming HTTP request comes in from the browser. Bear in mind that the local web server is IIS Express .This is the web server that will handle the incoming request. IIS Express will take that request and deliver it to my application.Let's run our application again and click on the Contact link on the top right hand corner of the page. When I click that link the URL in my browser becomes http://localhost:59871/Home/Contact . As mentioned earlier the local web server will take this request and deliver it to my ASP.Net MVC application.Inside the ASP.Net MVC application...
|
-
This post will be on how to use the approach described in Fast prototyping requires an initial data import mechanism with Excel as input source. The technic is based on System.Data.DataSet class and can be applied to any type of input source! Thanks to your reports and of course Slava’s help ( XPO guru), XVideoRental importing mechanism has been improved a lot and now is faster, has notification events and is decoupled from XAF ’s TypesInfo system. This makes it possible to simply copy the ImportData.cs file found in Common.Win project and use it in non XAF solutions! In previous version this importing mechanism worked only when matching in types of input and output members. This means that if my output Oid property was a System.Guid then input should be of the same type. Now we have workaround this minor issue. If conversion is possible it will be done automatically without the need of any configuration or extra coding! To better design, support, extend and describe the importing mechanism I used Mspec a functional...
|
-
I have been using ASP.Net MVC, Visual Studio, C# , Entity Framework, JQuery, CSS to build web sites and applications. I have been teaching ASP.Net MVC to people from all walks of life with different experience in Web development. I have decided to write a series of posts on how to write a small ASP.Net MVC 4.0 application.I will develop this application step by step and I will explain everything that you need to know in order to develop ASP.Net MVC 4.0 applications. There are some other posts in my blog, regarding ASP.Net MVC . You can find them here , here . Please have a look at those posts to get a feeling for ASP.Net MVC .I will repeat some of the content found in those posts in the posts that will be part of this series. If you are an experienced ASP.NET MVC developer, maybe you mus go on and read something more advanced. I will talk about advanced things later on though.This series is aimed at developers that start learning ASP.Net MVC .I assume that you have some working knowledge of HTML,CSS. It will be...
|
-
In this post I would like to talk a bit about Transaction Log ,its various parts and its architecture. I will not go into details about what Transaction Log is because it is well documented elsewhere. I would like also to highlight a few important points. Ι will provide hands-on examples for the DBCC LOGINFO and DBCC SQLPERF commands. ( read more )...
|
-
t’s always a drag having to create country lists for your web sites. Thanks to WebResources.com though Read more...
|
-
arlier today the Windows Azure team released a number of improvements to Windows Azure. These Read more...
|
-
esterday I had the opportunity to do a live meeting on how to migrate workloads Read more...
|
-
In this post I will be looking into a great feature in CSS3 called multiple backgrounds .With CSS3 ourselves as web designers we can specify multiple background images for box elements, using nothing more than a simple comma-separated list . This is a very nice feature that can be useful in many websites. In this hands-on example I will be using Expression Web 4.0.This application is not a free application. You can use any HTML editor you like.You can use Visual Studio 2012 Express edition. You can download it here . Before I go on with the actual demo I will use the ( http://www.caniuse.com ) to see the support for CSS 3 Multiple backgrounds from the latest versions of modern browsers. Please have a look in this link All modern browsers support this feature. I am typing this very simple HTML 5 markup with an internal CSS style. <!DOCTYPE html> <html lang="en"> <head> <title>Sold items</title> <style> #box{ border:1px solid #afafaf; width:260px; height:290px; background-image:url(shirt.png),...
|
-
I have been using JQuery for a couple of years now and it has helped me to solve many problems on the client side of web development. You can find all my posts about JQuery in this link . In this post I will be providing you with a hands-on example on the JQuery LazyLoad Plugin .If you want you can have a look at this post , where I describe the JQuery Cycle Plugin. You can find another post of mine talking about the JQuery Carousel Lite Plugin here . Another post of mine regarding the JQuery Image Zoom Plugin can be found here . You can have a look at the JQuery Overlays Plugin here . There are times when when I am asked to create a very long page with lots of images.My first thought is to enable paging on the proposed page. Imagine that we have 60 images on a page. There are performance concerns when we have so many images on a page. Paging can solve that problem if I am allowed to place only 5 images on a page.Sometimes the customer does not like the idea of the paging.Believe it or not some people find the...
|
-
XAF knowledge base is really rich and in our Support Center you can find solutions for all common business problems. Moreover our community project www.expandframework.com has tones of reusable solutions, we collected a few of them and applied them to the video rent business. The demo is available with 12.2.4 version of our Suite and can be found in the same folder with the other amazing XAF demos! XAF is a framework that provides the tools that a developer needs for building business solutions. A state of the art multi layered configuration system – The Application Model . A robust and flexible Security System that can be used to protect our data and control the auto generation of the UI based on Role permissions Its own reflection system ( TypesInfo )– with amazingly simple ways to do what .NET does not offer eg. Runtime members, dynamic attributes etc. A well designed architecture to guide you where you should put your code. Moreover a very flexible modularization for structuring and further supporting any...
|
-
After hours of searching in the documentation in order to implement a decent drag and drop behavior in WinJS.UI.ListView (like the one we see on the “start” screen) I have finally managed to make it happen and in this post I am sharing the way it can be done. During this post there are also answers about: How to provide multiple templates for the ListView items. How to “gesture enable” your DOM elements. The main requirement is simple. You have a WinJS.UI.ListView control on your Windows Store app and need to allow the user move some elements in the list (usually to allow the user to define via drag and drop their order in the list). We will start with a very simple project where a demo list (dataList) is defined as follows: var groups = [ { key: 'group1' , title: 'Group 1' }, { key: 'group2' , title: 'Group 2' } ]; var dataList = new WinJS.Binding.List(); dataList.push({ group: groups[0], data: { id: 1, name: 'one' } }); ... dataList.push({ group: groups[0], data: { id: 7, name: 'seven' } }); dataList = dataList.createGrouped(...
|
-
At ClipFlair’s Image component I use the following XAML to make it show an image from a URL that its ViewModel holds at a property named “Source”, of type Uri (URI = Uniform or Universal Resource Identifier in W3C parlance, something like a superset of the old classic URLs). <Image Name="imgContent" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" [...]...
|
-
I have been using JQuery for a couple of years now and it has helped me to solve many problems on the client side of web development. You can find all my posts about JQuery in this link . In this post I will be providing you with a hands-on example on the JQuery Overlays Plugin .If you want you can have a look at this post , where I describe the JQuery Cycle Plugin. You can find another post of mine talking about the JQuery Carousel Lite Plugin here . Another post of mine regarding the JQuery Image Zoom Plugin can be found here . I will be writing more posts regarding the most commonly used JQuery Plugins . With the JQuery Overlays Plugin we can provide the user (overlay) with more information about an image when the user hovers over the image. I have been using extensively this plugin in my websites. In this hands-on example I will be using Expression Web 4.0.This application is not a free application. You can use any HTML editor you like. You can use Visual Studio 2012 Express edition. You can download it here...
|
-
I’ve been puzzled for some days now with the IIS Transform Manager installation we have at ClipFlair for automating the conversion of media files (for example using Microsoft Expression Encoder) into IIS Smooth Streams. The watch folder I’ve set up for this task was ignoring some of the media files I was dropping in for no [...]...
|
|
|
|