site code
- Code: Select all
%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Site.Test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wymeditor/jquery.wymeditor.min.js" type="text/javascript"></script>
<script type="/text/javascript" src="jquery/jquery.js"></script>
<script type="text/javascript">
jQuery(document).ready(function()
{
jQuery('#<%= myTextarea.ClientID %>').wymeditor();
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<textarea runat="server" id="myTextarea" name="myTextarea" class="wymeditor"></textarea>
<asp:Button runat="server" ID="myButton" CssClass="wymupdate" OnClick="myButton_Click" Text="Save" />
<asp:Label runat="server" ID="Result" />
</div>
</form>
</body>
</html>