How To Get Clicked Row Id In Jquery

Hope you like this tutorial of how to get selected checkboxes id on click using jQuery. Normally I can us buttonid to get row index. NET Developer / Get gridview button click with jquery Get gridview button click with jquery [Answered] RSS 5 replies. Tabular form: select elements with jQuery One of the most frequent issues i see on the Apex forums is having to deal with jQuery selectors. Bootstrap make table row a link using the following jQuery-. jQuery Message Queuing makes this easy, just set up a queue with a callback and delay, and add items onto the queue as-needed. I tried following way and getting both rows value for that column appending each other. NET Gridview get changed at the time of rendering. Later, I have used jQuery. jQuery Validation Plugin. Callback called when a column menu is opening. The JavaScript button effects are created using images. How do I select an element by an ID that has characters used in CSS notation? Because jQuery uses CSS syntax for selecting elements, some characters are interpreted as CSS notation. the most common solution i got was to select a row (by making multi select true and selecting the checkbox) and then to find out the column. Get the id of the selected row. How to add, edit and delete rows of a HTML table with jQuery See in this article how to create functionalities of addition, edition and exclusion of registers in a HTML table. When the user moves the mouse over the image, the image is switched to the ‘active’ image. The first element among the object's matched elements which also matches this selector is located. a group of divs inside another div. jQuery Forum Move this topic Forum : Getting Started Using jQuery Using jQuery Plugins Using jQuery UI Developing jQuery Core Developing jQuery Plugins Developing jQuery UI QUnit and Testing About the jQuery Forum jQuery Conferences jQuery Mobile Developing jQuery Mobile. My table struct is like above. It works by default by looking at the id of each item in the format "setname_number", and it spits out a hash like "setname[]=number&setname[]=number". Second, I'll extract the values from each textbox and add the values to the GridView. Making GridView Row Selectable or Clickable using jQuery in ASP. By your third budget, you'll be a pro. Using Jquery UI sortable to sort table rows pankaj pal 3 March, 2014 Comments 45. This example makes use of the SQL CE 4. To get this data, access the underlying widget used to display the item and handle its events: Access to Underlying Widgets. net using C# and VB. To get the innerHTML of a div tag in jQuery, use the class with innerHTML. I wanttoupdate more than one cell in a particular column with new value in client side by clicking on it, edit and move the next one then click update button to save changes in database. Load more results from database with jQuery and Ajax. In the Markup Ribbon group, select Edit HTML source from the HTML drop-down button. Bootstrap is a popular framework library that provides a unified look-and-feel for web-applications. Enter email id to get articles in your inbox for. I have deleted the jQuery as the way this is done may change how the modal opens and closes. How to remove table row tr in jquery on button click. Through Editor's abilities to be extensively customised and Bootstrap integration for DataTables you can have a beautiful Bootstrap styled interface for your tables and Editor in virtually no time!. To automate it so that each input element gets a unique ID, you can append on the counter to the ID name and that will keep it unique. e fetch table value and store it in JSON array, which later passes it to the server-side. When I wanted to get the ID of clickable element using jQuery, I have found out that I don't remmember such a simple thing. To add a special style to table cells that are being hovered over, 6. To bind the click event to all existing and future elements, use the jQuery on() method. Jquery: How to disable Button, Div, Anchor tag. jQuery is a Javascript framework which can simplify coding Javascript for a website and removes a lot of cross browser compatibility issues. The simple steps to dynamically add and delete rows from table are as follows, Dynamically Add/Remove rows in HTML table using jQuery. Get every row data by using the. Define click event on delete class. Using jQuery: [code]jQuery("#select option:selected"). Peter’s Basilica, December…. net using C# and VB. Bootstrap make table row a link using the following jQuery-. i wanted to get data-id values for that i worte jquery function Jquery get and set css attribute of some part of html. click(function(){ //Get the id of this clicked item. The server should return the url for the uploaded file in fileURL field. How to get selected row values from gridview when checkbox selected in asp. Contribute your code and comments through Disqus. By default, the plugin calls jQuery's serializeArray method on the upload form to gather additional form data for all input fields (including hidden fields). When the ActionLink inside the WebGrid row is clicked, a jQuery function will be called inside which the data from the WebGrid row will be fetched and displayed using jQuery Alert Message Box. This time we'll see how to make bootstrap table row clickable and keep it highlighted until user clicks on another row. It's based on the existing CSS Selectors, and in addition, it has some own custom selectors. When i click on any row using onrowclick function in apex:pageBlockTable. Suppose the button html tag is as [code]<inpu. Just add a text field to your repeater to hold the row number. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice. Each id value must be used only once within a single web document. Introduction. I have shared tutorial Dynamically Add and Remove rows in a Table Using jquery, now I will add same functionality in angularjs and generate json data into angular modal. In this article I’m going to explain jQuery dynamically add and edit Table rows with jQuery UI dialog. append() method to append or add rows inside a HTML table. Before you can process the information, you need to create an HTML form that will send information to your ASP page. Using jQuery: [code]jQuery("#select option:selected"). Setting Up Event Responses on DOM Elements. [/code] jQuery By Using http://api. If we use a string as the. I'm trying to get the id of a table row here's what I've got: Basically, when I click a row, I need to pass that row's id to the showDialog function. net development platform, Aegis developers are using jQuery. Make all editable columns and the command column into templatefields 3. See the Pen jquery-practical-exercise-41 by w3resource (@w3resource) on CodePen. I have no row id and all my rows have the exact How to get row index - jQuery Forum. Click multiple checkboxes and get its ids in an array format. I'm using jQuery Datatable plugin for grid purposes. edit and delete records using php and mysql. All the rows are converted into tr element and values placed in different td. The Ajax call is very similar to the previous call you made, but the product ID is included on the URL line. The solution also highlights the selected element and then displays the cell’s value on the screen. How To Detect Which Element Was Clicked, Using jQuery By Slavko Pesic , Engineering Team Lead, October 9, 2012 Sometimes we would like to find out which particular element (or set of elements) has user clicked on. $$ to get the jquery DOM element A full list of functions for buttons. This checkbox toggles the checked state of the other checkboxes. Alternatively, play around by adding and deleting/removing the rows. How can I get all the data items of the selected rows when using the selectable column in the Kendo UI Grid? Solution. Once we have the object, we can get the properties and call the methods of the object. Net GridView Rows using jQuery length Property. NET / jQuery for the ASP. NET I have a page menu. Also make sure you that have added ClientIDMode=”Static” propery of dropdown to access in JavaScript with it’s unique name. However, as of version 1. Answer: Use the jQuery on() method. I am able to fetch the data for each row and save in the back end. Using the reference of the clicked LinkButton, the GridView Row is referenced and the RowIndex is determined. This time we'll see how to make bootstrap table row clickable and keep it highlighted until user clicks on another row. Hi I am creating a dynamic html table and adding some content to the rows and also aaded onclick event for each row so that when that row got clicked I will able to capture the row value. In the HTML source dialog, add the following code. To use the array form, your data must be sorted. حديد في دبي - دبي لدينا خام الجبس والمطحون المعالج عالي النقاوة والبياض جميع المقاسات اصحاب المزارع الموقع الخرج ل - 3785501. GridView exposes SelectedRow property which represents the currently selected row and SelectedIndex property which gives the rowindex of the currently selected Row. When I click on a row in the grid, I want to bind the details of the row to an input on the same page depending on the ID stored in the row. Provides universal solution to allow row selection using checkboxes and Select extension for a table using jQuery DataTables. eg like the way gmail or yahoo works as you click a given row. When user click that button, this onclick function called and append a row into that ID. If you would rather get the row number and column numbers in easy to understand format without having to mentally add 1 to get the correct row number and column number, then use the code in Example 2. Using jQuery: [code]jQuery("#select option:selected"). This blog will show you, how you can read all the values of HTML table control, using jQuery. Click on the "Reload current page" button of the web browser to refresh the page. When the ActionLink inside the WebGrid row is clicked, a jQuery function will be called inside which the data from the WebGrid row will be fetched and displayed using jQuery Alert Message Box. NET Repeater and show the details of a particular row on jQuery Dialog popup. Net Repeater control to display a list of data, by binding the control to various data source such as a database or an XML. If you don't want to use the Online available cdn file then you can manually add the jquery files to your solution. jQuery Bootgrid is very popular grid plugin and especially designed for bootstrap. You can use this function to Check all & Uncheck all elements. My table struct is like above. I followed your steps but it always clicked on the button from the first row. Learn how to do just about everything at eHow. Feb 8th, 11 (v1. I have seen a few examples relating to this aspect and have tried many but it seems that they mostly relate to the legacy table tools extension whereas I am making use of the Editor. Get Object by jQuery ID Selector (#id) Getting an object by id is utilized to search specified by the id attribute of an element. How to select a row in gridview The GridView control is used to display the values of a data source in a table. If you have a reference to an element, you can invoke the click method on it. On submitting the modal form, it calls jQuery AJAX code to execute queries using PHP. remove() method to remove or delete table rows as well as all everything inside it from the DOM dynamically with jQuery. Such technique is also known as click-to-edit or edit-in-place. NET MVC controller and display JSONResult on view. I've come across two great examples of jquery clone, but i can't get them working together; which is what i need. It's not easy to get key from value in Hashtable or HashMap, as compared to getting value from key because HashMap or Hashtable doesn't enforce one to one mapping between key and value inside Map in Java. so I have to get the value from the row with other method, all the tables has the same columnName and the tablesname are deferent, the the within the tables are simple strings, so I need to get a ramdon row for each table, I hope this helps, I have tried everything and anything works!!. Disclaimer: This site is started with intent to serve the ASP. there is a mismatch happening. Please note that this jQuery solution only removes the rows/columns from the UI, not from the actual database. jsGrid Lightweight Grid jQuery Plugin. I am able to select the row using javascript functionality but i am not able to get the selected row data to from vf page to controller/avascript to populate selected row data in alert box. The application can often be tough mention your love for gaming with you. Display jQuery Modal Dialog. Show site navigation. Step 2: We will define HTML table rows. Later inside the first loop, I’ll get the cells collection of each row. How do I select an element by an ID that has characters used in CSS notation? Because jQuery uses CSS syntax for selecting elements, some characters are interpreted as CSS notation. Using AJAX to Update Content. ajax() method. Net GridView Row and its RowIndex when clicked using JavaScript When the LinkButton in a GridView Row is clicked, the following JavaScript function is called. so I have to get the value from the row with other method, all the tables has the same columnName and the tablesname are deferent, the the within the tables are simple strings, so I need to get a ramdon row for each table, I hope this helps, I have tried everything and anything works!!. How do I select an element by an ID that has characters used in CSS notation? Because jQuery uses CSS syntax for selecting elements, some characters are interpreted as CSS notation. Both articles showed how to implement such functionality on the client-side, thereby removing the. data() ), but i have one columns having button to view row data, i get row data then get id and then pass this id to server to pull information related to this id and view in small popup window, I dont want to do this by clicking on row but want to do by clicking on button in one column, How to do that?. jQuery Forum Move this topic Forum : Getting Started Using jQuery Using jQuery Plugins Using jQuery UI Developing jQuery Core Developing jQuery Plugins Developing jQuery UI QUnit and Testing About the jQuery Forum jQuery Conferences jQuery Mobile Developing jQuery Mobile. New here? Start with our free trials. Using jquery. Output will be like this: Now we have designed our database and page. net using C# and VB. There may be times when you need to know the index of the element that is clicked from within a group of elements e. Start writing script for dynamic crud of row. There are several ways to get to work out if a checkbox is checked or not with jQuery, and here a couple of alternatives. how to get data- attributes in jquery. Youtube style show more data on click from the database using jQuery Ajax and PHP. data() ), but i have one columns having button to view row data, i get row data then get id and then pass this id to server to pull information related to this id and view in small popup window, I dont want to do this by clicking on row but want to do by clicking on button in one column, How to do that?. #4: How to get all the table row cell values using jquery. With the JTable class you can display tables of data, optionally allowing the user to edit the data. Getting a form value with jQuery. Any HTML element can receive this event. You want to change GridView row color based on column value using jQuery. Disclaimer: This site is started with intent to serve the ASP. hide() jQuery. Getting a radio element and it’s checked value Radio buttons in a form can be grouped together using the same name attribute, such that, if one of them is checked, all the others are automatically un-checked. NET Forums / General ASP. The second click put the script on work, since it has already checked the if requirement with the first click. How to get entire row details of a html table with the help of row number in jquery [Answered] RSS 4 replies Last post Jun 16, 2014 06:48 AM by shivigupta31web. If you return false, the opening will be cancelled. How to get ID of clicked element. Implementing such a functionality is straightforward using ASP. How to Get Value of Selected Radio Button List Using jQuery Last Updated On: June 24, 2017 June 24, 2017 | By: Parvez Hi friend How are you ,I hope you are doing good. For example, to get the value of the input element, get the value attribute. jQuery Dynamic Click Event: Bind click event on dynamically added element HTML tags. Later inside the first loop, I’ll get the cells collection of each row. The selected checkboxes value can be get easily using jQuery. Description: The highlight effect hides or shows an element by animating its background color first. Recently I have posted how to sort only current page of gridview, Scrollble gridview with fixed header through javascript, File upload control inside gridview during postback and now i am going to explain how to handle click event of linkbutton or any button type control inside gridview. Hi, i have a table with 5 rows and 5 columns on click of any cell can i get the id of the row and cell. js file changed. jQuery delete table row click: This article explains how to remove selected table row. If this parameter is omitted, deleteRow() removes the last row in IE and the first row in Chrome and Safari. In real scenario many time we need to send complete table data to the server. I want to get the id of the selected row. It's not easy to get key from value in Hashtable or HashMap, as compared to getting value from key because HashMap or Hashtable doesn't enforce one to one mapping between key and value inside Map in Java. Dear All, I am very new to jquery. I’m an Impostor. In edit_row() function we get row id and get the name and age text and then insert the textbox with age and name value in both the columns to edit the text and then display the save button to save the records. Include jQuery library (if your project doesn’t use it already) and jquery. EasyUI is a complete framework for HTML5 web page. But what if you want to get the row data of html table that is generated dynamically? Second Scenario:-Getting the row data of dynamic html table using jquery Yeah, to get the row data of table that is generated dynamically, containing the values from database in it's cell. The function can return the row as an object, an associative array, or as a numerically indexed array. but when i try to add the jquery enabled menu to the same webpage which is using jquery version jQuery v1. NET MVC and jQuery Ajax. I've written resignation letters from jobs I've loved, I've ended relationships, I've failed at a host of tasks, and let myself down in my life. Since IDs are unique, this expression always selects either zero or one elements depending upon whether or not an element with the specified ID exists. I dont quite understand jquery codes as I am very new to it. I have shared tutorial Dynamically Add and Remove rows in a Table Using jquery, now I will add same functionality in angularjs and generate json data into angular modal. This topic explains how to use the API for selecting and deselecting rows and cells in igHierarchicalGrid™. net using c# as well as vb. jQuery Forum Move this topic Forum : Getting Started Using jQuery Using jQuery Plugins Using jQuery UI Developing jQuery Core Developing jQuery Plugins Developing jQuery UI QUnit and Testing About the jQuery Forum jQuery Conferences jQuery Mobile Developing jQuery Mobile. I want to get the third column in a selected row. When using a jQuery UI effect that supports additional settings, you may include those settings in the object and they will be passed to the effect. get student details by its id, product details, etc. Add a script editor web part to the page and copy paste the below code to it. When th user clicks one link, that link. click Function. in this tutorial we will be discussed how to add and delete records dynamically to the table using jquery, Normally in project we give options to users to add multiple rows and submit into database, here i am creating functionality to add and delete static row. 6m developers to have your questions answered on Find A Row in the Grid by Unique ID or Selected of UI for ASP. In my HTML table, each row have separate id. Optionally it can also prepend a hash (#) to the row id allowing it to then easily be used as a selector. log( $( "li" )[ 0 ] );. In order to tell jQuery to treat these characters literally rather than as CSS notation, they must be escaped by placing two backslashes in front of them. Simple jQuery Script to Delete Single/Multiple Selected Rows. Net Database For binding the gridview, First have to create a table in Microsoft SQL Server Database as shown below. js to select one of the ISO-8601 datetime formats recommended here when populating jQuery Bootgrid in order to avoid strange behaviour. How to get ID of clicked element. If response == 1 then remove a row using remove() and use fadeOut() effect to add some delay. In the above view, we have defined a div with id details to fill the employee detail by making Ajax call using jQuery. Elements natively support a [code]click[/code] method, which simulates the user clicking. The following code shows how to get text value from a button and set it to form input text field. I needed to use multiple clears though and couldn’t understand how to get more than one value and clear into one field element. 81K Suppose you have a list of items arranged in a table and you want to change the sorting order of the items - Jquery UI has a wonderful and easy to use plugin for this - know as Sortable. In this tutorial, you will learn how you can get all the checkboxes values using JQuery. onDblClickCell. NET GridView Cell Value when it is clicked, using jQuery. I have an simple algorithm which marks table rows with identical entries blue. on('change', '[id^=field_9nuyb-]', updateDayFields ); Add row counter. Please refer to the following script demonstrating how to get the name of the clicked series:. NET Get Gridview Row Values When Checkbox Selected in Asp. The checkbox is very useful to get multiple values. Here is a jquery script which you can use to get the ID from the edit form. Net GridView Row and its RowIndex when clicked using JavaScript When the LinkButton in a GridView Row is clicked, the following JavaScript function is called. How to remove table row tr in jquery on button click. Such technique is also known as click-to-edit or edit-in-place. The ID can be obtained from the query string of the edit form URL. New here? Start with our free trials. How to get id of an HTML element on hover using jQuery; How JQuery Get Id Of An HTML Element On Click; Hope, you like this tutorial of how to get selected checkbox value using jQuery. In the Demo 1, we get the value from the textbox by using the. Why it is tricky? The reason is ID of control's placed inside ASP. Then use the markup you would normally do for html tables. We can use JavaScript to get parent element or jQuery to get parent element but which one would be best for you is up to your need and familiarity with JavaScript and jQuery. net mvc get selected value from dropdownlist with example or asp. on click event using jQuery The click event is sent to an element when the mouse pointer is over the element, and the mouse button is pressed and released. In the above example a click event handler has been assigned to the HTML input button. But If I remove a row (tr) another row index changes. Previous: Find the loaded jQuery version. Just take a look at the following examples, then view the live throttling example. ready(function() { $(function() { $("#dialog"). This article will explain how to get the total count of the number of rows in HTML Table and also how to get the count of the number of all rows except the First (Header) row in HTML Table using JavaScript and jQuery. Ex, waTable. When a user clicks on the table, how can I get the index of this row (tr element)?For example, when I click on the first tr (with 1s in the above table), it should pick it up and return 1. I dont quite understand jquery codes as I am very new to it. By default, Apple's Maps features a 2D overhead viewing angle when you search for a place or get directions to a specific address. Thereafter get to safety tab>restricted sites>sites. It works by default by looking at the id of each item in the format "setname_number", and it spits out a hash like "setname[]=number&setname[]=number". Creating Dynamic Table Rows and Columns In Javascript Before we get into the solution, here I first discuss the problem we are going to solve through Javascirpt. Create dynamic HTML table using jquery. And, also, outside of html5 it's not valid to use a numeral (0-9) as the first character of an id attribute. You can change your ad preferences anytime. jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. There may be times when you need to know the index of the element that is clicked from within a group of elements e. But after adding a few rows if i delete rows inbetween in the table and then add a new row. Chris Coyier’s one which groups the data for each row in a list and the columns disappear. I need to copy a table row that has dropdown as well as text boxes and increase the id of the elements. We can achieve this using jQuery or AJAX. jQuery AJAX Call to PHP Script with JSON Return. jQuery Message Queuing makes this easy, just set up a queue with a callback and delay, and add items onto the queue as-needed. By default, the selected checkboxes value is posted on form submission to the server-side. Show / hide a DIV using javascript Hi paCkeTroUTer, What you could do is wrap each 6 questions with a next / back button in a div and assign it an id "idone" "idtwo" in my example. The following code example shows how to get the selected row indexes in Grid. This tutorials, I have described the following jQuery methods like click() and text() and how to find Id of controls. jQuery selectors allow you to select and manipulate HTML element(s). DIVID is the ID of the div tag that will be used to enclose the table in the html document generated by the code. The jQuery snippets are also quite simple to understand. Problem : We have a HTML page which looks like this:. jQuery Selectors. jQuery Code: var gridId = jQuery("#jqMyGrid"). Get every row data by using the. However, as of version 1. It is very easy when to get row information when you click auto-generated "Select" link/button in GridView row. I'm trying to get the id of a table row here's what I've got: Basically, when I click a row, I need to pass that row's id to the showDialog function. Make all editable columns and the command column into templatefields 3. To get this data, access the underlying widget used to display the item and handle its events: Access to Underlying Widgets. How do I select an element by an ID that has characters used in CSS notation? Because jQuery uses CSS syntax for selecting elements, some characters are interpreted as CSS notation. Alternatively, play around by adding and deleting/removing the rows. in the GridView. I've tried a number of different things, and the best that I get is the div will flash for a second and disappear. Replace 186 with the ID of the text field. Using AJAX to Update Content. Web developers often use an Asp. row( this ). How to get a row id and cell ID on click or column. Previous: Find the loaded jQuery version. NET GridView". Provides universal solution to allow row selection using checkboxes and Select extension for a table using jQuery DataTables. At a minimum, you should have the "Firebug" (or Web Developer Tools). getRow(5); You can now prevent rows to be checked/unchecked by setting "checked" true/false from rowClicked event. Step1: Add this code between head tags of your page. Here i explained with an example, how to get count (number) of rows in HTML Table using JavaScript and jQuery. But if you want to get the selected checkboxes values without form submission, jQuery is the best option. jQuery: code to get TD value on button click. I have shared tutorial Dynamically Add and Remove rows in a Table Using jquery, now I will add same functionality in angularjs and generate json data into angular modal. getSelections: Get all selected row data, return array data which element is the record. We can include checkbox in every row of GridView to enable selection of that particular row. In the Demo 1, we get the value from the textbox by using the. Tabular form: select elements with jQuery One of the most frequent issues i see on the Apex forums is having to deal with jQuery selectors. , the one you are going to use in the repeater). The second click put the script on work, since it has already checked the if requirement with the first click. The kind of relationship that is created depends on how the related columns are defined. (remove - 2 ) Well I think that I must use parent function but it doesn't work. Later, when necessary, I can save the data in a database table using the unique ID. However I want to be able to customize what happens for each row. The jQuery snippets are also quite simple to understand. To know which link the user has clicked, we have to handle the clicked event, using jQuery. There’s a pure CSS way to go about doing this. Dear All, I am very new to jquery. Include jQuery library (if your project doesn’t use it already) and jquery. Recently I have posted how to sort only current page of gridview, Scrollble gridview with fixed header through javascript, File upload control inside gridview during postback and now i am going to explain how to handle click event of linkbutton or any button type control inside gridview. Tabular form: select elements with jQuery One of the most frequent issues i see on the Apex forums is having to deal with jQuery selectors. You can use jQuery AJAX to autocomplete data on the single or multiple elements when the user search or select value from an element. val(); [/code]Using JavaScript: [code]var e = document. APEX: Make a report row clickable in Report When you create a "Report with Form", there will be an icon in the report which allows you to navigate to the form page. a group of divs inside another div. This is the hardest thing I've ever had to write, much less admit to myself. On the table element add the st-table attribute to tell smart-table which collection holds your displayed data, (i. Bootstrap make table row a link using the following jQuery-. NET MVC Grid. In a listview WebPart ,I am updating the share point list using jquery in a button click. For example if you want to let your visitors submit a blog post to Digg you need to get that same exact URL. jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Join a community of over 2. net using C# and VB. How to fire an event in a checkbox inside a GridView. This may start a window that is new it is possible to understand limited web sites. click() method which works fine, but when you add dynamic HTML and try to achieve click event for it, then there you face problem. But If I remove a row (tr) another row index changes. Sample table is shown below. By default, the selected checkboxes value is posted on form submission to the server-side. The Ajax call is very similar to the previous call you made, but the product ID is included on the URL line. The best 2019 ocean number of family group actions Go to cinema. Here Mudassar Ahmed Khan has explained how to call a JavaScript function on GridView Row click using jQuery in ASP. jQuery selectors allow you to select and manipulate HTML element(s). append() or. Click the Editing Tools context-sensitive Format Text tab on the ribbon. Select one of the examples taken from the SVG specification that demonstrates how the functionality might be produced using this package. RadioButton on a GridView will allow the user to select one row at a time. 1) Create a function ----- function getID(celDiv,id). Using the reference of the clicked LinkButton, the GridView Row is referenced and the RowIndex is determined. The tag is in the master page.