How I insert the button into table
I want to insert a select button into the table but when I run, my button not show in the table. How do I?, pls. tell me. thanks.
this is my sample code
in the code behind
Response.Write("<TD ALIGN=CENTER>")
Response.Write("<asp:Button Text='Select' CommandName='Select' CommandArgument='" & Rs("Pcode") & "' runat='server'/>")
Response.Write("</TD>")
Response.Write("<TD ALIGN=LEFT>" & Rs("Pcode") & "</TD>")
Response.Write("<TD ALIGN=LEFT>" & Rs("Pname") & "</TD>")
And when the button click then I want to call Sub ItemCommand. How do I? Help me.
Protected Sub ItemCommand(ByVal sender As Object, ByVal e As RepeaterCommandEventArgs)
Session("Pname") = e.CommandArgument
lbMsg.Text = "Hello"
End Sub
|