Using CSS to Style a RadioButtonList Control in ASP.NET

August 13, 2015 2 comments

Hi,
I wanted to give styling to Radio list box.
Also wanted to highlight the radio span after selection.
Sharing the code for your reference:

CSS code:
.radioboxlist radioboxlistStyle
{
font-size:x-large;
padding-right: 20px;
}
.radioboxlist label {
color: #3E3928;
background-color:#E8E5D4;
padding-left: 6px;
padding-right: 16px;
padding-top: 2px;
padding-bottom: 2px;
border: 1px solid #AAAAAA;
white-space: nowrap;
clear: left;
margin-right: 10px;
margin-left: 10px;
}
.radioboxlist label:hover
{
color: #CC3300;
background: #D1CFC2;
}
input:checked + label {
color: #CC3300;
background: #D1CFC2;
}

In asp.net Server code:

<asp:RadioButtonList ID="RadioButtonListGarment" runat="server" CssClass="radioboxlist">

Categories: ASP.net C#, tricks

SQL SERVER – How To Delete Duplicate Records – Based on Rows

August 11, 2015 Leave a comment

Heree is handy code I got from sqlauthority.com, for deleting the duplicate records from table.
DELETE
FROM MyTable
WHERE ID NOT IN
(
SELECT MAX(ID)
FROM MyTable
GROUP BY DuplicateColumn1, DuplicateColumn2, DuplicateColumn3)

Where DuplicateColumn1,DuplicateColumn2 etc are the columns on which you are checking for duplicate constraints.

Categories: MS Sql, tricks

Cast One List to another List ASP.NET C#

June 10, 2015 Leave a comment

If We need to cast List X to List Y, We can use following syntax:

List listOfY = listOfX.Cast().ToList()

Cheap and efficient Router

January 6, 2015 Leave a comment
Categories: General

Birds Name in English and Marathi

December 22, 2014 2 comments

These are the name list of Birds Name in English and Marathi:

Feel free to add your collection.

Ghar –                                 Black Kite – black_kite

 

 

 

Gidhad(or Gidad)                Vulture                            gidhad

 

 

Garud                                          Eagle                               Eagle

 

 

khandya bird                               Kingfisher           Kingfisher

 

Sutar                                              Woodpecker         woodpecker

 

 

salunki bird                                 common myna (Acridotheres tristis)   also sometimes known as “Indian myna”         salunki

Save Money Online: Playing It My Way : My Autobiography (English) – Sachin Tendulkar

November 7, 2014 3 comments

Hi Guys,

I am planning to buy Sachin Tendulkar’s “Playing It My Way : My Autobiography”.
Sharing small tip which will definetely save some amount.

Sachin Tendulkar

So, If you are planning to buy online go to following link of amazon:

www.amazon.in
At amazon, it will cost you Rs: 584/-

If you check price at flipkart you will found it costlier:


At Flipkart, it will cost you Rs: 670/-

Regards,

Categories: General, Save Money Online

Nobel peace prize winner 2014 – Kailash Satyarthi

October 13, 2014 2 comments

Do you know Who is Kailash Satyarthi?
I didn’t heard Kailash Satyarthi name previously, until I got news that Kailash Satyarthi won Noble Peace price 2014.
I felt very proud as an Indian.After searching about him, I found some information which was amazing so I would like to share it.

Kailash Satyarthi

Kailash Satyarthi


Kailash Satyarthi founded the Bachpan Bachao Andolan (lit. Save the Childhood Movement) in 1980 and has acted to protect the rights of more than 83,000 children from 144 countries.
Kailash Satyarthi was born on 11 January 1954 in the Vidisha district of Madhya Pradesh.
Kailash Satyarthi has degree in electrical engineering and was lecturer in Bhopal for few years.
In 1980, he gave up his career as a teacher and became secretary general for the Bonded Labor Liberation Front; he also founded the Bachpan Bachao Andolan (Save the Childhood Mission) that year.

Categories: General Tags: