By default, <p> </p> will add line breaks before and after the enclosed text (so it creates a paragraph). <span> does not do this, that is why it is called inline. When we are using normal text at that time we want <p> tag.
When we are using normal text with some effects at that time we want <span> tag. An important difference is that <div >, <p> are block elements and <span> is inline, meaning that <p>Hi</p><p>There</p> would appear on different lines when <span>Hi</span><span>There</span>winds up side by side. Continue reading →
While reading about “UseSubmitBehavior in an asp.net button”, I came to know that UseSubmitBehavior property to specify whether a Button control uses the client browser’s submit mechanism or the ASP.NET postback mechanism. By default the value of this property is true, causing the Button control to use the browser’s submit mechanism. If you specify false, the ASP.NET page framework adds client-side script to the page to post the form to the server. (causes the button to use the ASP.NET postback mechanism, also to identify at server side which button was clicked in the browser.). Continue reading →