Lecture – Adding Gridview to Input Screen 

Adding a Gridview to an Input Screen

This Gridview uses the code from Calling Stored Procedures from Visual Studio 1– it adds a text box that dynamically shows the contents of the database each time a user enters a new student.

Summary

Topics Covered in this Video;

-SQLdatasource
-Grid View
-Changing headers
-Rebinding

Video

Code

protected void btnSubmit_Click(object sender, EventArgs e)
{

SqlDataSource1.Select(DataSourceSelectArguments.Empty);
tbFirst.Text = string.Empty;
tbLast.Text = string.Empty;
GridView1.DataBind();

}