Nurasto.com Website

My digital scrapbook

ASP.NET WebForms vs MVC

on under Software and Web DevelopmentBe the first to comment

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

on under Software and Web DevelopmentBe the first to comment

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

on under Software and Web DevelopmentBe the first to comment

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.

How to Install DD-WRT firmware on TP-LINK WR741ND V4

on under Computer and Tech30 Comments

DD-WRT is Linux-based firmware for several wireless routers and can be replaced to several routers on the market. TP-LINK WR741ND is a wireless router from TP-LINK and the wireless antenna could be detached which allowing user replace it to other antenna.

There’s nothing wrong to the official firmware but we can replace it with DD-WRT to utilize the hardware maybe some freedom. There’s risks to flashing non-official firmware to a device such as void product warranty, brick your device, and you may can’t revert.

Read More

Headphone Murah Berkualitas

on under Review2 Comments

Aktifitas di komputer yang paling banyak dilakukan adalah memutar musik, saya suka musik ketika sedang membuat suatu program. Hal yang membuat saya membeli headphone adalah saya tidak bisa mendengarkan musik ketika malam hari dengan menggunakan speaker. Bisa – bisa tetangga pada gedor – gedor pintu pagar. Kebetulan saya memiliki dua buah headphone yang menemani saya bekerja, saya ingin memberikan review mengenai kedua produk tersebut. Bolehlah, sekali – kali programmer buat review daripada manyun.

Loh kenapa dua? satu saja kan ya cukup mas bro? Headphone pertama saya gunakan untuk mendengarkan musik dan membangun musik kelas amatiran. Yang kedua untuk Skype an sama kolega karena ada built in mic nya. Yuk, mari mulai baca reviewnya.

Read More