Wednesday, July 22, 2009

Use Server Controls Where Appropriate

Use Server Controls Where Appropriate

The HTTP protocol is stateless; however, server controls provide a rich programming model that manages state between page requests by using view state. Server controls require a fixed amount of processing to establish the control and all of its child controls. This makes server controls relatively expensive compared to HTML controls or possibly static text. Scenarios where server controls are expensive include the following:
  • Large payload over low bandwidth. The more controls that you have on a page, the higher the network payload is. Therefore, multiple controls decreases the time to last byte (TTLB) and the time to first byte (TTFB) for the response that is sent to the client. When the bandwidth between client and server is limited, as is the case when a client uses a low-speed dial-up connection, pages that carry a large view state payload can significantly affect performance.
  • View state overhead. View state is serialized and deserialized on the server. The CPU effort is proportional to the view state size. In addition to server controls that use view state, it is easy to programmatically add any object that can be serialized to the view state property. However, adding objects to the view state adds to the overhead. Other techniques such as storing, computed data or storing several copies of common data adds unnecessary overhead.
  • Composite controls or large number of controls. Pages that have composite controls such as DataGrid may increase the footprint of the view state. Pages that have a large number of server controls also may increase the footprint of the view state. Where possible, consider the alternatives that are presented later in this section.


When you do not need rich interaction, replace server controls with an inline representation of the user interface that you want to present. You might be able to replace a server control under the following conditions:

  • You do not need to retain state across postbacks.
  • The data that appears in the control is static. For example, a label is static data.
  • You do not need programmatic access to the control on the server-side.
  • The control is displaying read-only data.
  • The control is not needed during postback processing.

Alternatives to server controls include simple rendering, HTML elements, inline Response.Write calls, and raw inline angle brackets (<% %>). It is essential to balance your tradeoffs. Avoid over optimization if the overhead is acceptable and if your application is within the limits of its performance objectives.

Source: http://www.daniweb.com/forums/thread1597.html#

Wednesday, July 1, 2009

24 years old

My gg-client game buddies were saying "24 ka na pala! tanda mo na pala kuya!". I don't know how and what to say with these people. Well to tell you the truth, I will be 24 years old this coming July 12, 2009 and I can not feel being 24. I still play a lot. Play video games, arcades. Paradox of growing up is that I lay off at drinking and going to parties. I smoke, not much. I also got this new hobby. I am collecting the tags of my new shirts. I am creating a collage of those tags on my walls with my anime posters. AND i also collect hooded shirts.
I am now in line with web applications. I can already widened my arms to catch what IT has now.

Wish List :
1) Nintendo wii
2) laptop
3) itouch
4) video card
5) ram ddr2

Friday, May 8, 2009

The GUYS's RULE

THE GUYS' RULES AT LAST A GUY HAS TAKEN THE TIME TO WRITE THIS ALL DOWN FINALLY, THE GUYS' SIDE OF THE STORY.
(I MUST ADMIT, IT'S PRETTY GOOD.)
WE ALWAYS HEAR "THE RULES"
FROM THE FEMALE SIDE.
NOW HERE ARE THE RULES FROM THE MALE SIDE.
THESE ARE OUR RULES!
PLEASE NOTE.. THESE ARE ALL NUMBERED "1"
ON PURPOSE!
1. MEN ARE NOT MIND READERS.

1. LEARN TO WORK THE TOILET SEAT.
YOU'RE A BIG GIRL. IF IT'S UP, PUT IT DOWN.
WE NEED IT UP, YOU NEED IT DOWN.
YOU DON'T HEAR US COMPLAINING ABOUT YOU LEAVING IT DOWN.

1. SUNDAY SPORTS. IT'S LIKE THE FULL MOON
OR THE CHANGING OF THE TIDES.
LET IT BE.

1. SHOPPING IS NOT A SPORT.
AND NO, WE ARE NEVER GOING TO THINK OF IT THAT WAY.

1. CRYING IS BLACKMAIL.

1. ASK FOR WHAT YOU WANT.
LET US BE CLEAR ON THIS ONE:
SUBTLE HINTS DO NOT WORK!
STRONG HINTS DO NOT WORK!
OBVIOUS HINTS DO NOT WORK!
JUST SAY IT!

1. YES AND NO ARE PERFECTLY ACCEPTABLE ANSWERS TO ALMOST EVERY QUESTION.

1. COME TO US WITH A PROBLEM ONLY IF YOU WANT HELP SOLVING IT. THAT'S WHAT WE DO.
SYMPATHY IS WHAT YOUR GIRLFRIENDS ARE FOR.

1. A HEADACHE THAT LASTS FOR 17 MONTHS IS A problem. SEE A DOCTOR.

1. ANYTHING WE SAID 6 MONTHS AGO IS INADMISSIBLE IN AN ARGUMENT.
IN FACT, ALL COMMENTS BECOME NULL AND VOID AFTER 7 DAYS.

1. IF YOU WON'T DRESS LIKE THE VICTORIA 'S SECRET GIRLS, DON'T EXPECT US TO ACT LIKE SOAP OPERA GUYS.

1. IF YOU THINK YOU'RE FAT, YOU PROBABLY ARE.
DON'T ASK US.

1. IF SOMETHING WE SAID CAN BE INTERPRETED TWO WAYS AND ONE OF THE WAYS MAKES YOU SAD OR ANGRY, WE MEANT THE OTHER ONE .

1. YOU CAN EITHER ASK US TO DO SOMETHING
OR TELL US HOW YOU WANT IT DONE.
NOT BOTH.
IF YOU ALREADY KNOW BEST HOW TO DO IT, JUST DO IT YOURSELF.

1. WHENEVER POSSIBLE, PLEASE SAY WHATEVER YOU HAVE TO SAY DURING COMMERCIALS.

1. CHRISTOPHER COLUMBUS DID NOT NEED DIRECTIONS AND NEITHER DO WE.

Monday, April 27, 2009

latest of what i am

whoah!...
I though of not sleeping today. I would stay awake all night to surf and study ASP.NET rather than being awake for more than 24 hours. My new work will be in the evening and have'nt tried this one before. I will be in the office 7:30pm or 8pm because my call time is 9pm then stay till 6am. it's my first day or should i say my first night shift. first day in the company working as a proby for 3 months. i wonder what will i do later in the office. i have not been informed on the company rules and regulations yet and the thing that i did that was connected to my new company were took the examination, interviewed then signed my contract. well it's a call center company, a contact solution company. i am assigned as an application developer. i am excited to work at night and to experience my friends environment, well most of them are working in call centers as agent so they are oblige to stay at night and work, the difference is that i am an application developer.

Tuesday, March 31, 2009

RL

Ma’m X,

Greetings!
Going straight, I would like to back-out with the current task given to me, being deployed for 6 months in Cebu Pacific to work as a third party Software Developer for some reasons. Reasons/Questions like; what are the grounds or criterias that you and Mr. Ydecided to deploy me to a work that is different from my current item. I strongly believe that employees being deployed are fully equiped, a fast-learner type person and has a good record in the main company as well. I am not saying that I don’t 100% possed those characteristics but based on the evaluation form that Mr. Y gave me, I am below 1% of the said ideals. I am but certain that there is a much better Software Engineer that is near to that place and is much equiped than myself for that kind of work. I would like to stay in Makati and be with my current and real officemates as well as the admin and with my current item rather than be deployed and be ashamed of myself because I did not do my work well because I was labeled onced as an individual who is “constantly pre-ocupied with non-work related stuffs, like surfing and chatting. Has a short patience in studying the code by himself and is more inclined to ask for an explanation” as my weakness and “has to refrain from things that causes distractions and focus more on the task at hand. Need to be more innovative in studying program codes and conventions and has to do-away with spoon-feeding attitude” as my suggested ways for growth and development.

This also stand my resignation letter if ever you don’t want or agree to my suggestion. I hope for your kind consideration and I remain…

Regards,
Quijano, Wilbert B.