You must Sign In to post a response.

How to use dynamic button click event on dynamically created gridview row command?


Are you looking for information on dynamic template columns? Want to know how to use dynamic button click event on dynamically created grid view row command?? Read this thread to learn more about grid view row command for dynamic event firing with examples.

Hi All,

I have a gridview which is created dynamic template columns.
I need to created a popup with a button control on mouse over of textbox on gridview row command.
I used a third party control obout for a popup dynamically with textbox and button. I have tried a code for button click event . But its not firing.


Thanks in advance.


Comments

Author: Mahesh Durgam22 Aug 2013 Member Level: Gold   Points : 2

Hi,

Why to go with third party controls, you can use Ajax Modal Popup controls to pop-up with the controls which you need or you can use javascript or jquery to do that.

Check the below links for creating modal popup with Ajax

http://www.devcurry.com/2009/02/how-to-create-aspnet-ajax-modalpopup.html

using javascript: to create pop-up
-------------------------------
http://www.electrictoolbox.com/write-content-dynamic-javascript-popup/

using JQuery : to create pop-up
-------------------------------
http://www.codeproject.com/Articles/488312/jQuery-Modal-Dialog-with-Dynamic-Content