Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data navigator 1

Status
Not open for further replies.

Saturn57

Programmer
Aug 30, 2007
275
CA
Im new at trying to create a web page and i can't seem to figure out how to create a from connected to a database with a data navigator. How do I add a navigator
 
What is a Data Navigator? I'm not aware of any controls with that name. Also, you can't create a web page that is "connected" to a database as internet applications are stateless.

If you are wanting to read data from a database and write the results out to your web page, consider using a DataReader or DataTable object and then either binding them to a data control, or access the values directly and write them out to the web page.

Some simple examples are:






Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
I have been programing windows applications where you can have a data navigator on the page that will allow you to step through existing records, add new records or delete records in a database using a menu bar with arrow buttons, add bottons etc...Is there anything similar in web design.
 
In windows applications you can maintain a connection to the database, in web applications that connection is lost as the client simply receives some HTML. The closest you will get is to retrieve the data and then bind the results to a data control such as a ListView, FormView, Repeater etc and adding paging to the control.

Mark,

[URL unfurl="true"]http://lessthandot.com[/url] - Experts, Information, Ideas & Knowledge
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Website Design
[URL unfurl="true"]http://aspnetlibrary.com[/url] - An online resource for professional ASP.NET developers
 
You can use AJAX and create your own control that will make it "seem" like a windows app, but as Mark said, web apps are disconnected. So, you will have to open a connection, do your data thing, then close the connection for each action you take.
 
if you new to web application development i would avoid the webforms model of creating webpages in favor of an mvc approach. MS has the MSMVC framework. castle MonoRail has been around since the beginning of .Net. FUBU MVC is a new project on google code which also looks promising. the MVC architecture provides a cleaner separation between presentation and logic. webforms distorts the concerns buy putting everything (presentation, domain, database, etc) in the markup and code behind.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
mvc is a concept with separates the concerns of the model, view and controller. it is not language specific, although just about every language has an implementation of it.

VS is just a GUI to write code. this shouldn't be confused with a tool that provides frameworks.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top