<html xmlns="
http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<style type="text/css">
::selection
{
background-color:#0000FF;
}
a
{
cursor:hand;
color:#0000FF;
}
</style>
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.clipboard.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.clipboardReady(function () {
$("a").click(function () {
$('#<%=txtContent.ClientID %>').select(); //Highlight the text in the TextBox Control
$.clipboard($('#<%=txtContent.ClientID %>').val()); //Copy the contents of the TextBox into the clipboard using the clipboard plugin
})
})
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="5" Width="300px" Height="200px"></asp:TextBox>
<br />
<asp:HyperLink ID="lnkHightLine" runat="server" Text="Click here to copy"></asp:HyperLink>
</div>
</form>
</body>
</html>
<head runat="server">
<title></title>
<style type="text/css">
::selection
{
background-color:#0000FF;
}
a
{
cursor:hand;
color:#0000FF;
}
</style>
<script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="../js/jquery.clipboard.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.clipboardReady(function () {
$("a").click(function () {
$('#<%=txtContent.ClientID %>').select(); //Highlight the text in the TextBox Control
$.clipboard($('#<%=txtContent.ClientID %>').val()); //Copy the contents of the TextBox into the clipboard using the clipboard plugin
})
})
})
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" Rows="5" Width="300px" Height="200px"></asp:TextBox>
<br />
<asp:HyperLink ID="lnkHightLine" runat="server" Text="Click here to copy"></asp:HyperLink>
</div>
</form>
</body>
</html>