title: An ItemTemplate must be defined on ListView 'ListView1'. any one help me for this error
body: <pre><code> protected void Button1_Click(object sender, EventArgs e)
      {
          SqlConnection con = new SqlConnection(str);
          SqlCommand cmd = new SqlCommand("insert into empoffice(empname,department,designation,empstatus,reportingto,grade,emplevel,doj) values('" + TextBox1.Text + "','" + DropDownList1.SelectedItem.Text + "','" + DropDownList2.SelectedItem.Text + "','" + DropDownList3.SelectedItem.Text + "','" + DropDownList4.SelectedItem.Text + "','" + DropDownList5.SelectedItem.Text + "','" + DropDownList6.SelectedItem.Text + "','" + TextBox2.Text + "')", con);
  
          con.Open();
          cmd.ExecuteReader();
  
          con.Close();
          SqlDataAdapter da = new SqlDataAdapter("select *from empoffice",con);
  
          DataSet ds = new DataSet();
  
          da.Fill(ds);
  
          ListView1.DataSource = ds;
  
          ListView1.DataBind();
  
       }
  </code></pre>