Ejemplo n.º 1
0
    protected void Reset()
    {
        TextBox date = (TextBox)NewPostForm.FindControl("postdate");

        date.Text = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString();

        ((TextBox)NewPostForm.FindControl("subject")).Text = "";
        ((TextBox)NewPostForm.FindControl("content")).Text = "";
    }
Ejemplo n.º 2
0
    protected void Reset()
    {
        TextBox date = (TextBox)NewPostForm.FindControl("postdate");
        date.Text = DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToShortTimeString();

        this.createdby.Value = TFS.Security.Utility.GetUsername();

        ((TextBox)NewPostForm.FindControl("subject")).Text = "";
        ((TextBox)NewPostForm.FindControl("content")).Text = "";
    }