asp prct7
asp prct7
asp prct7
cs
namespace prct7
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
SqlConnection conn = new SqlConnection(@"Data Source=DELL-BM\SQLEXPRESS;Initial
Catalog=college;Integrated Security=True;TrustServerCertificate=True");
}
}
//MenuForms.cs sourcecode
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Microsoft.Data.SqlClient;
namespace prct7
{
public partial class MenuForms : Form
{
public MenuForms()
{
InitializeComponent();
}
SqlConnection conn = new SqlConnection(@"Data Source=DELL-BM\SQLEXPRESS;Initial
Catalog=student;Integrated Security=True;TrustServerCertificate=True");
// Execute the query and check how many rows were affected
int rowsAffected = cmd.ExecuteNonQuery();
If we click on login bu on
Now click on ok
If we click on submit bu on
Click ok
Now our informa on is saved in student1 table in Student Database
If we click on clear bu on