I'm trying to develop a Windows 8 Metro app where i needed to create an arbitrary number of radio buttons, but the Checked event handler is not firing up.
I read in some post that I've to enable AutoPostBack.
Please let me know in which namespace it is? Also i found that it is in System.Web.UI.Webcontrols, but i'm unable to include that namespace..
I'm using visual studio 2012 ultimate if that helps
RadioButton rad=new RadioButton();
rad.HorizontalAlignment = HorizontalAlignment.Left;
rad.VerticalAlignment = VerticalAlignment.Top;
rad.Margin = new Thickness(1100, x, 0, 0);
rad.Width = 35;
rad.Height = 30;
rad.GroupName = "group1";
rad.IsEnabled = true;
rad.Checked += new RoutedEventHandler(radbtn);
gridit.Children.Add(rad[i]);
void radbtn(object obj, RoutedEventArgs e)
{
edit_del_tb.Text = "Testing";
}
'AutoPostBack' accepting a first argument of type 'Windows.UI.Xaml.Controls.RadioButton' could be found (are you missing a
using directive or an assembly reference?) I'm getting this error – user1875119 May 15 '13 at 12:41