ASP.NET WebForms vs MVC

Posted by Nurasto | December 20, 2013 | Software and Web Development | 0 Comments

Microsoft give ASP.NET developers choice to develop website or web application. This article comparing both in personal perspective, so it will not so technical article, just a personal opinion.

WebForms has been exist more than a decade and personally has been using it since ASP.NET 1.1. WebForms have strong points and weak points, it’s not perfect thing but many application I was made has been deployed run and can be maintain without much hassle.

Read More …

Find All Controls ID in ASP.NET WebForms

Posted by Nurasto | September 2, 2013 | Software and Web Development | 0 Comments

Every ASP.NET developer know to find and cast a control but sometimes finding the control name is PITA. I face this kind of problem when still actively programming C# in .NET 2.0 era. So, I have an idea to write junk code in asp.net code behind and throw up into output window rather than putting breakpoints and looking for control ID.

private void ControlExplorer(System.Web.UI.ControlCollection control)
{
	if (control.Count > 0)
	{
		foreach (System.Web.UI.Control currentControl in control)
		{
			System.Diagnostics.Debug.WriteLine(currentControl.GetType().FullName);
			System.Diagnostics.Debug.WriteLine(currentControl.ID);

			this.ControlExplorer(currentControl.Controls);
		}
	}
}

You can call the method inside an control event, choose the target (e.g wizardForm.Controls) and it will print out everything you want. You’re welcome.

SQL Server Attach Error 5120

Posted by Nurasto | August 27, 2013 | Software and Web Development | 0 Comments

I was trying to attach a mdf file from local backup into Microsoft SQL Server 2012 and I got access denied after clicking OK button. I saw many people was facing this situation. The solution to this problem quite simple, well, at last.  Here’s how:

  1. Run your SQL Server Management as Administration
  2. Use Windows Authentication
  3. Attach your mdf file

I was also trying logged in using SQL Server Authentication but failed. Hopefully, you could then attach your mdf file to SQL Server. Cheers.

XAMPP lambat di Windows 7

Posted by Nurasto | June 9, 2013 | Software and Web Development | 0 Comments

XAMPP adalah bundel AMP favorit saya. Beberapa hari belakangan ini, saya menemukan Apache berjalan dengan lambat di Windows 7 bahkan kadang sangat lambat padahal komputer kerja saya berprosesor quad core dan mempunyai 8 GB memori. Hal ini aneh dengan spesifikasi komputer seperti ini dan saya menyakini ada hambatan dalam prosesnya.

Saya mempunyai beberapa pemikiran yaitu prosesnya tertahan dan bisa jadi karena proses lookup terhadap localhost. Untuk itu perlu dilakukan pengecekan mengapa hal ini bisa terjadi.

Read More …

Extending Controller in CodeIgniter

Posted by Nurasto | October 25, 2012 | Software and Web Development | 3 Comments

How to extend the controller on CodeIgniter? In the user guide it tells you need to extend core library and give MY_ prefix to be able to extend the controller. So, now you may start thinking “How on earth to make multiple inheritance from the core controller?”.

It’s really simple. In this case we want to have two parent/base controllers for our application controllers. The implementation flow goes like this:

  1. Create MY_Controller.php on core directory located inside application directory
  2. Create your first inherited controller class into MY_Controller.php
  3. Create your second inherited controller class into MY_Controller.php

Read More …

Bit and Bytes

Hello. My name is Dityo Nurasto. I am working as freelance software and web developer.

This is my personal playground. Enjoy your stay and don't hesitate to send comments.

ShoutBox