Thursday 14 February 2013

Get anchar tag on server side in asp.net

html//
<a id="cust_act" class="tools-text" title="Validate Customer" href='............' onserverclick="Cust_Validate" onclick="return confirm('Are you sure to do this Record?')" runat="server">
   your text</a>

onserver side

protected void Cust_Validate(object s, System.EventArgs e)
    {
        HtmlAnchor cust_act = (HtmlAnchor)s;
        string ID = cust_act.HRef;
string ID = cust_act.InnerText;
}

No comments:

Post a Comment

Excel Sort values in ascending order using function TEXTJOIN

 Excel ::  Text ::  1,3,5,2,9,5,11 Result :: 1,2,3,5,5,9,11 Formula ::     TEXTJOIN ( ",",1,SORT(MID(SUBSTITUTE( A1 ,","...