handle button click event inside gridview -


I am writing the asp.net project in c #.

The page contains gridview, it is filled from the beginning button, text box and dropdown lists from the database are in the form of a picture picture in the gridview.

gridview

I would like to handle buttons (сообщить) Click the event so that I know that the gridwave row has been clicked to get the value of the text box from that row to update the selected value of the dropdownist and the database.

Does anyone know this? Thanks!

My first thought is that if you go to & lt; Asp: TemplateField & gt; Tags within your gridview page, then you can register an event in your button code like: & lt; Asp: button runat = "server" OnClick = "MyOnClickEvent" /> . If you are adding them programmatically, you should be able to use the onClientClick property of the button.

Try reading it can tell you in the right direction.


Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -