asp.net - Button onclick event in VB -


i'm trying build cell within table . cell going button should open hyperlink(an email address) .how write onclick event

below code in vb cell i'm building

 newcell = new tablecell                 newcell.id = "celrptselect" & rptrow & "f"                 newcell.style("width") = rowrptselectheadf.style("width")                 newcell.cssclass = "tablebutton"                 newcell.text = "sme"                 newcell.attributes.add("onclick", "rpt.smeemail")                 newcell.attributes.add("runat", "server")                 newrow.cells.add(newcell) 

rpt.smeemail data i'm getting database

thanks in advance

you can use code

newcell.attributes.add( "onclick", "cellaction( me )" ); 

add script

<script type="text/vbscript"> sub cellaction( tdcontrol )   msgbox tdcontrol.id end sub </script> 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -