Monday, July 30, 2012

Purchased New Phone : Samsung Omnia W ( Windows Phone :- Mango)

Hi All,
    I purchased my first ever smartphone and that too windows phone .. I purchased it in the month of January but I am posting the pictures of my phone now...
  The model of my Phone is : Samsung Omnia W -  i8310
  Price ( I purchsed for ) : INR 18000





and here are the specs of Phone.. http://www.gsmarena.com/samsung_omnia_w_i8350-4200.php


Thanks,
Nitin Sharma

Create Circle in web page by CSS

Hi All,
     This post is regarding CSS i.e how to show a CIRCLE in a web page via css .

Firstly make a .css file and add the following code into into it :


.circle {
  border-radius: 50%;
  background-color:Black;
  width: 200px;
  height: 200px;
}


Now place a
on your page and add a class property into it as :


<div class="circle">

   Circle


div>


Now run the page and you will see the circle like below :



Thanks,
Nitin Sharma

Wednesday, July 18, 2012

Stills from Inside the Flight

These are few of the many stills that I have captured while on board from New Delhi to Aurangabad flight .












The journey was really awesome..!!

Thanks,
Nitin Sharma

Saturday, February 18, 2012

Fetch / Get Current Date from SQL Server in a specific format

Hi All,
      Working on Saturday is really a pain...Phew...!!!!...

I came across a requirement where you have to get a Current Date from Sql Server in the following format :

DD - MM - YYYY (note the hyphen in between)


So, here is the script with the Sql Server Replace function...:



Select Replace(Convert(varchar(11),Getdate(),106),' ',' - ') as 'Today'





And the Result is :





Thanks,
Nitin Sharma

Happy Coding....

Friday, February 17, 2012

Add Twitter and Facebook like Social Sites link to ASP.NET WebSite

Hi All,
      This is my first post of the year 2012.
I came across one requirement in my recent project in which where i do have to add two share buttons for two most popular social networking sites Facebook and Twitter.

I found this HTML code to be placed in any asp.net site . Below is the code:

<a href="http://twitter.com/home?status=" target="_blank" onclick="window.open(this.href, this.target,'height=500px,width=400px'); return false">

  <img src="Images/twitter.png" alt="Share on Twitter" />

a>

<a href="http://www.facebook.com/connect/prompt_feed.php?&message=" target="_blank" onclick="window.open(this.href, this.target,'height=500px,width=400px'); return false">
  
<img src="Images/facebook.png" alt="Share on Twitter" />

a>




Thats it...and  you are ready with the share button.

Below is the snapshot of  the rendered page after click on facebook and twitter image link.

Clicking on Twitter image opens the below page as a pop up:


Clicking on Facebook image opens the below page as a pop up:





This is for sharing your own  on these two networking sites but not shareing the link or any other outside matter.


Thanks,
Nitin Sharma

Happy Coding..!!!