Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2004, 03:27 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default DataLayer

I have successfully created a "DataLayer" class. So far, I use it for DataReader purposes only. Now I want to send data to the data layer to update a table. The book I'm reading shows how to send data in the form of a query string but I don't want to use a query string.

Here is my guess: DataLayer.updateTable(value1, value2, etc...)

Any suggestions?

 
Old November 15th, 2004, 04:21 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Not sure what you mean, Stu.

Usually, you Import the DAL in the Code Behind of a page (or better yet, in a separate Business Layer class) and then call methods on it.

E.g.:

On Page PostBack:

BusinessLayer.UpdateClient(txtFirstName.Text, txtLastName.Text)

The BusinessLayer then creates a set of SQL params, and executes a Stored Procedure, for example.

Is this what you're looking for? If not, can you clarify what you mean??

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Hoops by The Chemical Brothers (Track 5 from the album: Come With Us) What's This?
 
Old November 15th, 2004, 04:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Yeah, I wasn't exactly sure but it looks like I guessed right:

"Here is my guess: DataLayer.updateTable(value1, value2, etc...)"

Thanks for your help.










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.