Saturday, January 7, 2012

6 job market trends.

since the start of the recession in December 2007, the United States has lost 8.4 million jobs. Yet, employers are finally feeling a renewed sense of hiring optimism, according to a new survey from CareerBuilder and USA TODAY. For the third consecutive quarter, more hiring managers and human resource professionals are projecting they will increase headcount in the next three months while fewer are expecting staff cuts.

Wednesday, January 4, 2012

Self Awareness

Self Awareness is having a clear perception of your personality, including strengths, weaknesses, thoughts, beliefs, motivation, and emotions. Self Awareness allows you to understand other people, how they perceive you, your attitude and your responses to them in the moment. We might quickly assume that we are self aware, but it is helpful to have a relative scale for awareness. If you have ever been in an auto accident you may have experienced everything happening in slow motion and noticing details of your thought process and the event. This is a state if heightened awareness. With practice we can learn to engage these types of heightened states and see new opportunities for interpretations in our thoughts, emotions, and conversations. More Details

Tuesday, December 6, 2011

.Net framework 4.5

ASP.Net request validation is a feature that automatically protects ASP.Net applications from XSS attacks. Request validation in triggers error when it found HTML markup in any of the input data. But some real life applications still require HTML data in some of the input fields. For e.g. When receiving feedback from user, you may need to get the feedback as HTML. Prior to 4.5 the developers have the ability to switch off the request validation either in page level or for the entire application. Even though this was helpful, for accepting HTML markup from any one field in the page, you were required to disable the validation for entire page or disable it for entire application. ASP.Net 4.5 brings some improvements to the request validation features. There is a new attribute introduced to httpRuntime element called requestValidationMode. You can set value for this attribute to 4.5 so that new improvements will be applied to your application.

Monday, October 24, 2011


Hi Folks,,

  today i am going to write about  an old feature of , but thought this may help you.  
Long story short, i think every body knows what theming is . so let's start to look how to implement it .

First of all there is a special folder type for themes  in , which is called APP_THEMES. 
Before you start with you need to add App_theme folder to your web site/application.

Go to your project right click on it and Select Add >>> Add ASP.NET Folder >> Theme

Bravo now you have the theme folder . Next what you have to do create folders for each of theme you want..

e.g. Let's say you want three themes according to user types , which will be Pre paid / Postpaid and For Unregistered Guests . what you will be doing is creating three folders  and name it accordingly.

Then for each folder you can add separate css file which will be used to dress your web pages.
e.g. with in the prepaid folder you can add prepaid.css  file. and especially you can add skin file also which will used to decorate your controls.

e.g. you want all the text-box of your web page to have black border when you select a specific theme. what you can do is you can add a skin file to , specific theme folder and give a name for it and then add some thing like this 

<asp:TextBox: runat="server" border ="Blah blach balcj,,....."/> .

Last the interesting part . How to change the themes ?

there are two options you can use web.config to set a them.  this is useful when you are developing a product and you want to give the product to separate customers with different looks,.
this is how to you can do it . in the web config  system.web section

 <pages theme="theme name"></pages> 

 Other option is to change the theme on the fly.which means dynamically changing the theme,

protected override void OnPreInit(EventArgs e) {
 Page.Theme = "ThemeName";


That's all ..



Sunday, February 20, 2011

Dynamically Load Controls to a web page

Hi folks !!!

this is something simple, and thought it will be important for all of you. recently, I had a requirement of adding various controls to a certain page according to the current type of  the user. Let's say , we have a user which can  be swap between three states. lets say ,

  • state A
  • state B
  • state C
and each state has its own properties and descriptions, So ideal decision is to develop three different usercontrols for the states, correct???
So i have developed  the three usercontrols.  Then we i have option of

  • either adding to all three usersontrols to the page and hiding it according to the state
  • Or, i would prefer adding the relevant usercontrol from the server side it self to the page and pass the page to the client.
in this scenario, i prefer to go with the second option, because of the performance and the elegance.
 // create a control
Control cntrlUCstate= new Control();
// Load that control 
 cntrlUCstate =   LoadControl("relative path of the control");
// assume that you are using an update panel.( aupAccBal is the update panel)

if you want , you can clear the control collection as well.  

Thanks N enjoy!!!

Thursday, February 3, 2011

Set a value from the top SQL

Hi Folks!!

 This is what something i have went wrong with. I wanted to set a value which was returning from the top clause,
 what i tried was
SELECT  @Variable = Top 1 <<column>> FROM <<table>>
Certainly that gave me errors .
So few searches from internet has solved my problem.

this was the solution for it.
SET @Variable =( SELECT   Top 1 <<column>> FROM <<table>>)