How to call a javascript function in content place holder when the content place holder refreshes?
-
I have a content place holder in which there is a print button which creates a notepad file on the click of it for the records which are selected (checkboxes) in the grid view. The print button is placed in a
tag and the tag is hidden by default on the load of content place holder. A javascript code is called on the onclick event of the checkbox in the grid which makes the
for print button visible (if any of the checkbox is checked) and hide it when all the checkboxes are unchecked. The problem I am facing is that when I click on the print button then some events occurs and the content place holder refreshes and hence the
tag for the print button gets hidden although the checkboxes already checked remains checked only. Now what i have done is: I have made the
tag visible true always and looking to write a javascript code for making the
tag invisible while the grid is not filled. But I am wondering that where should i call this particular javasscript code? If someone could help me out? Thanks Varun Sareen
-
I have a content place holder in which there is a print button which creates a notepad file on the click of it for the records which are selected (checkboxes) in the grid view. The print button is placed in a
tag and the tag is hidden by default on the load of content place holder. A javascript code is called on the onclick event of the checkbox in the grid which makes the
for print button visible (if any of the checkbox is checked) and hide it when all the checkboxes are unchecked. The problem I am facing is that when I click on the print button then some events occurs and the content place holder refreshes and hence the
tag for the print button gets hidden although the checkboxes already checked remains checked only. Now what i have done is: I have made the
tag visible true always and looking to write a javascript code for making the
tag invisible while the grid is not filled. But I am wondering that where should i call this particular javasscript code? If someone could help me out? Thanks Varun Sareen