Client side: var CheckBoxIDs = new Array( 'ctl00_MainContent_GridViewList_ctl02_CheckBoxItem', 'ctl00_MainContent_GridViewList_ctl03_CheckBoxItem', 'ctl00_MainContent_GridViewList_ctl04_CheckBoxItem', 'ctl00_MainContent_GridViewList_ctl05_CheckBoxItem', 'ctl00_MainContent_GridViewList_ctl06_CheckBoxItem'); Server side: ClientScript.RegisterArrayDeclaration("CheckBoxIDs ", checkboxID);
It works fine. However, I need to add elements into the array dynamically. Instead of using ClientScript, ScriptManageer should be used this time.
ScriptManager RegisterArrayDeclaration
No comments:
Post a Comment