Last post Aug 07, 2011 09:34 PM by Decker Dong - MSFT
Aug 03, 2011 10:46 PMfirstname.lastname@example.org|LINK
Relatively new to ASP.net
Using MS Studio 2008 with MS SQL 2005.
Working out of 3 Murach Books: ASP.net 3.5, C# 2008, SQL Server 2005.
I created a very basic database table in SQL server and was able to connect to website.
Problem: I am trying to create a datagridview control from a data source, but I don't have a datasource tab next to the toolbox.
When I drag the table onto the form, it binds, but I can't get the Data shema file or the Dataset class.
I want to create a table that with navigation buttons so I can Add, Delete, and Save.
If I can't get the Binding Navigator Control, Binding Source object, DataSet object, Table Adapter object, and Table Adapter Manager object, is there a Tutorial that I can use to build a form to add to my database?
I am also using a content page, but even if I do it in a separate website or project soloution, I still can't get the Data source tab.
Aug 04, 2011 08:18 AM|thaicarrot|LINK
Data Menu of VS Show data source or Shift+Alt+D.
Aug 04, 2011 01:22 PMemail@example.com|LINK
That didn't work.
Is it because I am trying to build a website rather than an application?
If I go into build an application, the datasource is available.
If I go to File - New website - ASP.net website , the datasource option is not available.
Is there a way to build a website and add: Update, delete, and add buttons to a content page that holds the database table?
Aug 05, 2011 09:48 AM|limno|LINK
The DataGridview is a control for window application. The control you may work with in ASP.NET is called GridView(upgraded from early version's DataGrid). Try to start from a new web project and see you can have all controls in your toolbox.
Aug 07, 2011 09:34 PM|Decker Dong - MSFT|LINK
I think you perhaps fixed "DataGrid" with "DataGridView". The first is the Windows Application element, while the latter is the element for asp.net. You cannot mix using them together.
For asp.net, DataGrid is not recommanded so GridView will be instead. Though you can find it by loading it from right-click the ToolBox, and choose "Items".
For Windows Application, DataGirdView is your choice.
Plz decide which to use in differnt kinds of platforms.