The .Net platform


The .Net platform:

The Net platform is a development framework created by Microsoft to provide a new programming interface to Windows applications, by integrating many technologies. The first version of the .net platform was released in April 2003[5]. However, the ideas behind.Net framework is to use a new strategy by enabling software as a service (SaaS).


The five main components of .Net Platform are Visual Studio .NET, .NET Enterprise Servers, .NET Framework, .NET Building Block Services, and Operating system on servers, at the top of the previous figure the bottom layer is the operation system (OS) such as windows XP, Windows Server and Windows CE [5]. The second layer on top of the OS layer is group of specialized server products, the required to develop large scale business applications, such as BizTalk Server, Exchange Server and SQL Server [5]. On the Top layer of the .NET is the development environment tool (IDE) Visual Studio, which is one of the best IDE on the development market, because of the feature that included in the visual studio make the development cycle easy to use. Also supporting many programming languages for example, C#.NET, VB.NET, F#, and more.

 History of ASP.NET MVC

The first release of ASP.NET was in 2002, at a time Microsoft company was trying to protect its position with controlling the market of desktop application development. At the same time, Microsoft realized the thread of the internet revolution on their technologies [3].

The following figure 2 showing the technology stack as it is showing then.




Using web forms Microsoft tried to support both the statelessness Hypertext Transfer Protocol (HTTP), also support the uncommon Hypertext Mark-up Language (HTML) at that time by many developers, by modeling the user interface (UI) and the server-side control object [3]. However, the huge support from Microsoft to build new technology to give the developer the ability to make web development just same as developing windows application, from this point Microsoft company opens a new door for the windows application developers called the world of web applications.

In General, the web form development as a principle was good, but the developer found it more complicated [3]. Because of,

  • View Stat weight: the actual amount of data transferring between the client and the server its was huge blocks, causing a slow loading for the web application.
  • Page life cycle: the code to link the front end with back end code to handle the event is part of the page life cycle it was very accurate and complicated.
  • Limited control over HTML: the Server (IIS) is responsible to handle the rendering for the code, sometimes that causing failed to meet the standard HTML.
  • Low testability: the approach of the design was in web form was tightly coupled was not fitting for the unit test tools, that cause big effort on the developers.

The consequence for the last issues in the classic made Microsoft the find solution, Will demonstrate the solution as we are explaining the history of[]




[4] Steve Smith, 2018, Overview of ASP.NET Core MVC, Microsoft Corporation, [Online] Available at: , [Accessed 01 May 2019].

[5] Hoang Lam, Thuan Thai, 2009, .Net Framework Essentials,3rd Edition, O’Reilly.


Paging in ASP.NET MVC part 2


Hi, again this is Part 2 from Paging in ASP.NET MVC.

In Part 1, I showed you how to add all data required.

Now let's try to finish what we start together.

Now will try to add new Controller and Call it StudentController.

The most important one is, what I highlight it (Yellow).

First one is declared our Interface,

  private readonly IStudent repositoryStudent;

building contractor.

 public StudentController(IStudent repoStudent)
            repositoryStudent = repoStudent;


This one our main job :)

ActionResult Index,

First int? page=1, this for your request, when it will be null, the default page will be first one page=1.

next step is reading data from our Repository.

  var model = repositoryStudent.GetStudent;

if no page was specified in the query string, default to the first page (1)

  var pageNumber = page ?? 1; 

 will only contain 25 products max because of the pageSize

  var onePageOfProducts = products.ToPagedList(pageNumber, 25); 

Don't forget to call X.PagedList .

using X.PagedList;

Now to our HTML code.

Just generate Index view.

next Photo will show you what you will have new change.

Again same what we call in our controller, we should call 2 library from X.PagedList.

@using X.PagedList.Mvc;  
@using X.PagedList;

after that to have a good style you need to add,

<link href="/Content/PagedList.css" rel="stylesheet" type="text/css" />

so after all that the most important part is.

@Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page }))


The result will be same next photo.




Youtube Video.....


Hope this article is helpful.

If you have any question, just write in the comment.


Paging in ASP.NET MVC part 1



Today I'm going to write about Paging in ASP.NET MVC.

First, if someone asks you about paging, why?

Sometimes, we have too many rows, Photos, articles and Products you don't want to display all of them in same time,

or let's say, you don't want load 100K row in one click, this will be a big issue with your application.

  So, the solution will be is paging.

and don't forget to use IQueryable rather than List or IEnumerable.

Now, To work our first step is to create new ASP.NET MVC Project.

Follow the Photos.


Choose MVC,


Next Step, Add X.PagedList  From NuGet packages.

So, Now we need data to send it to our HTML page and display it in the table.

First, we need to create new Class in Models folder and call it Student.


Next Step, Create Folder Call it Services will put inside it,

a new class (IStudent class).



After Create our Interface, we need to create Repository Folder with StudentRepository class.

In StudentRepository Class, I have fake data just to show you how it will be in our HTML page.

sure you can Use data from your SQL Server database, using Entry Framework.



Android Application With SQL Server using Web Service Part 3


Welcome again, with Android SQL Server Web Service Connection.

In the last Article we stopped with many errors, I know that, don't worry again.

its just because of SOAP package, you need to include it to your project.

Just Change your Android Studio to Project and go to 

Your Application Name >App >Libs.... 

Just past SOAP package to this path.

after again page to Android.

Until now still you have same errors still, you need to add SOAP package to your Gradle

Gradle Scripts >build.gradle(Module: app)

just add this line(there is one more way to add but use this for now) :

compile files('libs/ksoap2.jar') 

The last thing you need to do is, add this code to Main Activity.



Now, We can say you can run your App.

Be happy,

 if you find any error just post it on the comment or text me to my facebook page.


Source Code: you can find it, in my GitHub Account.

Youtube Video on My Channel.




Android Application With SQL Server using Web Service Part 2


Hi, again to our second part from Android SQL server Web Service.    

After Create 2 Activities Home and log in.

will work on Login because it's our main jobs .

The design will look like this Photo :

I'm sure 100% you can do better than my design ;).

Code in XML .

Don't worry, if you can't copy the code. 

it's on My GitHub Account or First part from this tutorial. 

Eazy and simple till now.

Next Step, not that simple, in your Login Java Class. 

You need to declare and link your layout Component to you Java Code.

Same as this  Photo.

Now, 100% you will get errors in your code, because of  MyAsyncTask() Class, does not Exist, so declare it like this ,

private class MyAsyncTask extends AsyncTask<String,Void,String>
protected String doInBackground(String... strings) {}
protected void onPostExecute(String result) {}

 In the doInBackground method, will be the connection or create Connection String to your Database.

Add this code to :

protected void onPostExecute(String result) {}


part 3