Monday, September 12, 2011
Worth remembering
LETTER FROM ABRAHAM LINCOLN TO HIS SON’S TEACHER
“My son starts school today. It is all going to be strange and new to him for a while and I wish you would treat him gently. It is an adventure that might take him across continents. All adventures that probably include wars, tragedy and sorrow. To live this life will require faith, love and courage.
So dear Teacher, will you please take him by his hand and teach him things he will have to know, teaching him - but gently, if you can. Teach him that for every enemy, there is a friend. He will have to know that all men are not just, that all men are not true. But teach him also that for every scoundrel there is a hero, that for every crooked politician, there is a dedicated leader.
Teach him if you can that 10 cents earned is of far more value than a dollar found. In school, teacher, it is far more honorable to fail than to cheat. Teach him to learn how to gracefully lose, and enjoy winning when he does win.
Teach him to be gentle with people, tough with tough people. Steer him away from envy if you can and teach him the secret of quiet laughter. Teach him if you can - how to laugh when he is sad, teach him there is no shame in tears. Teach him there can be glory in failure and despair in success. Teach him to scoff at cynics.
Teach him if you can the wonders of books, but also give time to ponder the extreme mystery of birds in the sky, bees in the sun and flowers on a green hill. Teach him to have faith in his own ideas, even if every one tell him they are wrong.
Try to give my son the strength not to follow the crowd when everyone else is doing it. Teach him to listen to every one, but teach him also to filters all that he hears on a screen of truth and take only the good that comes through.
Teach him to sell his talents and brains to the highest bidder but never to put a price tag on his heart and soul. Let him have the courage to be impatient, let him have the patient to be brave. Teach him to have sublime faith in himself, because then he will always have sublime faith in mankind, in God.
This is the order, teacher but see what best you can do. He is such a nice little boy and he is my son"
Monday, January 24, 2011
Accessing Data with ADO.net 4.0
EDM splitting
The key factor for Entity Splitting is both entities should share a common primary key
The key factor for Entity Splitting is both entities should share a common primary key
Friday, January 7, 2011
WebSite Performance Improvements
1) ViewState
Keep you viewstate light or no viewstate wherever possible
Note : Prevent any user from obtaining any part of the view state by using PageStatePersistor class http://aspnetresources.com/blog/page_state_persisters_overview
Keep you viewstate light or no viewstate wherever possible
Note : Prevent any user from obtaining any part of the view state by using PageStatePersistor class http://aspnetresources.com/blog/page_state_persisters_overview
Scalability and Distributed Caching
This topic I need to learn more. Will soon update with more feeds
Things to do to scale you web application
1)Use SQL Server replication
also refer to http://www.c-sharpcorner.com/uploadfile/gopenath/page107182007032219am/page1.aspx
Things to do to scale you web application
1)Use SQL Server replication
also refer to http://www.c-sharpcorner.com/uploadfile/gopenath/page107182007032219am/page1.aspx
MultiThreading in Asp.net Web apps
Multi threading in asp.net can be achieved using two ways
1)Using BackgroundWorker class
2)Spanning new process thread on user interaction
While handling resource intrinsic operations concurrently like sending 1000s of email on a button click we have to use a separate process for every user
If the operation is global to the application but needs to be done in background then use Backgroundworker class
1)Using BackgroundWorker class
2)Spanning new process thread on user interaction
While handling resource intrinsic operations concurrently like sending 1000s of email on a button click we have to use a separate process for every user
If the operation is global to the application but needs to be done in background then use Backgroundworker class
Error Handling
1) In MVC we can centralize the logic for handling and logging unhandled exceptions
by Decorating the controller classes with the [HandleError] attribute
Using the above class level attribute we can handle exceptions of specific type with separate customized views. There are other Action Filter attributes also [Authorize],[OutputCache]
Pls look into below link for details
http://www.pnpguidance.net/post/ASPNETMVCFrameworkPreview4HandleErrorAuthorizeOutputCacheActionFilterAttributes.aspx
by Decorating the controller classes with the [HandleError] attribute
Using the above class level attribute we can handle exceptions of specific type with separate customized views. There are other Action Filter attributes also [Authorize],[OutputCache]
Pls look into below link for details
http://www.pnpguidance.net/post/ASPNETMVCFrameworkPreview4HandleErrorAuthorizeOutputCacheActionFilterAttributes.aspx
Developing Web Application to be optimized for Search Engines
The key features responsible for optimizing our web application for Search Engines. Listing out one by one
1)HTML rendered by the web application
set the Render Outer table property to false on all Form View controls
1)HTML rendered by the web application
set the Render Outer table property to false on all Form View controls
Subscribe to:
Posts (Atom)