Can someone please help me with why this button is not working, I've tried putting it in <for id="" runat="server">, but then I get the error: A page can have only one server-side Form tag.
When the button is clicked nothing happens.
<%@ Page Language="C#" MasterPageFile="~/train.master" AutoEventWireup="true" validateRequest="false"
CodeFile="TrainStationTutorial.aspx.cs" Inherits="TrainStationTutorial" Title="Admin | Tutorial" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<link href="style2.css" rel="stylesheet" type="text/css" />
<div id="main">
<center>
<object width="740" height="207" >
<param name="movie" value="admin_menu.swf" />
<embed src="images/admin_menu.swf" width="960" height="170" />
</object>
<h2>Admin | Tutorial</h2>
<br />
<div class="about">
<div class="contactform">
<div id="li1">
<asp:Label ID="titleLabel" runat="server" Text="Title" CssClass="label" />
<asp:TextBox ID="titleText" runat="server" CssClass="inputtext" />
</div>
<div id="li2">
<asp:Label ID="categoryLabel" runat="server" Text="Category" CssClass="label" />
<asp:ImageButton ID="addCategory" runat="server" ImageUrl="images/add.jpg" />
</div>
<div id="li3">
<asp:Label ID="tutorialLabel" runat="server" Text="Tutorial" CssClass="label" />
<asp:TextBox ID="tutorialArea" runat="server" CssClass="textarea" TextMode="MultiLine" />
</div>
<div id="li4">
<asp:ImageButton ID="submitButton" runat="server" ImageUrl="images/submit.jpg" OnClick="ImageButton1_Click" />
<asp:Label ID="messageLabel" runat="server" Font-Size="10px" ForeColor="Red" />
</div>
</div>
</div>
</center>
</asp:Content>
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
messageLabel.Text = "Working";
}