public static string PasswordInput(string sInputName, string sInputValue, [Optional] IDictionary dictAttr) { var dict = CopyDictionary(dictAttr); FormsEx.PrependClass("wide", dict); FormsEx.PrependClass("dlgText", dict); return(Input("password", sInputName, sInputValue, dict)); }
protected string GetForm() { return(String.Format( @"<p>Username: {0}</p> <p>Password: {1}</p> <p>Request token: {2}</p> <p>New token value: <strong id=""lblToken""></strong></p>", Forms.TextInput("username", ""), FormsEx.PasswordInput("password", ""), Forms.SubmitButton("btnRequestToken", "Create API Token") )); }