Registry and Datagrid show error control in design mode-please help!!
-
hi I read a very nice article about grouping radiobuttons I have used the coding in my project as it is quite similar and i have made few changes to it but I am having problem i am able to add reference but when i use register and tag prefix ="rs" to call the custom contol groupradiobutton in the datagird the design page shows the gridcontrol -error control in the datagrid which i am finding difficult to follow. <%@ Register TagPrefix="rs" Namespace="Sample.Web.UI.Controls" Assembly ="Available" %><%@ Page language="c#" Codebehind="AvailableCourse.aspx.cs" Debug="true" AutoEventWireup="false" Inherits="Bound.AvailableCourse" %> even in the aspx.cs file i am getting error near "Checked " the error is like this " Bound.AvailableCourse" does not contain a definition for Checked "foreach(DataGridItem dgItem in DataGrid1.Items) { AvailableCourse Availablecourse=dgItem.FindControl("Availablecourse")as AvailableCourse; // if it is checked (current item is selected)... if(Availablecourse!= null && Availablecourse.Checked) { DataTable dataSource=DataSource.CreateDataSource(); DataRow row = dataSource.Rows.Find(DataGrid1.DataKeys[dgItem.ItemIndex]); Label1.Text = String.Format("Selected day: {0}, Date_Time: {1}", row["Date_Time"], row["Number_Of_Seats"]); return; thanks in advance kal13na13 kal13na13
-
hi I read a very nice article about grouping radiobuttons I have used the coding in my project as it is quite similar and i have made few changes to it but I am having problem i am able to add reference but when i use register and tag prefix ="rs" to call the custom contol groupradiobutton in the datagird the design page shows the gridcontrol -error control in the datagrid which i am finding difficult to follow. <%@ Register TagPrefix="rs" Namespace="Sample.Web.UI.Controls" Assembly ="Available" %><%@ Page language="c#" Codebehind="AvailableCourse.aspx.cs" Debug="true" AutoEventWireup="false" Inherits="Bound.AvailableCourse" %> even in the aspx.cs file i am getting error near "Checked " the error is like this " Bound.AvailableCourse" does not contain a definition for Checked "foreach(DataGridItem dgItem in DataGrid1.Items) { AvailableCourse Availablecourse=dgItem.FindControl("Availablecourse")as AvailableCourse; // if it is checked (current item is selected)... if(Availablecourse!= null && Availablecourse.Checked) { DataTable dataSource=DataSource.CreateDataSource(); DataRow row = dataSource.Rows.Find(DataGrid1.DataKeys[dgItem.ItemIndex]); Label1.Text = String.Format("Selected day: {0}, Date_Time: {1}", row["Date_Time"], row["Number_Of_Seats"]); return; thanks in advance kal13na13 kal13na13