RSS

Find Room Rentals in Malaysia

There are many reasons for a person to want to find a room to rent. Whatever the reason may be, the good thing is there is plenty of rooms for rent here in Malaysia.

Personally, I’ve rented and still renting a place. I’ve rented a RM 700 bungalow room and now a RM 1200 condominium with my friend.

If you’re here to find room rental, then it’s the right place. Just click on the link. The website provides a lot of good and decent information for users to find their required room rental specification. There are nearly 30,000 rooms listed in there.

It has a list of most desired places which most people would like to rent a room at. All you need to do is click on the ‘Rooms’ tab and begin searching for your room specifications or you could just click on the links which are provided at the left of the screen in the ‘Rooms’ tab to filter which location you would desire. Is that simple!

If you’re from the outskirts of Malaysia, I would recommend to search central places like PJ or Damansara. If you’re a student, then obviously you would want to rent somewhere near your campus. Whatever your requirement is, the website is the place to start! Cheers all!

  • www.tips-fb.com
  • Follow LBenjamin on Twitter
  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

New Prospects

It's been 3 months since I joined Panasonic and things had turned out to be great.

The workplace is really nice and the people really grows onto you.
Although I'm youngest looking and also the youngest in age there, but it doesn't posed as a barrier.
In fact, I made a really understanding friend there. I guess it's because we sit next to each other, lol!

My boss had been great. Just last month, I had eaten 6 different Secret Recipe cakes! It's because there were 4 colleagues who's birthday falled on January and 2 on February.
In these 2 months plus, my boss had spent us all for lunch 3 times, but I didn't join in for the first two because I had to excuse myself. The recently lunch was at D'Italiane @ Jaya 33. My boss spent this 3rd lunch was specifically for the team I'm in because we had performed well for the project which was assigned to us.

I've decided stay in this company for quite a long duration because unlike my previous company, this company actually states the ranks which I could be promoted to. It's like, they've planned and paved the way for me. I just have to work for it. Furthermore, I have totally zero complain about the wage which I'm getting now. If I abide by my plan right since the start of this month, I may be getting 2 iPhones 3GS by May and also my car by October or November when my friend comes back from Singapore since I'm going to buy through his friend's dad.

Apart from some hiccups which occured recently, it has been a great year for me. Cheers!!

  • www.tips-fb.com
  • Follow LBenjamin on Twitter
  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

[ASP.NET] [C#] Switching MasterPage Dynamically

Have you ever wanted to changed a MasterPage of an ASPX webpage dynamically when your website is running? Well, I’ve recently encountered this problem myself too and found a solution to it. So without further ado, I present the solution to you!

First go to your code-behind page of the .aspx page which you wish to have its MasterPage changed dynamically. Let’s say for example, you want your example01.aspx to change its MasterPage dynamically, you have to open the example01.aspx.cs page.

Ok here’s the step-by-step walkthrough.

Step 01:

Enter the following code below at anywhere in the public partial class section

Code:
protected void Page_PreInit(object sender, EventsArgs e)
{

}

Explanation:

The MasterPage needs to be defined before the .aspx page is initialized. In simpler terms, without the MasterPage predefined before the .aspx initialized, the .aspx page have no where to be loaded to, because webpages of website which utilizes MasterPage normally and most certainly requires a ContentPlaceHolder for it to be loaded into.

 

Step 02:

Enter the following code in the Page_PreInit body

Code:

MasterPageFile = “YourMasterPage.Master”;

 

Step 03 (optional):

Incorporate conditions with the code. What’s the point of changing MasterPage dynamically if there’s no conditions in the first place, right? The fact that we want to dynamically switch MasterPages, there has to be a condition. Therefore, incorporate them!

In my case, I determine  the user type. If the user who logs in is an admin for example, I will display a MasterPage for admins, if its a user, I’ll display a MasterPage for users.

The code should look something like this:

protected void Page_PreInit(object sender, EventArgs e)
{
     string redirect_from = ((string)Request.QueryString["redirectedfrom"]);

     if (redirect_from == "staff")
     {
          MasterPageFile = "~/MasterPage/StaffMaster.master";
    }
    else
    {
          MasterPageFile = "~/MasterPage/AdminMaster.Master";
    }
}

 

The code above shows the way I incorporated conditions to the code which triggers it to switch MasterPage if a certain user type logs in. If you’re wondering what’s with the “~/MasterPage/”, it is because I stored all my pages in their respective folders and my MasterPages are stored in a folder named MasterPage.

  • www.tips-fb.com
  • Follow LBenjamin on Twitter
  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS