Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I can't start my day without this site!..."

Geography

Where in the world do Tek-Tips members come from?

newbie stored procedure parameter question

belocin (Programmer)
6 Mar 02 15:22
I'm very new to .net and I kinda jumped in after reading a few chapters in the dummies books. I have a question about where I put and what code I use to pass the value of a text box into a stored procedure.
Do I put it in the click sub of the button here is what I have right now
   Private Sub btnGetCust_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetCust.Click
        myComponent.FillDataSet(DsGetTConsumer1)
        DataGrid1.DataBind()
 End Sub
or do I put it somewhere in the in the component code?
Also what are some good online references for .net. I can never find anything on the msdn site.
Thanks in advance for the help
chiph (Programmer)
8 Mar 02 11:52
This is an architecture question, and a lot depends on who/what you're targeting your app for (i.e. intranet app, or a new Yahoo-sized site).

But on the whole, I try to keep the SQL out of the presentation layer.   I'd create a class library to hold all your data access code, and pass the results to the presentation layer in either custom objects, or XML.

Chip H.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close