Thursday, March 20, 2008

Return False.. :)

I had written a j.s for onclick event and even though i had clicked it.

This was the code that i used to call the j.s

chk.Attributes.Add("onclick", "javascript:Temp('" & CType(dgi.FindControl("ddMapToColumn"), DropDownList).ClientID & "'); return false")

But, to my surprise, even after checking the checkbox, the tick mark on the check box wasn't coming.

The reason for which is the "return false;" statement.

This was something that i learned after googling

0 comments: