ASPX Mailbox (2 of 6) by Karl Mitschke 3 years ago
embed code: <script type="text/javascript" src="http://PoshCode.org/embed/506"></script>download | new post
This is part 2 of a 6 part mailbox creation web site.
This site allows local administrators to create and delete mailboxes, and change email addresses. Save this as MailboxTasks.aspx.cs
- public partial class MailboxTasks : System.Web.UI.Page
- {
- private void Page_Load(object sender, System.EventArgs e)
- {
- sbValid.Append("if (typeof(Page_ClientValidate) == 'function') { ");
- sbValid.Append("if (Page_ClientValidate() == false) { return false; }} ");
- sbValid.Append("this.value = 'Please wait...';");
- sbValid.Append("this.disabled = true;");
- sbValid.Append("document.all.btnNext.disabled = true;");
- sbValid.Append(ClientScript.GetPostBackEventReference(this.btnNext,""));
- sbValid.Append(";");
- this.btnNext.Attributes.Add("onclick", sbValid.ToString());
- if (IsPostBack)
- {
- Server.Transfer("MailboxConfirm.aspx", true);
- }
- }
- }
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
PowerShell Code Repository