Session["Answered"] = dt; View v = this.View1; Label l = default(Label); l = (Label)v.FindControl("Label1"); l.Text = dt.Rows[ctr].Item["Serial"] + "."; l = (Label)v.FindControl("Label2"); l.Text = dt.Rows[ctr].Item["question"];
Error 4 'System.Data.DataRow' does not contain a definition for 'Item' and no extension method 'Item' accepting a first argument of type 'System.Data.DataRow' could be found (are you missing a using directive or an assembly reference?) E:\Documents and Settings\Administrator\My Documents\Visual Studio 2010\WebSites\sravan\WebSite6\Default2.aspx.cs 38 31 E:\...\WebSite6\
DataRow
Item
l.Text = dt.Rows[ctr]["Serial"] + ".";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)