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
http://online1.daytonastate.edu/player2.php?id=24e27b869b66e9e62724bd7725d5d9c1
Code
protected void btnSubmit_Click(object sender, EventArgs e)
{
SqlDataSource1.Select(DataSourceSelectArguments.Empty);
tbFirst.Text = string.Empty;
tbLast.Text = string.Empty;
GridView1.DataBind();
}
|
|
Comments (0)
You don't have permission to comment on this page.