Author: kamalia718 | Posted on: 3/5/2009 5:33:18 AM | Views : 264

hi to all i ma facing a problem to show and hid dive by checked and unchecked CheckBox in repeater
i am write this code at itemdatabound
CType(e.Item.FindControl("chkParentCategory"), CheckBox).Attributes.Add("onclick", "showHideDiv(" & GetDivID(CategoryID) & ");")
But when i Click on check box it gives me divID as arraylist like data but ihave to get only id like Div_1,Dive_2. I am geting these but in arraylist  like data.
on othere way when i call this function by <a onclick="showHideDiv('<%#GetDivID(Eval("CategoryID"))%>');">Vierw</a> it workes fine
javascript  code is as

<script language="javascript" type="text/javascript">
    function showHideDiv(id)
    {
    debugger;
        var divstyle = new String();
Go to the complete details ...