To develop a code for the below requirement: 1)Create a GridView to display Employee table (first_name ,Last_name, Id) 2)For each row in the grid ,place a button "Exclude"inside the grid 3)On click of the button "Exclude" put include the Emplyee name in a excluded list. 4)Write a function which can exclude and include the name of the employees from the Grid. 5)On submit button click show the number of Employess included and excluded. ASPX Code <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Employee_Example.aspx.cs" Inherits="WebApplication1.Employee_Example" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:GridView ID="employeeGrid" runat="server" CellPadding...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Memory_understanding { class Reapting_elements { public void getfirstrepeatingelements(int[] arr) { int min = -1; int element=0; HashSet<int> set = new HashSet<int>(); for (int i = arr.Length-1; i >= 0; i--) { if(set.Contains(arr[i])) { min=i; element=arr[i]; ...
Comments
Post a Comment