Could anyone please help me with the VB code in ASP.Net to copy the text from a textbox on the page to the clipboard by just clicking the Copy button placed beside it..........?
Regards.......
Regards.......
<asp:Button ID="btnCopy" runat="server" Text="Copy" Height="" Width="59px"/>
<input type="button" ... onclick="someFunction()">
<input type="button" ... onclick="someFunction()">
<asp:Button ID="MyButton" runat="server" onclick="someFunction()" />
<asp:Button ID="MyButton" runat="server" OnClientClick="someFunction()" />
MyButton.Attributes.Add("onclick","someFunction();")
MyButton.Attributes.Add("onclick","someFunction(); return false;")
<asp:Button ID="MyButton" runat="server" OnClientClick="someFunction();return false;" />
<asp:Button ID="MyButton" runat="server" onclick="someFunction()" />
<asp:Button ID="MyButton" runat="server" OnClientClick="someFunction()" />
MyButton.Attributes.Add("onclick","someFunction();")
MyButton.Attributes.Add("onclick","someFunction(); return false;")
<asp:Button ID="MyButton" runat="server" OnClientClick="someFunction();return false;" />
btnCopy.Attributes.Add("onclick","someFunction();")
Comment