将类“active”添加到ASP.NET MVC5中由循环生成的Actionlinks

时间:2016-02-05 13:41:31

标签: asp.net html5 asp.net-mvc-5

我使用Actionlinks编写了一个按钮组来过滤某些产品。 现在我想将“active”类添加到单击的按钮。有人现在该怎么做?

 #define currentLanguageBundle [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:[[NSLocale preferredLanguages] objectAtIndex:0] ofType:@"lproj"]]   


 1. NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults]; 
            [defaults setObject:@[@"en"] forKey:@"AppleLanguages"];  [defaults
            synchronize];

 2. _label.text = NSLocalizedStringFromTableInBundle(@"Key", nil, currentLanguageBundle, @"");

谢谢!

0 个答案:

没有答案