开发者

How to achieve like in asp.net that button is aware which user I want to edit or delete from HTML table

开发者 https://www.devze.com 2023-03-08 11:31 出处:网络
I have in HTML table users data, one row for 开发者_开发技巧every user (username, password, name, last_name, I have id from sql table but I don\'t show id). I need to add for every row two buttons ( e

I have in HTML table users data, one row for 开发者_开发技巧every user (username, password, name, last_name, I have id from sql table but I don't show id). I need to add for every row two buttons ( edit and delete). How to achieve like in asp.net that button is aware which user I want to edit or delete ? If something help I already have array of users in JavaScript ( Dojo for declaring object user ). Can anybody give me idea ?


Give an ID for every row like < td>< a id="65" href="">Delete < /a> < /td> and get that id ( with JS, get the value of that) to process the form

0

精彩评论

暂无评论...
验证码 换一张
取 消