I have googled this quite a lot and must still be missing something. The method creates the pop-up dialog fine but the text box does not get populated when I press the button.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="Proj1.Test" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type="text/javascript">
function ButtonSubmit() {
var isPressed = document.getElementById('SubmitPressed');
isPressed.Value = "True";
alert('You have submitted your request. ');
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="SubmitPressed" runat="server"></asp:TextBox>
<asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="ButtonSubmit();"/>
</div>
</form>
</body>
</html>