Passing values from Datagrid button column to Javascript ?? How??

Posted on 2005-04-28
Last Modified: 2009-07-29

I have a Datagrid on a webform and i have just implemented the asp:ButtonColumn. My datagrid populates some records from my SQL dbase which i would like to give the user the opportunity to alter them.


Is it possible using a button from the asp:ButtonColumn to execute a Javascript. I want to pass to the Javascript also the ID of the row i want to edit.

I want to execute the Javascript because i will open a certain popup window in which i will populate the data which the user would like to change.


Thank you.
Question by:Globemaster
    1 Comment
    LVL 1

    Accepted Solution


    it is possible there is a lot of ways in doing it.

    But are .. U using..
    if so.. the link is as follows:


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now