Wednesday 17 August 2011

JIT Compiler

How many type of JIT in ASP >net

· Pre - JIT: - In Pre-JIT compilation, complete source code are converted into native code in a single cycle. This is done at the time of application deployment.
.
· Econo - JIT: - In Econo-JIT compilation, compiler compiles only those method which are called at run time. After execution of this method compiled method are removed from memory.
.
· Normal - JIT: - In Normal-JIT compilation, compiler compiles only those method which are called at run time. After executing this method, compiled method are stored in memory cache. Now further calling to compiled method will execute method from memory cached.


Thanks 
Rohit Srivastav

Tuesday 16 August 2011

Unconditional Love

Unconditional Love

A story is told about a soldier who was finally coming home after having fought in Vietnam. He called his parents from San Francisco.

"Mom and Dad, I'm coming home, but I've a favor to ask. I have a friend I'd like to bring home with me."

"Sure," they replied, "we'd love to meet him."

"There's something you should know the son continued, "he was hurt pretty badly in the fighting. He stepped on a land mind and lost an arm and a leg. He has nowhere else to go, and I want him to come live with us."

"I'm sorry to hear that, son. Maybe we can help him find somewhere to live."

"No, Mom and Dad, I want him to live with us."

"Son," said the father, "you don't know what you're asking. Someone with such a handicap would be a terrible burden on us. We have our own lives to live, and we can't let something like this interfere with our lives. I think you should just come home and forget about this guy. He'll find a way to live on his own."

At that point, the son hung up the phone. The parents heard nothing more from him. A few days later, however, they received a call from the San Francisco police. Their son had died after falling from a building, they were told. The police believed it was suicide. The grief-stricken parents flew to San Francisco and were taken to the city morgue to identify the body of their son. They recognized him, but to their horror they also discovered something they didn't know, their son had only one arm and one leg.

The parents in this story are like many of us. We find it easy to love those who are good-looking or fun to have around, but we don't like people who inconvenience us or make us feel uncomfortable. We would rather stay away from people who aren't as healthy, beautiful, or smart as we are. Thankfully, there's someone who won't treat us that way. Someone who loves us with an unconditional love that welcomes us into the forever family, regardless of how messed up we are.
i like this story so much
--------------------------
मुझे मुहब्बत के कायदे भी बताना नहीं आता
आखो में अश्को को छुपाना नहीं आता
खुद ही खुद को समझाना नहीं आता .
मुहब्बत का समन्दर भी तो इतना गहरा है
मै हर रोज़ कश्ती ले कर चला जाता हूँ
...मगर मुझे डूबना नहीं आता
मुझे मुहब्बत के कायदे भी बताना नहीं आता
खुद ही खुद को समझाना नहीं आता
---------------------------------------------------------
sweat story ....

Pencil - I am sorry.

Eraser - For what? you didn't do anything wrong.

Pencil - I am sorry because you get hurt because of me whenever i made a

mistake you are always there to erase it,

but as u make my mistakes vanish you lose a part of yourself, you get smaller and smaller . . .

Eraser - That's true but i don't mind you . . . see i was made to do this, i am

here to help you whenever you make a mistake and i know ''you will replace me

1 day, but i am happy because i hate to see you sad.''


kaas aisa hamse kisi ne aisa kaha hota
------------------------------------------------
Kahin wo mile to usay kehna!!!!
K Lot aao!!!!,

Lot aao k !!!
koi shiddat se,
Barri muddat se,
Barri muhabat se,
tumhara intizar kar raha hai,

Lot aao k....!!
kisi ki baatain,
Kisi ki yaadain,
kisi ki raatain
tum bin bohat adhuri hain....!!,

Lot aao k...!!
koi tum bin pal pal,
har pal,
har aaj ,
or har kal tanha hai,

Loat aao...!! k tum bin koi adhura hai................................!!

 --------------------------------------------------------------------------------
unhe nahi pata ki mai  unke saath kyon hu  
---------------------------------------------


BOHAT UDAAS HAI KOI TERE JAANE SE
HOSAKE TO LAUT AANA KISI BAHANE SE
TUU LAKH KHAFA SAHI MAGAR EIK BAAR TOO DEKH
KOI “TOOT” GAYA HAI TERE CHALE JANE SE

Thursday 11 August 2011

Post Back in ASP .Net

There are some definition of postback.
Post back is the process the sending data get back to server
for processing.
Is post back property checks whether page is being loaded for
first time.
if it is False :means first time loaded.
if it is True: means round trip to server.
=============
Postback: Postback is a event which fire when page data goes to server.
IsPostBack: Ispostback is page property of bool type and it become true when page come again to browser.
===
PostBack: Postback is the event which sends the form data
to the server. The server processes the data & sends it
back to the browser. The page goes through its full life
cycle & is rendered on the browser. It can be triggered by
using the server controls.And the IsPostBack property of
the page object may be used to check whether the page
request is a postback or not. IsPostBack property is of the
type Boolean.
=======
Today we are going to introduce you to the concept of PostBack in ASP.NET.

PostBack is the name given to the process of submitting an ASP.NET page to the server for processing . PostBack is done if certain credentials of the page are to be checked against a database (such as verification of username and password). This is something that a client machine is not able to accomplish and thus these details have to be ‘posted back’ to the server.

A simple example to illustrate the usage of PostBack is a login page. After the user has typed his username and password, he clicks on the ‘Login’ button. Upon the click, the page is sent to the server to check against the database/XML file to check if the user with supplied details is an authenticated user.

Then there arise certain events ( Listbox Index Changed,RadioButton Checked etc..) in an ASP.NET page upon which a PostBack might be needed. Consider the case in which you have 2 ComboBoxes. Let us say the first ComboBox asks you for the Country you reside in and the second one asks you for the State/Province in that country. Based upon the Country you select, the list of States/Provinces must be shown. Thus, in order to fill the values in the second ComboBox, the selection in the first ComboBox must be known to the server. Thus, as and when an item is selected in the first ComboBox, a PostBack must be done and the appropriate list of items must be filled in the second ComboBox.

To handle these situations, you need to enable the ‘Auto PostBack’ property for those controls whose events are going to trigger some kind of server processing (the case of the first ComboBox in the previous example).

Usage of IsPostBack in ASP.NWT-

IsPostBack is a Boolean property of a page when is set (=true) when a page is first loaded. Thus, the first time that the page loads the IsPostBack flag is false and for subsequent PostBacks, it is true. An important point to be noted here is that each time a PostBack occurs, the entire page including the Page_Load is ‘posted back‘ and executed.

Thus a very common programming practice is that whenever some part of the code is to be executed just the first time a page loads, it is checked against the IsPostBack flag.

If you have not understood the concept clearly, do not worry. Programming examples in subsequent posts will help making this concept clear.
=====
Page.IsPostBack is for forms that are runat=”server”. It is mostly used for same page validation, same page operations, … anything really same page!

It is also used to help keep bandwidth and rendering times down.

The main reason why people use IsPostBack is to stop taping the databases everytime a request is made. If you are on your default page and just do work via that page, you can use the if Not page.ispostback then statements to populate information. When pages are posted back to the sever and then rendered back to the client, they don’t have the need to repopulate the information since it was just populated. It is all kept in the viewstate and read back without using precious resources on the server.

It’s a very good and handy tool to know, and very easy to know as well! Any information that is not variable dependant should be only posted when the user first shows the page.

For another example, let’s say you are using menus that pull information from the database, articles that are previewed on a side bar for users with a link to the full article, and a search function that posts results that can be ordered by date, name, etc. Now, with the IsPostBack functionality, you can add the statement to all information that does not change when a request is made on the same page. You can add the “If Not Page.IsPostBack Then” for the menus and articles since the information does not change in anyway when a user clicked to have the search results ordered by name! This means that you do not have to tap the database three times, but only once! The information about the menus and articles are held in the viewstate so you don’t have to repopulate them.

Then for the “If Page.IsPostBack Then” statement, you can use for registration purposes for your site, post comments, etc. all by the Page.IsPostBack function. No code in the “If Page.IsPostBack Then” statement is fired when the page is requested by the client for the first time; And vice-versa, the “If Not Page.IsPostBack Then” function is only fired when the page is called for the first time, then uses viewstate to fill in the areas it is required to for every postback after that.

Hope this helps..

********************************************************************

Page.IsPostBack Is used to check if the user posted back to the page. Meaning they clicked a button or changed a field in the form that causes it to post back to itself.

Putting Not usually is used to check the initial load of the page.

You only need to fill databound fields on the initial load, so you put all your databinding code in the Not page.IsPostBack. The values are saved in the viewstate and can only be read by the form if it gets posted back to itself.

So, if it is a postback dont do databinding if its not a postback do databinding.


Welcome

this is the welcome page