How do I add a parameter to an action filter in asp.net?

The TypeFilterAttribute has an Argument property (of type object[]) where you can pass arguments to the constructor of the implementation. So applied to your example you can use this code: public class MyAttribute : TypeFilterAttribute { public MyAttribute(params string[] ids) : base(typeof(MyAttributeImpl)) { Arguments = new object[] { ids }; } private class MyAttributeImpl : … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)