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!

populating an aspx page from sqlexpress

Status
Not open for further replies.

frmg

Technical User
Oct 31, 2008
2
US
I am using sqlexpress, asp.net and c#.
I have a database which I have been able to populate aspx pages with, but am not able to popluate the same aspx page with different data based on clicking a link.

I have created a table, (animals), which has a Primary Key column named animalID, and a column named descritipion, (dog, cat).
I would like to be able to pull this information into a web page called animals.aspx, based on which link is clicked.
If dog link is clicked, which is referenced in the animals table as animalID 1, and populate it with info for a dog. If cat is clicked, which is referenced in the table by animalID 2, then that data should be populated in the animal.aspx page
.
It looks like there are posts here that reference that it can be done, but not how to do it.

I have never programed anything before and just finished a class, (I was told that this was beyond the scope of the class, so I have been searching for help). I have been working at this for over a week and I am still not sure how to do this in c# or sql, so anything you can provide would be helpful.
 
so what exactly did they teach you?

I would recommend the following books:
Domain Driven Design (how to model your objects)
C# via CLR X.0 (anything and everything about C#)
Head First Design Patterns (common patterns and how to apply them)

Also research the SOLID design principles, these are key to any language.

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

Part and Inventory Search

Sponsor

Back
Top