using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; using System.Configuration; public partial class Demo : System.Web.UI.Page { SqlConnection con; public Demo() { con = new SqlConnection(); con.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString(); } protected void Page_Load(object sender, EventArgs e) { } protected void wizard1(Object sender, System.EventArgs e) { SqlDataAdapter adp = new SqlDataAdapter("select top 10 Question,Option1,Option2,Option3,Option4 from Questions", con); DataTable dt = new DataTable(); adp.Fill(dt); Repeater1.DataSource = dt; Repeater1.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)