I am currently developing a website. I have an a code in my external js file

```
function DeleteConfirm(rfqcodeLB) {
    var confirm_value = document.createElement("INPUT");
    confirm_value.type = "hidden";
    confirm_value.name = "confirm_value";
    if (confirm("Are you sure you want to delete" + rfqcodeLB +" ?")) {
        confirm_value.value = "Yes";
    } else {
        confirm_value.value = "No";
    }
    document.forms[0].appendChild(confirm_value);
}

```

What I want to do is get the id of the selected row in the gridview. What i did was transfer the selected code into string which is rfqcodeLB. And then put the attribute to the button. But it shows null.

Can someone please help me? Thanks.

```
<asp:ImageButton ImageUrl="../Pictures/Icons/deleteblack.png" runat="server" OnClick="Unnamed_Click" ID="deleteBT" OnClientClick="return DeleteConfirm(ContentPlaceHolder1_rfqcodeLB);"/>

```