All those Forms methods can take a dictionary as the final parameter, which lets you set attributes. In your case you'd do something like this:
Hashtable attrs = new Hashtable();
attrs("id") attrs["id"] = "myid")
myid";
retVal.Append(Forms.SubmitButton(api.AddPluginPrefix("btnRefresh"), "Refresh", attrs));