Navigating a Database
-
-
Hi there, Data binding in web pages is different than it is in windows forms, you can take a look at the document Web Forms Data Binding[^] for more information . If you are not familiar with the ASP.NET stuff, you can get started with some tutorials: http://www.dotnetjunkies.com/quickstart/aspplus/doc/webdataaccess.aspx[^] http://msdn.microsoft.com/library/en-us/vbcon/html/vboridatabindinginwebformspages.asp[^]
-
Hi there, Data binding in web pages is different than it is in windows forms, you can take a look at the document Web Forms Data Binding[^] for more information . If you are not familiar with the ASP.NET stuff, you can get started with some tutorials: http://www.dotnetjunkies.com/quickstart/aspplus/doc/webdataaccess.aspx[^] http://msdn.microsoft.com/library/en-us/vbcon/html/vboridatabindinginwebformspages.asp[^]
I was still unable to find a way to increment and decrement my position in the database. I did this using windows form by first declaring a class level variable for the BindingManageBase object, BindingManagerBase bm; then assigning a table to it, bm = this.BindingContext[dataset1, "Records"]; and using the position property of the BindingManagerBase bm.Position ++; I want to do the same thing in ASP.NET. I searched through the recommended documentation as well as on google and msn but still can't find anything. Can someone help? Thanks.
-
I was still unable to find a way to increment and decrement my position in the database. I did this using windows form by first declaring a class level variable for the BindingManageBase object, BindingManagerBase bm; then assigning a table to it, bm = this.BindingContext[dataset1, "Records"]; and using the position property of the BindingManagerBase bm.Position ++; I want to do the same thing in ASP.NET. I searched through the recommended documentation as well as on google and msn but still can't find anything. Can someone help? Thanks.
AFAIK there is no class similar to the
BindingManagerBase
which is resposible for binding datasource to a web control. As I said earlier in the previous post, data binding in web pages is different than it is in windows forms, for example web forms data binding is read-only (one way), so if you want to achieve the same thing in an ASP.NET application, you must provide code to implement the logic, and there is no available data binding layer which is responsible for doing that for you like you see in windows forms. An example I found in the ASP.NET application looks similar to what you want is the paging in a datagrid web control. For example, at a time you can specify to make the grid to display the first 10 records of the datasource, to display the next 10 records you need to specify the new page index and bind the data source again to the control. Perhaps, there is a class which may help you to some extent, it's the PagedDataSource[^] class which basically helps the developer to perform paging on the data source If you are still not clear, can you be more specific about the current context of your ASP.NET application where you want to navigate through items of the data source.