Friday, October 16, 2009

reCAPTCHA for ASP.NET

I was looking for this reCAPTCHA recently and this is what I found on my way. Hope this will help you in someway. To get an idea about reCAPTCHA watch the following video



and the following link will explain you how to implement it in your ASP.net web site.

reCAPTCHA for ASP.NET

Monday, July 6, 2009

Mihidum Dumaraye ( Kolapata helunu etha nimnaye) - Kasun Kalhara

You can find this song on this link
http://www.elakiri.com/forum/showpost.php?p=3006516&postcount=18

I was trying to find this and I finally found it.

Wednesday, June 17, 2009

You and Me..

Cool breeze wraps around…….
Slight showers of tiny drops
Eager to kiss the rosy petals……
Green smiles at the drizzle…….
And the golden beams illuminated…
Craft a gorgeous little world
Of hopes and dreams…..
It’s You and Me………..
Only both of us play the adoring role
In our devoted
Story of Love…………

By Thilini©

Dream

Red and blue green and yellow,
Gorgeous picture was painted,
In the vast sky of thoughts,
Hills and Dews, Wings and hopes,
Added extra brightness,
To the beautiful scenery of thoughts.
Buds and flowers, Mist and breeze,
Brought cool fresh intimacy.
Fairy queen was lost in,
One big dream.
Fresh and sweet, pretty and cool,
Little world of dreams,
Could never call Her out.
She was enjoying,
The beautiful dream,
For years……………….
And years………………
Smiles and laughter;
The bosom friends,
Who shared Her joys,
Never let the Fairy Queen,
See no tears or sorrows.
She was totally lost in
The dream fairy world,
Of which She couldn’t
See the harsh reality.
But, revealing the truth of Life,
Gloomy shadows started,
Palling on the sweet little painting.
Red, blue colors were fading,
Dark shadows were capturing,
The gorgeous dream of the fairy queen,
Bright shiny dream was leaving,
Wet little drops of tears,
Started shining at the edge
Of Her little eye lids.
But still, She is struggling,
To survive in Her cute pretty dream,
Of which She never wants to come out.
No matter what sort of a dream it is,
Be with innocent hearts forever,
Whose only happiness is a dream.


By THILINI©

Tuesday, June 16, 2009

Not for you

Golden Beams of ruthless radiance
Calling out a drop less drought
No damp neither live adjoining
Magical spell of kismet
Looking upon the rainbow lights
It was the same ruthless radiance
But comes up with rainbow shadows
That is for your name……………
Tiny tear droplets Shower cool smiles
That is for your name……………
Each second and each minute
Live and full to the utmost ecstasy
That is for your name……………
Sky catching castles of dreams
And floating clouds to put your name on it
The magical world of ecstasy
Live and true to the fullest
That is coz of you and only you
But……………………………
At the end of the day
Waken up but shattered dreams
Realization but broken promises
Soothing comfort but endless pain
Thousand words but trapped up voice
Tiny droplets but awful warmth
Sleepless dream but a dreadful nightmare

By Thilini©

Thursday, March 26, 2009

Exit a T-SQL Cursor When Condition is met

Have you ever wanted to exit from a cursor when a condition is met? I wanted to do it. So this is how I did it.

DECLARE @Field1 AS INT
DECLARE @Field2 AS INT

DECLARE CursorName CURSOR READ_ONLY
FOR

SELECT
Field1,
Field2
FROM TableName

OPEN CursorName

FETCH NEXT FROM CursorName
INTO @Field1, @Field2

WHILE @@FETCH_STATUS = 0
BEGIN

IF @Field1 = 1
BEGIN
GOTO ENDCURSOR
END

FETCH NEXT FROM CursorName
INTO @Field1, @Field2

END

ENDCURSOR:
CLOSE CursorName
DEALLOCATE CursorName

I have set my fonts to bold where you want to notice.

So that's all I hope you will get something out of it and it is true that this is not a big deal. :)

Thursday, February 5, 2009

Populate Modal popup data which is bind to a link button - ASP.net

I wanted to do a POC to my client to show modal popup functionality. So I did a simple page with one Button and a TextBox. That Button is responsible to popup the modal window. On that ModalPopup I implemented a search mechanism. I used Girdview control to show the search result.

I wanted to populate the id value of that search result which was binded to a link button. This gridview and the text box and button was in a AJAX update panel control. I did this because I wanted to have the smothness of the UI.

Now I met a new problem. Because I wanted to get that value out of that LinkButton control and show it in a TextBox control which was out of the ModalPopup.

So what I did was, I just assign that LinkButton's text property to a HiddenField and I used a JavaScript function to populate that HiddenField value the TextBox.

As you all know we need a Panel control to show our ModalPopup. This is gonna be a <div> on the HTML. So I used the onblur event to call my JavaScript function.

So my problem is solved. :D

I think this will help you all one day.