using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.IO;
public partial class OnlineExamFeedBack_Feed_Back : System.Web.UI.Page
{
    string SelectedDropdown = string.Empty;
    string sql;
    private string SFaculty;
    private SqlDataReader Dr;
    private SqlDataCon scon = new SqlDataCon();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //Session["BthID"] = "107";
            //Session["Course"] = "REO";
            //DataTable dt1 = new DataTable();
            //Session["Listboxvalues"] = dt1;
            dropdownfill(ddlcourseuserful);
            dropdownfill(ddlcourseacquired);
            dropdownfill(ddlcoursegained);
            dropdownfill(ddlcourseequip);
            dropdownfill(ddlcourseequipfr);
            dropdownfill(ddlequipgained);
            dropdownfill(ddltimetheory);
            dropdownfill(ddltimeequip);
            dropdownfill(ddltimeinform);
            dropdownfill(ddlcontact);
            dropdownfill(ddlhandouts);
            dropdownfill(ddlcertificate);
            dropdownfill(ddlReceipts);
            dropdownfill(ddldrinking);
            dropdownfill(ddlcatering);
            //Displaying top 1 bthid into textbox
            try
            {
                sql = "select top 1 bthid from BatchFaculty order by bthid desc";
                Dr = scon.ReadSql(sql);
                while (Dr.Read())
                {
                    txtbatchid.Text = Dr[0].ToString().Trim();
                }
                Dr.Close();
            }
            catch (Exception Ex)
            {
                Lblmsg.Text = Ex.ToString();
                return;
            }
            //sql = "select facid from bthfac where bthid = " + Convert.ToInt64(Session["35"]) + " ";
            sql = "Select facid from BatchFaculty where bthid = '" + txtbatchid.Text + "'";
            //sql = "Select facid from BatchFaculty where bthid = " + 51 + "";
            try
            {
                Dr = scon.ReadSql(sql);
                Dr.Read();
                if (Dr.HasRows)
                    SFaculty = Dr.GetString(0);
                else
                    SFaculty = "";
                Dr.Close();
                int i = 0;
                string words = SFaculty.ToString().Trim();
                string[] split = words.Split(new char[] { ',' });
                if (words.ToString().Trim() != "")
                {
                    foreach (string s in split)
                    {
                        Lstfacid.Items.Add(s.ToString());
                        i = i + 1;
                    }
                }
            }
            catch (Exception ex)
            {
                this.Lblmsg.Text = ex.ToString();
                return;
            }
            //BindGrid();
            SetInitialRow();
            PopulateGrid();
            Pnlnegativefeedback.Visible = false;
            DataTable dt = new DataTable();
            dt.Columns.Add("Dropdown");
            dt.Columns.Add("Remark");
            DataRow drow = dt.NewRow();
            drow[0] = hfnegativefeedback.Value;
            drow[1] = TxtNegativeFeedback.Text.ToString();
            dt.Rows.Add(drow);
            ViewState["Remarks"] = dt;
            gvnegative.DataSource = dt;
            gvnegative.DataBind();
            MultiView1.ActiveViewIndex = 0;
            Lstfaculty.Visible = false;
            Lstfacid.Visible = false;
        }
    }
    protected void SetImage(object sender, EventArgs e)
    {
        //LinkButton button = sender as LinkButton;
        //GridViewRow row = ((button).NamingContainer as GridViewRow);
        //Image img = new Image();
        //img.ImageUrl = button.CommandArgument;
        //this.gvfaculty.Rows[1].Cells[2].Controls.Add(img);
    }
        private void PopulateGrid()
        {
            //DataTable dt = new DataTable();
            //dt.Columns.AddRange(new DataColumn[2]{ new DataColumn("Name",typeof(string)),
            //                    new DataColumn("Photo",typeof(string))});
            //dt.Rows.Add("John", "C:\\Documents and Settings\\admin\\My Documents\\My Pictures/Sarath.k.JPG.jpg");
            //this.gvfaculty.DataSource = dt;
            //this.gvfaculty.DataBind();
            //this.gvfaculty.Rows[1].Cells[2].RowSpan = gvfaculty.Rows.Count;
            //for(int i= 1; i<gvfaculty.Rows.Count; i++)
            //{
            //    this.gvfaculty.Rows[i].Cells[2].Visible = true;
            //}
            //added
            DataTable dt2 = new DataTable();
            dt2.Columns.Add(new DataColumn("Faculty Name", typeof(string)));
            //dt2.Columns.Add(new DataColumn("FacultyID", typeof(string)));
            dt2.Columns.Add(new DataColumn("Imagess", typeof(string)));
            dt2.Rows.Add("G. SEKHAR", "~/Imagess/G. SEKHAR.jpeg");
            dt2.Rows.Add("RAM NARESH", "~/Imagess/RAM NARESH.jpeg");
            this.gvfaculty.DataSource = dt2;
            this.gvfaculty.DataBind();
            this.gvfaculty.Rows[0].Cells[2].RowSpan = gvfaculty.Rows.Count;
            for (int i = 1; i < gvfaculty.Rows.Count; i++)
            {
                this.gvfaculty.Rows[i].Cells[2].Visible = true;
            }
            this.gvfaculty.DataSource = dt2;
            this.gvfaculty.DataBind();
            //added
        }
    private void dropdownfill(DropDownList Dname)
    {
        if (Dname != null)
        {
            List<string> strval = new List<string>();
            strval.Add("---Select Grading---");
            strval.Add("Excellent");
            strval.Add("Good");
            strval.Add("Fair");
            strval.Add("Poor");
            Dname.DataSource = strval;
            Dname.DataBind();
        }
    }
    protected void validateddl(DropDownList ddl)
    {
        if (ddl.SelectedIndex == -1)
        {
            Lblmsg.Text = "";
            validateddl(ddlcourseuserful);
            validateddl(ddlcourseacquired);
            validateddl(ddlcoursegained);
            validateddl(ddlcourseequip);
            validateddl(ddlcourseequipfr);
            validateddl(ddlequipgained);
            validateddl(ddlcontact);
            validateddl(ddlhandouts);
            validateddl(ddlcertificate);
            validateddl(ddlReceipts);
            validateddl(ddldrinking);
            validateddl(ddlcatering);
            validateddl(ddltimetheory);
            validateddl(ddltimeequip);
            validateddl(ddltimeinform);
        }
    }
    private void BindGrid()
    {
        //DataTable dtfac = new DataTable();
        //dtfac.Columns.Add("Faculty Name");
        //dtfac.Columns.Add("1");
        //dtfac.Columns.Add("2");
        //dtfac.Columns.Add("3");
        //dtfac.Columns.Add("4");
        //dtfac.Columns.Add("5");
        //DataRow drow = dtfac.NewRow();
        ////drow[1] = "test";
        //dtfac.Rows.Add(drow);
        //gvfaculty.DataSource = dtfac;
        //gvfaculty.DataBind();
    }
    private ArrayList GetData()
    {
        ArrayList arr = new ArrayList();
        arr.Add(new ListItem("Excellent", "1"));
        arr.Add(new ListItem("Good", "2"));
        arr.Add(new ListItem("Fair", "3"));
        arr.Add(new ListItem("Poor", "4"));
        return arr;
    }
    private void FillDropdownlist(DropDownList ddl)
    {
        ArrayList arr = GetData();
        foreach (ListItem item in arr)
        {
            ddl.Items.Add(item);
        }
    }
    private void SetInitialRow()
    {
        DataTable dt = new DataTable();
      //DataRow dr = dt.NewRow();
        DataRow dr = null;
        dt.Columns.Add(new DataColumn("Faculty Name", typeof(string)));
        dt.Columns.Add(new DataColumn("FacultyID", typeof(string)));
        dt.Columns.Add(new DataColumn("Imagess", typeof(string)));
        //dt.Columns.Add(new DataColumn("Image", typeof(string)));
        dt.Columns.Add(new DataColumn("DropDownList1", typeof(string)));
        dt.Columns.Add(new DataColumn("DropDownList2", typeof(string)));
        dt.Columns.Add(new DataColumn("DropDownList3", typeof(string)));
        dt.Columns.Add(new DataColumn("DropDownList4", typeof(string)));
        dt.Columns.Add(new DataColumn("DropDownList5", typeof(string)));
        //dt.Rows.Add("G. SEKHAR", "~/Imagess/G. SEKHAR.jpeg");
        //dt.Rows.Add("RAM NARESH", "~/Imagess/RAM NARESH.jpeg");
        //Retrieving the faculty name from listbox(Exam_Setup page)
        DataTable dt1 = Session["Listboxvalues"] as DataTable;
        Lstfaculty.DataSource = dt1;
        Lstfaculty.DataTextField = "Faculty";
        Lstfaculty.DataValueField = "Faculty";
        Lstfaculty.DataBind();
        for (int i = 0; i < Lstfaculty.Items.Count; i++)
        {
            dr = dt.NewRow();
            dr["Faculty Name"] = Lstfaculty.Items[i].Text.ToString();
            dr["FacultyID"] = Lstfacid.Items[i].Text.ToString();
            //dt.Rows.Add(dr);
            dt.Rows.InsertAt(dr, i);   
        }
        ////Displaying the Facultyimage based on Faculty Name in the gridview
        //DirectoryInfo di = new DirectoryInfo(Server.MapPath("Images"));
        //DataRow dr1;
        //foreach (FileInfo fi in di.GetFiles())
        //{
        //    dr1 = dt.NewRow();
        //    string filename = Path.GetFileName(fi.FullName);
        //    dr["Faculty Name"] = filename;
        //    dr["ImageUrl"] = "~/Images/" + filename;
        //    dt.Rows.Add(dr1);
        //}
          
           gvfaculty.DataSource = dt;
           gvfaculty.DataBind();
        for (int i = 0; i < Lstfaculty.Items.Count; i++)
        {
            DropDownList ddl1 = (DropDownList)gvfaculty.Rows[i].FindControl("DropDownList1");
            DropDownList ddl2 = (DropDownList)gvfaculty.Rows[i].FindControl("DropDownList2");
            DropDownList ddl3 = (DropDownList)gvfaculty.Rows[i].FindControl("DropDownList3");
            DropDownList ddl4 = (DropDownList)gvfaculty.Rows[i].FindControl("DropDownList4");
            DropDownList ddl5 = (DropDownList)gvfaculty.Rows[i].FindControl("DropDownList5");
            FillDropdownlist(ddl1);
            FillDropdownlist(ddl2);
            FillDropdownlist(ddl3);
            FillDropdownlist(ddl4);
            FillDropdownlist(ddl5);
        }
        ////Displaying the Facultyimage based on Faculty Name in the gridview
        //  DirectoryInfo di = new DirectoryInfo(Server.MapPath("Images"));
        //  DataRow dr1;
        //  foreach(FileInfo fi in di.GetFiles())
        //  {
        //      dr1 = dt.NewRow();
        //      string filename = Path.GetFileName(fi.FullName);
        //      dr["Faculty Name"] = filename;
        //      dr["ImageUrl"] = "~/Images/" + filename;
        //      dt.Rows.Add(dr1);
        //  }
    }
    private void Insertdata()
    {
        DataTable dt = new DataTable();
        dt = (DataTable)ViewState["Remarks"];
        DataRow drow = dt.NewRow();
        drow[0] = hfnegativefeedback.Value;
        drow[1] = TxtNegativeFeedback.Text.ToString();
        dt.Rows.Add(drow);
        ViewState["Remarks"] = dt;
        gvnegative.DataSource = dt;
        gvnegative.DataBind();
    }
    private void Negativepnlpopup()
    {
        //To Display selected dropdown poor from the gridview using datatable to textbox
        TxtNegativeFeedback.Text = "";
        DataTable dt = new DataTable();
        dt = (DataTable)ViewState["Remarks"];
        if (ViewState["Remarks"] != null)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                if (hfnegativefeedback.Value == dt.Rows[i][0].ToString())
                {
                    TxtNegativeFeedback.Text = dt.Rows[i][1].ToString();
                }
            }
        }
        ModalPopupExtender1.TargetControlID = SelectedDropdown.ToString();
        TxtNegativeFeedback.Focus();
        ModalPopupExtender1.Show();
        Pnlnegativefeedback.Visible = true;
    }
    private void SetDropdowndetails(string Dropdownname, Int32 Dropdownid)
    {
        SelectedDropdown = Dropdownname.ToString();
        hfnegativefeedback.Value = Dropdownid.ToString();
        Negativepnlpopup();
    }
    private void RemoveDuplicaterows()
    {
        //To Delete Duplicate rows in GridView using Datatable
        DataTable dt = new DataTable();
        dt = (DataTable)ViewState["Remarks"];
        for (int irow = 0; irow < dt.Rows.Count; irow++)
        {
            if (dt.Rows[irow][0].ToString().Trim() == hfnegativefeedback.Value.ToString().Trim())
            {
                dt.Rows.RemoveAt(irow);
            }
        }
                ViewState["Remarks"] = dt;
                gvnegative.DataSource = dt;
                gvnegative.DataBind();
    } 
    private void RemoveData()
    {
        //DataTable dt = new DataTable();
        //dt = (DataTable)ViewState["Remarks"];
        //if (ViewState["Remarks"] != null)
        //{
        //    for (int irows = 0; irows < dt.Rows.Count; irows++)
        //    {
        //        if (hfnegativefeedback.Value == dt.Rows[irows][0].ToString())
        //        {
        //            TxtNegativeFeedback.Text = dt.Rows[irows][1].ToString();
        //            dt.Rows.RemoveAt(irows);
        //        }
        //    }
        //}
        //ViewState["Remarks"] = dt;
        //gvnegative.DataSource = dt;
        //gvnegative.DataBind();
        //-----------------------------
        //DataTable dt = new DataTable();
        //dt = (DataTable)ViewState["Remarks"];
        //if (ddlcoursegained.SelectedItem.ToString() == "Excellent")
        //{
        //    for (int irows = 0; irows < dt.Rows.Count; irows++)
        //    {
        //        dt.Rows.RemoveAt(irows);
        //    }
        //}
        //ViewState["Remarks"] = dt;
        //gvnegative.DataSource = dt;
        //gvnegative.DataBind();
        //if (ddlcoursegained.SelectedItem.ToString() == "Very Good")
        //{
        //    for (int irows = 0; irows < dt.Rows.Count; irows++)
        //    {
        //        dt.Rows.RemoveAt(irows);
        //    }
        //}
        //ViewState["Remarks"] = dt;
        //gvnegative.DataSource = dt;
        //gvnegative.DataBind();
        //if (ddlcoursegained.SelectedItem.ToString() == "Good")
        //{
        //    for (int irows = 0; irows < dt.Rows.Count; irows++)
        //    {
        //        dt.Rows.RemoveAt(irows);
        //    }
        //}
        //ViewState["Remarks"] = dt;
        //gvnegative.DataSource = dt;
        //gvnegative.DataBind();
        //if (ddlcoursegained.SelectedItem.ToString() == "Fair")
        //{
        //    for (int irows = 0; irows < dt.Rows.Count; irows++)
        //    {
        //        dt.Rows.RemoveAt(irows);
        //    }
        //}
        //ViewState["Remarks"] = dt;
        //gvnegative.DataSource = dt;
        //gvnegative.DataBind();
        //-----------------------------
        //DataTable dt = new DataTable();
        //dt = (DataTable)ViewState["Remarks"];
        //for (int irows = 0; irows < dt.Rows.Count; irows++)
        //{
        //    if (hfnegativefeedback.Value == dt.Rows[irows][0].ToString())
        //    {
        //        TxtNegativeFeedback.Text = dt.Rows[irows][1].ToString();
        //        dt.Rows.RemoveAt(irows);
        //    }
        //    ViewState["Remarks"] = dt;
        //    gvnegative.DataSource = dt;
        //    gvnegative.DataBind();
        //}
    }
    protected void btnok_Click(object sender, EventArgs e)
    {
        RemoveDuplicaterows();
        //RemoveData();
        Insertdata();
        Pnlnegativefeedback.Visible = false;
    }
    protected void btnCancel_Click1(object sender, EventArgs e)
    {
        Pnlnegativefeedback.Visible = false;
    }
    protected void BtnSubmit_Click(object sender, EventArgs e)
    {
        validateddl(ddlcourseuserful);
        validateddl(ddlcourseacquired);
        validateddl(ddlcoursegained);
        validateddl(ddlcourseequip);
        validateddl(ddlcourseequipfr);
        validateddl(ddlequipgained);
        validateddl(ddlcontact);
        validateddl(ddlhandouts);
        validateddl(ddlcertificate);
        validateddl(ddlReceipts);
        validateddl(ddldrinking);
        validateddl(ddlcatering);
        validateddl(ddltimetheory);
        validateddl(ddltimeequip);
        validateddl(ddltimeinform);
        if (!Page.IsValid)
        {
            Lblmsg.Text = "Some Details are not filled";
            return;
        }
    }
    protected void ddlcourseuserful_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcourseuserful.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcourseuserful", 0);
        }
        else
        {
            DataTable dt = new DataTable();
            dt = (DataTable)ViewState["Remarks"];
            try
            {
                //dt.Rows.RemoveAt(0);
                //ViewState["Remarks"] = dt;
                //gvnegative.DataSource = dt;
                //gvnegative.DataBind();
                for (int irow = 0; irow < dt.Rows.Count; irow++)
                {
                    //if (dt.Rows[irow][0].ToString().Trim() == TxtNegativeFeedback.Text)
                    if (ddlcourseuserful.SelectedItem.ToString() == "Excellent")
                    {
                        dt.Rows.RemoveAt(irow);
                        gvnegative.DataSource = dt;
                        gvnegative.DataBind();
                    }
                }
            }
            catch 
            {
                //Lblmsg.Text = ex.ToString();
                //return;
            }
                Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcourseacquired_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcourseacquired.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcourseacquired", 1);
        }
        else
        {
            // RemoveData();
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcoursegained_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcoursegained.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcourseacquired", 2);
        }
        else
        {
            // RemoveData();
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcourseequip_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcourseequip.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcourseequip", 3);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcourseequipfr_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcourseequipfr.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcourseequipfr", 4);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlequipgained_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlequipgained.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlequipgained", 5);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcontact_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcontact.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcontact", 6);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlhandouts_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlhandouts.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlhandouts", 7);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcertificate_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcertificate.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcertificate", 8);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlReceipts_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlReceipts.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlReceipts", 9);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddldrinking_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddldrinking.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddldrinking", 10);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddlcatering_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddlcatering.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddlcatering", 11);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddltimeinform_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddltimeinform.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddltimeinform", 14);
        }
        else
        {
             Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddltimetheory_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddltimetheory.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddltimetheory", 12);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void ddltimeequip_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (ddltimeequip.SelectedItem.ToString() == "Poor")
        {
            SetDropdowndetails("ddltimeequip", 13);
        }
        else
        {
            Pnlnegativefeedback.Visible = false;
        }
    }
    protected void Course_click(object sender, EventArgs e)
    {
        Equipments.CssClass = "initial";
        Adminstration.CssClass = "initial";
        Overall.CssClass = "initial";
        course.CssClass = "Clicked";
        Pnlnegativefeedback.Visible = false;
        MultiView1.ActiveViewIndex = 0;
    }
    protected void Equipments_click(object sender, EventArgs e)
    {
        Adminstration.CssClass = "initial";
        course.CssClass = "initial";
        Overall.CssClass = "initial";
        Equipments.CssClass = "Clicked";
        Pnlnegativefeedback.Visible = false;
        MultiView1.ActiveViewIndex = 1;
    }
    protected void Adminstration_click(object sender, EventArgs e)
    {
        Equipments.CssClass = "initial";
        Adminstration.CssClass = "Clicked";
        course.CssClass = "initial";
        Overall.CssClass = "initial";
        Pnlnegativefeedback.Visible = false;
        MultiView1.ActiveViewIndex = 3;
    }
    protected void Overall_Click(object sender, EventArgs e)
    {
        course.CssClass = "initial";
        Equipments.CssClass = "initial";
        Adminstration.CssClass = "initial";
        Overall.CssClass = "Clicked";
        Pnlnegativefeedback.Visible = false;
        MultiView1.ActiveViewIndex = 2;
    }
    protected void gvnegative_SelectedIndexChanged(object sender, EventArgs e)
    {
    }
    protected void gvfaculty_SelectedIndexChanged(object sender, EventArgs e)
    {
       
    }
    protected void Lstfaculty_SelectedIndexChanged(object sender, EventArgs e)
    {
        //foreach (object item in Lstfaculty.Items)
        //{
        //    string facname = item.ToString();
        //     ListViewItem  itemtoadd = new ListViewItem(facname)
        //     ListView1.Items.Add(itemtoadd);
        //}
    }
}
 
source code as follows
 
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Feed_Back.aspx.cs" Inherits="OnlineExamFeedBack_Feed_Back" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<%--<script type ="text/javascript">
    $(function () {
        var dvimage = $("<div/>");
        dvimage.attr("id", "dvimage");
        dvimage.css({ "Postion": "absolute" });
        $("body").append(dvimage);
    });
    $(".pic").live("mouseover", function (e) {
        var img = $(this)[0];
        var p = GetCordinates($(this)[0]);
        $("#dvimage").offset({ top: p.y + 50, left: p.x + 50 })
        $("#dvimage").html("<img src ='" + img.src + "'width ='300px' height = '300px'/>");
    });
       function GetCordinates(obj) {
           var p = {};
        p.x = obj.offsetleft;
        p.y = obj.offsettop;
        while(obj.offsetParent)
        {
        p.x = p.x + obj.offsetParent.offsetleft;
        p.y = p.y + obj.offsetParent.offsettop;
        if(obj == document.getElementsByTagName("body") [0])
        {
           break;
        }
        else
        {
          obj = obj.offsetParent;
          }
          }
          return p;
          }
   </script>--%>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script type = "text/javascript">
            $(function () {
    var dvImage = $("<div/>");
    dvImage.attr("id", "dvImage");
    dvImage.css({ "position": "absolute" });
    $("body").append(dvImage);
});
        $(".pic").live("mouseover", function (e) {
    var img = $(this)[0];
    var p = GetCordinates($(this)[0]);
    $("#dvImage").offset({ top: p.y + 50, left: p.x + 50 })
    $("#dvImage").html("<img src='" + img.src + "' width='300px' height='300px' />");
});
        $(".pic").live("mouseleave", function () {
    $("#dvImage").html('');
});
        function GetCordinates(obj) {
            var p = {};
            p.x = obj.offsetLeft;
            p.y = obj.offsetTop;
            while (obj.offsetParent) {
                p.x = p.x + obj.offsetParent.offsetLeft;
                p.y = p.y + obj.offsetParent.offsetTop;
                if (obj == document.getElementsByTagName("body")[0]) {
                    break;
                }
                else {
                    obj = obj.offsetParent;
                }
            }
            return p;
        }
  
    </script> 
    <asp:ScriptManager ID="scriptmanager1" runat="server">
    </asp:ScriptManager>
    <style type="text/css">
        body
        {
            background-color: White;
        }
        .modalBackground
        {
            background-color: Gray;
            filter: alpha(opacity=50);
            opacity: 0.7;
        }
        
        .tdHeader
        {
            background-image: linear-gradient(bottom, #f0d8d8 0%, #4d0a0a 100%);
            background-image: -o-linear-gradient(bottom, #f0d8d8 0%, #4d0a0a 100%);
            background-image: -moz-linear-gradient(bottom, #f0d8d8 0%, #4d0a0a 100%);
            background-image: -webkit-linear-gradient(bottom, #f0d8d8 0%, #4d0a0a 100%);
            background-image: -ms-linear-gradient(bottom, #f0d8d8 0%, #4d0a0a 100%);
            background-image: -webkit-gradient(	linear,	left bottom, left top,color-stop(0, #f0d8d8),
	            color-stop(1, #4d0a0a));
        }
    </style>
    <style type="text/css">
        .Initial
        {
            display: block;
            padding: 4px 18px 4px 18px;
            float: left;
            background: url("../Images/InitialImage.png") no-repeat right top;
            color: Black;
            font-weight: bold;
        }
        .Initial:hover
        {
            color: Blue;
            background: url("../Images/SelectedButton.png") no-repeat right top;
        }
        .Clicked
        {
            float: left;
            display: block;
            background: url("../Images/SelectedButton.png") no-repeat right top;
            padding: 4px 18px 4px 18px;
            color: Black;
            font-weight: bold;
            color: Blue;
        }
    </style>
    <div style="width="10%" align="center">
    <table width="10%" align="center">
    <tr>
       <td>
           <asp:Label ID="Lblmsg" runat ="server" Font-Bold="True" ForeColor="Red"></asp:Label> 
       </td>
    </tr>
    </table>
    </div>
    <div style="width: 858px">
        <table width="10%" align="center">
            <tr>
                <td>
                    <asp:Button Text="Course" BorderStyle="None" ID="course" CssClass = "Initial" runat="server"
                        OnClick="Course_click" />
                </td>
                <td>
                    <asp:Button Text="Equipments" BorderStyle="None" ID="Equipments" CssClass ="Initial" runat="server"
                        OnClick="Equipments_click" />
                </td>
                <td>
                    <asp:Button Text="Administration" BorderStyle="None" ID="Overall" 
                        CssClass = "Initial" runat="server"
                        OnClick="Overall_Click" />
                </td>
                <td>
                    <asp:Button Text="Overall" BorderStyle="None" ID="Adminstration" CssClass ="Initial"
                        runat="server" OnClick="Adminstration_click" />
                </td>                
            </tr>
        </table>
        
    </div>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <table style="width: 835px">
                <tr>
                    <td>
                        <asp:Label ID="Label12" runat="server" Text="Course" Font-Bold="True" ForeColor="Blue"></asp:Label>
                    </td>
                </tr>
               <tr>
                 <td class ="style1">
                 <asp:Label ID ="label51" runat="server" Font-Bold="True"
                    Text ="To what extent was this course useful"></asp:Label>
                 </td>
                  <td style="width: 138px">
                  <asp:DropDownList ID="ddlcourseuserful" runat="server" AutoPostBack="true" 
                          Width="160px" onselectedindexchanged="ddlcourseuserful_SelectedIndexChanged"></asp:DropDownList>
                          <br />
                          <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" InitialValue="---Select Grading---"
                            ControlToValidate="ddlcourseuserful" ErrorMessage="Select the Grading" Font-Bold="True"
                            ForeColor="Red"></asp:RequiredFieldValidator>--%>
                  </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label2" runat="server" Text="To What extent you acquired sufficient skills Knowledge"
                            Font-Bold="True"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcourseacquired" AutoPostBack="true" runat="server" Width="160px"
                            OnSelectedIndexChanged="ddlcourseacquired_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                      <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" InitialValue="---Select Grading---"
                            ControlToValidate="ddlcourseacquired" ErrorMessage="Select the Grading" Font-Bold="True"
                            ForeColor="Red"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label3" runat="server" Text="To What extent you gained confidence to use the actual equipments on board"
                            Font-Bold="True"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcoursegained" AutoPostBack="true" runat="server" Width="160px"
                          ValidationGroup="DDlGroup"  OnSelectedIndexChanged="ddlcoursegained_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" InitialValue="---Select Grading---"
                            ControlToValidate="ddlcoursegained" ErrorMessage="Select the Grading" Font-Bold="True"
                            ForeColor="Red"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <table style="width: 835px">
                <tr>
                    <td>
                        <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="Blue" Text="Equipments"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label5" runat="server" Font-Bold="True" 
                            Text="To What extent equipment is uptodate"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcourseequip" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlcourseequip_SelectedIndexChanged"
                            Width="160px">
                        </asp:DropDownList>
                        <br />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="ddlcourseequip"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label6" runat="server" Font-Bold="True" 
                            Text="To What extent equipment  is user friendly & well maintained"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcourseequipfr" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlcourseequipfr_SelectedIndexChanged"
                            Width="160px">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="ddlcourseequipfr"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label7" runat="server" Font-Bold="True" 
                            Text="To What extent were the practicals simulators Realistic"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlequipgained" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlequipgained_SelectedIndexChanged"
                            Width="160px">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="ddlequipgained"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
            </table>
        </asp:View>
       
       
        <asp:View ID="View4" runat="server">
            <table style="width: 835px">
                <tr>
                    <td>
                        <asp:Label ID="Label13" runat="server" Font-Bold="True" ForeColor="Blue" Text="Administration"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label14" runat="server" Font-Bold="True" 
                            Text="Contact communication -Phone/Email/Physical Presence"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcontact" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddlcontact_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                      <%--  <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="ddlcontact"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <%--<tr>
                    <td class="style1">
                        <asp:Label ID="Label15" runat="server" Font-Bold="True" Text="Fee Structure"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlfee" runat="server" AutoPostBack="true" Width="160px" 
                            onselectedindexchanged="ddlfee_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="ddlfee"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
                <%--<tr>
                    <td class="style1">
                        <asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Transport/Parking"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddltransport" runat="server" AutoPostBack="true" Width="160px">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="ddltransport"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label17" runat="server" Font-Bold="True" Text="Handouts"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlhandouts" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddlhandouts_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="ddlhandouts"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
               <%-- <tr>
                    <td class="style1">
                        <asp:Label ID="Label18" runat="server" Font-Bold="True" Text="Dress Code"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddldress" runat="server" AutoPostBack="true" Width="160px">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="ddldress"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label19" runat="server" Font-Bold="True" Text="Certification –Certificate, Collecting of individual records + photos prior commencement & completion of course"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcertificate" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddlcertificate_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="ddlcertificate"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label20" runat="server" Font-Bold="True" Text="Receipts"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlReceipts" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddlReceipts_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <%--<asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="ddlReceipts"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
               <%-- <tr>
                    <td class="style1">
                        <asp:Label ID="Label21" runat="server" Font-Bold="True" Text="Leave /Absence Penalties during course duration "></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlleave" runat="server" AutoPostBack="true" Width="160px">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="ddlleave"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>--%>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label22" runat="server" Font-Bold="True" 
                            Text="Drinking water, AC, Seating, Lighting"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddldrinking" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddldrinking_SelectedIndexChanged" 
                            ValidationGroup="DDlGroup">
                        </asp:DropDownList>
                        <br />
                       <%-- <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="ddldrinking"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label23" runat="server" Font-Bold="True" Text="Catering"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlcatering" runat="server" AutoPostBack="true" 
                            Width="160px" ValidationGroup="DDlGroup" onselectedindexchanged="ddlcatering_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="ddlcatering"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
            </table>
        </asp:View>
         <asp:View ID="View3" runat="server">
            <table style="width: 835px">
                <tr>
                    <td>
                        <asp:Label ID="Label8" runat="server" Font-Bold="True" ForeColor="Blue" 
                            Text="Overall"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label9" runat="server" Font-Bold="True" 
                            Text="Decision to have chosen HIMT"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddltimetheory" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddltimetheory_SelectedIndexChanged"
                            Width="160px" ValidationGroup="DDlGroup">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="ddltimetheory"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label10" runat="server" Font-Bold="True" 
                            Text="Value for course Fees & Time spent by student"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddltimeequip" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddltimeequip_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
<%--                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddltimeequip"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label11" runat="server" Font-Bold="True" 
                            Text=" Likehood of attending more courses at HIMT"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddltimeinform" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddltimeinform_SelectedIndexChanged"
                            Width="160px">
                        </asp:DropDownList>
                        <br />
              <%--          <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="ddltimeinform"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>--%>
                    </td>
                </tr>
            </table>
             <table>
                <tr>
                    <td>
                        <asp:Label ID="Label28" runat="server" Font-Bold="True" ForeColor="Blue" Text="How did you know HIMT"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:CheckBox ID="chadv" runat="server" Text="By Advertisement" Width="136px" />
                        <asp:CheckBox ID="chcourse" runat="server" 
                            Text="Done Course Before" Width="161px" />
                        <asp:CheckBox ID="chfriends" runat="server"
                            Text="From Freinds" Width="115px" />
                        <asp:CheckBox ID="chcompany" runat="server"
                            Text="By Company" Width="111px" />
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <asp:Label ID="Label29" runat="server" Font-Bold="True" ForeColor="Blue" Text="Overall comments"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtcom" runat="server" Font-Bold="true" ForeColor="Blue" Height="138px"
                            Text="" Width="838px"></asp:TextBox>
                    </td>
                </tr>
            </table>
            <asp:Panel ID="pnlPopup" runat="server" BackColor="White" BorderColor="Black" BorderStyle="Solid"
                BorderWidth="1px" Height="144px" Visible="true">
                <asp:GridView ID="gvfaculty" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
                    BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" Height="124px"
                    Width="91px"  AutoGenerateColumns="False" 
                    onselectedindexchanged="gvfaculty_SelectedIndexChanged">
                  <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        <Columns>
        <asp:BoundField DataField="Faculty Name" HeaderText="Faculty Name" />
        <asp:BoundField DataField ="FacultyID" HeaderText ="FacultyID" />
        <asp:BoundField DataField ="Imagess" HeaderText ="Imagess" />
        <asp:TemplateField>
        <ItemTemplate>
        <asp:Image ID = "image1" runat= "server" ImageUrl='<%#Eval("Imagess") %>' /> 
        </ItemTemplate>
        </asp:TemplateField>
        
        <%--<asp:ImageField HeaderText = "ImageUrl" DataImageUrlField ="ImageUrl"></asp:ImageField>--%>
        <%--<asp:TemplateField headertext = "Name">
        <ItemTemplate>
         <asp:LinkButton id="lnkname" runat="server" onclick="SetImage"  text ='<%#Eval("Name")%>'> commandArgument = '<%#Eval("Photo")%>'</asp:LinkButton>
        </ItemTemplate>
        </asp:TemplateField>--%>
        <%--<asp:TemplateField HeaderText="Photo">
        <ItemTemplate></ItemTemplate>
        </asp:TemplateField>
--%>
        <%--<asp:BoundField DataField ="Image" HeaderText="Image" />--%>
        <%--<asp:ImageField DataImageUrlField ="C:\Documents and Settings\admin\My Documents\My Pictures\Sarath.k.JPG"></asp:ImageField>--%>
       <%-- <asp:BoundField DataField = "Photo" HeaderText="Photo" />--%>
       
       <%--<asp:TemplateField>
          <ItemTemplate>
            <asp:Image ID="image1" CssClass="pic" style="cursor:pointer" height= "100" Width = "100"
             runat="server" ImageUrl = '<%#Eval( "ImageUrl" ) %>' />
         </ItemTemplate>
       </asp:TemplateField>--%>
        <asp:TemplateField HeaderText="1">
            <ItemTemplate>
                <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="-1">--Select Grading --</asp:ListItem>
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="2">
            <ItemTemplate>
                <asp:DropDownList ID="DropDownList2" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="-1">--Select Grading --</asp:ListItem>
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="3">
            <ItemTemplate>
                <asp:DropDownList ID="DropDownList3" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="-1">--Select Grading --</asp:ListItem>
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText = "4">
            <ItemTemplate>
                <asp:DropDownList ID="DropDownList4" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="-1">--Select Grading --</asp:ListItem>
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
          <asp:TemplateField HeaderText = "5">
            <ItemTemplate>
                <asp:DropDownList ID="DropDownList5" runat="server" AppendDataBoundItems="true">
                <asp:ListItem Value="-1">--Select Grading --</asp:ListItem>
                </asp:DropDownList>
            </ItemTemplate>
        </asp:TemplateField>
        </Columns>  
                </asp:GridView>
                <asp:ListBox ID="Lstfaculty" runat="server" Height="79px" Width="156px" 
                    onselectedindexchanged="Lstfaculty_SelectedIndexChanged">
                </asp:ListBox>
                <asp:ListBox ID="Lstfacid" runat="server" Height="79px" Width="156px"></asp:ListBox>
            </asp:Panel>
            <br />
            <br />
            <br />
             <asp:Panel ID="pnl" ScrollBars="Auto"  runat="server" BackColor="White" BorderColor="Black" BorderStyle="Solid"
                BorderWidth="1px" Height="144px" Visible="true">
                <asp:GridView ID="gvnegative" runat="server" BackColor="LightGoldenrodYellow" BorderColor="Tan"
                    BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None" Height="124px"
                    Width="201px" onselectedindexchanged="gvnegative_SelectedIndexChanged">
                    <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <FooterStyle BackColor="Tan" />
                    <HeaderStyle BackColor="Tan" Font-Bold="True" />
                    <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                    <SortedAscendingCellStyle BackColor="#FAFAE7" />
                    <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                    <SortedDescendingCellStyle BackColor="#E1DB9C" />
                    <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView>
                 s</asp:Panel>
        </asp:View>                
        <%--<asp:View ID="View5" runat="server">
            <table style="width: 835px">
                <tr>
                    <td>
                        <asp:Label ID="Label24" runat="server" Font-Bold="True" ForeColor="Blue" Text="OverAll Experience"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label25" runat="server" Font-Bold="True" Text="Decision to have chosen HIMT"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddldecision" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddldecision_SelectedIndexChanged"
                            Width="160px">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="ddldecision"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label26" runat="server" Font-Bold="True" Text="Value for course Fees & Time spent by studemt"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlvalue" runat="server" AutoPostBack="true" 
                            Width="160px" onselectedindexchanged="ddlvalue_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="ddlvalue"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="style1">
                        <asp:Label ID="Label27" runat="server" Font-Bold="True" Text="Feel like attending more course at HIMT"></asp:Label>
                    </td>
                    <td style="width: 138px">
                        <asp:DropDownList ID="ddlfeel" runat="server" AutoPostBack="true" Width="160px" 
                            onselectedindexchanged="ddlfeel_SelectedIndexChanged">
                        </asp:DropDownList>
                        <br />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="ddlfeel"
                            ErrorMessage="Select the Grading" Font-Bold="True" ForeColor="Red" InitialValue="---Select Grading---"></asp:RequiredFieldValidator>
                    </td>
                </tr>
            </table>
           
        </asp:View>--%>
    </asp:MultiView>
    <br />
    <asp:Panel ID="Pnlnegativefeedback" runat="server" BackColor="Bisque" 
        Width="320px" Height="203px" Visible="false"  >
        <table>
            <tr>                
                <td align="center" runat="server" style="cursor: pointer">
                    
                    <asp:Label ID="Label30" runat="server" Text="Negative_FeedBack" Font-Bold="true"
                        Font-Size="Medium"></asp:Label>
                </td>
            </tr>
            <br />
            <tr>
                <td colspan="2">
                                        
                    <asp:Label ID="Label32" runat="server" Text="Please give your suggestions" ForeColor="Blue"
                        Font-Bold="true"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:TextBox ID="TxtNegativeFeedback" runat="server" Height="75px" Width="303px"
                        Style="margin-left: 8px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center" colspan ="2">                    
                    <asp:Button runat="server" Text="Ok" ID="btnok" CausesValidation="false"  OnClick="btnok_Click" CssClass="tdHeader"
                        Width="57px" />
                     
                    <asp:Button runat="server" Text="Cancel" ID="btnCancel" OnClick="btnCancel_Click1"
                        CssClass="tdHeader" />
                </td>
            </tr>
        </table>
        <asp:HiddenField Value="" ID="hfnegativefeedback" runat="server" />
        <asp:HiddenField Value="" ID ="hffacid" runat= "server" />
    </asp:Panel>
    <table>
    <tr>
    <td>
    <asp:Button ID ="BtnSubmit" Text ="Submit" runat="server" 
            onclick="BtnSubmit_Click" />
    </td>
    </tr>
    </table>
     <tr>
          <td >
                <asp:Label ID="Label1" runat="server" Font-Bold="True" 
                    Text="BatchId:" Width="54px"></asp:Label>
            </td>
            <td colspan = "2"  >
                <asp:TextBox ID="txtbatchid" runat="server" Font-Bold="True" 
        Width="39px"></asp:TextBox>           
            </td>
        </tr>   
    <asp:HiddenField Value="" ID="HiddenField1" runat="server" Visible="False" />
    <asp:ModalPopupExtender Drag="true" PopupDragHandleControlID="tdHeader" DropShadow="true"
            PopupControlID="Pnlnegativefeedback" BackgroundCssClass="modalBackground" TargetControlID="HiddenField1"
            ID="ModalPopupExtender1" runat="server" CancelControlID="btnCancel">
        </asp:ModalPopupExtender>
</asp:Content>