Welcome to Dream.In.Code
Become a VB.NET Expert!

Join 150,072 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 1,792 people online right now. Registration is fast and FREE... Join Now!




just a thought

 
Reply to this topicStart new topic

just a thought

cimpercee
21 Apr, 2008 - 01:45 AM
Post #1

D.I.C Head
**

Joined: 10 Aug, 2006
Posts: 127


My Contributions
Here's what im trying to do with the stored procedure


on the lower part of Stored procedure

AS
Insert Into Users(username,password)
Values('myusername','mypassword');

is there anyway that i could put it on textbox
and lower part of Stored P would look like

AS insert Into Users(username,password)
Values(@username,@password);

because executing the first SP would update my database with a username myusername and password with mypassword values.




on the passing of parameters on my text box goes like this


assume cmd sqlclient.sqlcommand

with cmd

.Parameters.AddWithValue(@username,textbox1.text)
.parameters.addwithValue(@password,textbox2.text)

all the commands but these 2 doesn't allow me to pass the value on my textbox to the stored procedure.

This post has been edited by cimpercee: 21 Apr, 2008 - 01:46 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 11:04PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month