..:: Chalama's Random Musings ::.. Monday, February 06, 2012
  Search
Register  Login
Author: chalama Challa Created: 5/14/2009 9:53 PM
Happenings in my life

Difference between Hashtable and a Dictionary?
By chalama Challa on 3/7/2011 11:52 PM

Dictionary is a generic class Dictionary<TKey,TValue>, where as HashTable needs casting of the objects.

var Employees=new Dictionary<string,Employee>();
Employee emp=Employees[“JohnDoe”];

var Employees=new HashTable();
Employee emp=Employees[“JohnDoe”] as Employee;

Dictionary cannot be used with webservices as no webservices support generics.

Dictionary is implementation of the hashtable
Dictionary is TypeSafe, it can support multiple readers as long as the collection is not modified.

powered by metaPost
Comments (0)

View State
By chalama Challa on 7/19/2010 11:20 PM

Here are my notes about view state:

  • View state for a page or control  is the cumulative storage of values.
  • Primary storage mechanism for HTML and webserver controls
    • Attribute/Value pairs are stored like a dictionary
  • Can read this class any time during the processing of the page except when the control is being rendered.
  • you can add or remove from the dictionary like any other control
  • View state is a way to store and retrieve controls from the statebag class
  • State of control is maintained when it is rendered back to the page
  • An instance of statebag class is created when you set the view state to true
  • Control.ViewState is the property used to read and write to the viewstate.

Adioz tonight..

powered by metaPost
Comments (0)

ASP.Net Page Lifecycle
By chalama Challa on 7/14/2010 9:34 PM

I wanted to refresh my memory about ASP.Net Page lifecycle management….trying to make some notes for myself

Pre Init – dynamically set Master Page or themes, Profile settings, create or recreate dynamic controls – like in dotnetnuke

Init – All the controls in the page have been initialized

InitComplete – After all the initialization

Preload – Perform any processing on a page or control before load
                  Page preload event and then the controls are fired
                 Viewstate and postback data gets initialized from the request object

PageLoad – After pageload each of the onload events for the controls gets fired

LoadComplete – all controls have been loaded by this time and validations done by this event, any thing depending on all the controls to be loaded

PreRender – Page object calls every databind controls, occurs for each control on the page, page Prerender event gets called after the prerender event of all the controls have been called

SaveStateComplete – View state for all the controls on the page is saved

Render method on every single control is called, Render method for the page

Courtesy of video from JoeStagner - Page Lifecycle Events

powered by metaPost
Comments (0)

What's is Greece's financial crisis?
By chalama Challa on 5/2/2010 6:22 PM

What is happening with Greece with respect to the financial crisis.

 

 

Comments (0)

Why Google Sucks?
By chalama Challa on 3/3/2010 10:54 PM

Somebody has Microsoft office, i will copy it….

Somebody has email, i will copy it…

Somebody has facebook, i will copy it…

Somebody has Twitter, i will copy it…

Somebody has SharePoint, i will copy it…

And i will call them – Googledocs,Gmail,Buzz and Google Wave….

I am not being hypocritical, i do like using Google because nobody can beat it in search as of now. But when Google tries to build products just to intimidate the big players it is really irritating.

Consider Gmail, it took 5 years to get it out from beta and given that Gmail is out of the beta phase,Gmail is still not free of outages. Google Doc’s still in Beta, i don’t know when a feature was last added to it.

Consider Google’s latest venture Google Buzz..it sucks to the core because it builds the network from the emails and chats that ever occurred from your email, which is a straight flop.

Well all i wanted to express was Google gets the idea off from a highly successful product like facebook or twitter and tries to emulate it. Not only does the starting point suck, it also tries to throw the product in the face of the huge user base it has from the search and mail.

Adios for the night..

powered by metaPost
Comments (0)

Kobe Shoe commercials
By chalama Challa on 1/30/2010 2:28 PM

I love the videos of lebron and kobe, NIKE does a great job of showing those puppets.

The first video i love is ..

 

In the above video, i love the way kobe raps about his show and finally when it catches fire, he says call the police, call the watchman and lineman..hillarious..:)

More to follow soon..adioz..

Comments (0)

Sure to fall in love with alicia's singing..
By chalama Challa on 1/30/2010 2:26 PM

Well Alicia Key's normally sings songs related to heartbreak and love, this songs is dedicated to newyork. you can find in this song how Jayz wants himself to be called Frank Sinatra.

Comments (0)

Iron Man 2 Trailer
By chalama Challa on 1/30/2010 2:24 PM

Iron Man 2 comming out in 2010..

Comments (5)

Please donate generously to the Haitian Victims
By chalama Challa on 1/14/2010 1:10 AM


As you all know well from the TV and the internet, the disastrous earthquake of 7.0 scale which struck haiti left the city in lurch.

Please donate generously to the Haitian Earthquake victims, please donate the maximum you can. 
Not only are the pictures and videos heart breaking, there are  about tens and thousands feared dead.
Haiti is one of the poorest coutries which doesnot have any capacity to handle this magnitude of natural disaster.
People of Haiti are wandering helplessly on the roads with deadbodies lying on the sides without any basic neccesities in the bounds.
do the max you can to help the victims and save lives, seriously It requires your help to get out this calamity.

Some heart-wrenching facts:
  • Ranked 149 out of 182 countries in the Human Development Index, 
    which makes it the poorest countries in America's. 
  • One of the world's poorest and least developed 
  • 80% of the population lives in poverty 
  • 75% people live on a pay of 2$/day 
  • one-third of the island population has been affected by the earth quake.
     
 

 






 

you choose any of the following links to donate:

Red Cross: Text “HAITI” to “90999” to give $10 (your cell phone bill will be charged); 
donate online; or call 800-RED-CROSS

Haitian Musician Wyclef Jean’s Yele Haiti Foundation: Text “YELE” to 501501 to donate $5

Doctors Without Borders: Donate online; or call (212) 763-5779
Mercy Corps: Donate online; call (888) 256-1900; complete form 
and send check to Mercy Corps, Dept. W, PO Box 2669, Portland, OR 97208-2669

Direct International Relief: Donate online on the org’s website or via Google Checkout

courtesy: blog
 

 

 

Comments (0)

Stock's Information
By chalama Challa on 10/21/2009 11:50 PM
Research on stocks that i am going to follow and trade on..
Comments (1) More...

Copyright 2007 by Chalama.net   Terms Of Use  Privacy Statement