Popular posts from this blog
AWP SQL
A) Create a web application bind data in a multiline textbox by querying in another textbox. protected void Button1_Click(object sender, EventArgs e) { SqlConnection conn=new SqlConnection(); conn.ConnectionString="Data Source=COMP254;Initial Catalog=TYIT;Integrated Security=True"; //stringconnStr = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString; //SqlCommand cmd = new SqlCommand("Select Id,Name,Password from Login", conn); SqlCommand cmd = new SqlCommand(TextBox1.Text, conn); conn.Open(); SqlDataReader reader = cmd.ExecuteReader(); while (reader.Read()) { TextBox2.Text += reader["Id"].ToString() + " " + reader["Name"].ToString() + " " + reader["Password"].ToString() + "\n"; } reader.Close(); conn.Close(); } B) Create a web application to display records by using database. protected void Button1_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection(); conn...
LSA2
Practical 2: Storage devices and links, Backup and Repository A] Working with Storage devices and links: i) Working with Storage devices: fdisk -l : List out the partitions that have been made fdisk /dev/sda: To create a partition of /dev/sda Press m: for help a) Press n: For adding a new partition then press Enter. b) Press p: For primary partition then press Enter. partx -a: Add the specified partitions, or read the disk and add all partitions.
Comments
Post a Comment