In ASP.net, I need the code to fill the text area (in the form) when a button is clicked. Can you help me through by showing a simple .aspx
code containing the script tag?
In trying to solve this, I get the following error:
This .aspx document does not contain the definition of addText() function
My .ASPX code is below.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="textarea.aspx.cs" Inherits="textarea" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<textarea id="TextArea1" style="z-index: 100; left: 197px; width: 225px; position: absolute;
top: 125px; height: 117px" ></textarea>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 101;
left: 299px; position: absolute; top: 323px" Text="Button" />
</div>
</form>
</body>
</html>