How to access attribute values from HTML to save in DB on button click
<p>i am writing some adding some link attribute like below.
which render to HTML, but i want to knwo i can i acess those attributes value at button click event?</p>

<p>My code is below</p>

<pre><code>protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem)
    {
        GridDataItem gridDataItem = (GridDataItem)e.Item;
        gridDataItem.Height = Unit.Pixel(10);
        HyperLink link = (HyperLink)gridDataItem["ContentTitle"].Controls[0];
        ViewState["ContentID"] = gridDataItem["ContentID"].Text;
        link.ForeColor = System.Drawing.Color.Navy;
        link.ToolTip = Common.grdTextCell(gridDataItem["ContentSummaryDescr"].Text);
        link.NavigateUrl = "~/SlideImages/" + gridDataItem["ContentName"].Text;//Session["contentFolderPath"] + "\\"+ gridDataItem["ContentName"].Text;// Common.grdTextCell(gridDataItem["ContentName"].Text);
        link.Target = "_blank";
        link.Attributes["name"] = gridDataItem["ContentID"].Text + "," + gridDataItem["SiteContentListID"].Text;
        HttpResponse myHttpResponse = Response;
        HtmlTextWriter myHtmlTextWriter = new HtmlTextWriter(myHttpResponse.Output);
        link.Attributes.AddAttributes(myHtmlTextWriter);
        link.Attributes.Add("onclick",
        "document.getElementById('" +
            dummyBtn.ClientID + "').click();");
    }
}

protected void dummyBtn_Click(object sender, EventArgs e)
{


}
</code></pre>

<p>rendered HTML is like this..</p>

<p>I am writing this for one row</p>

<pre><code>&lt;td&gt;&lt;a style="color:Navy;" target="_blank" href="somepath/abc.doc" onclick="document.getElementById('MainContent_SiteNewCon_dummyBtn').click();" name="1,16" title="rupesh tesr"&gt;test&lt;/a&gt;&lt;/td&gt;
</code></pre>

<p>i want to use thses name="1, 16" to my button click event so that i can save them to db.</p>
