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.
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)
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.
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:
- Run your SQL Server Management as Administration
- Use Windows Authentication
- 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 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.
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:
- Create MY_Controller.php on core directory located inside application directory
- Create your first inherited controller class into MY_Controller.php
- Create your second inherited controller class into MY_Controller.php