Hi
I am using Gridview . Names are dynamic. I want the values appearing to be as LinkButton. When user clicks Modal Popup should open. It should be without PostBack.
Image attached
Thanks
Hi
I am using Gridview . Names are dynamic. I want the values appearing to be as LinkButton. When user clicks Modal Popup should open. It should be without PostBack.
Image attached
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Muhammad Imran AnsariPosted May 9, 2023, 7:41 AM
You can achieve this by handling the RowDataBound event of the GridView control and converting the text of the cell to a LinkButton control. Then, you can add a JavaScript function to the OnClick attribute of the LinkButton to open the modal popup without a postback.
Here's an example code: