i am developing one sandbox solution. i have one .aspx page in my solution, there i need to create one button and need to write server-side event for that button. But i couldn't do it. getting error as "The event handler 'OnClick' is not allowed in this page."
<%@ Page Language="C#" %>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">`
<head>
</head>
<body>
<form id="form1" runat="server">
<asp:Button ID="btnClick" Text="Click Me" runat="server"
OnClick="Btn_Click" />
</form>
</body>
</html>
Can't we add server-side event for controls in sandbox solution.?