简体   繁体   中英

button click is not working

i am having a button on a modal pop up div. But i am not getting the click event of the button. I am calling this button inside a gridview. Whenever i call it outside the gridview it works perfect, but whenver i call it inside that gridview, it does not work. The popup window appears and disappears as desired buyt the click event of a button on it is not working. following is my code for calling javascript function from the javascript class.

lbtnReload.Attributes.Add("onclick", "SingleUpload('" + e.Row.Cells[1].Text + "')");

试试这个....提到javascript

lbtnReload.Attributes.Add("onclick", "javascript:SingleUpload('" + e.Row.Cells[1].Text + "')");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM