.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 12th, 2004, 01:23 AM
Lisa Lisa is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Lisa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy stored data in 2 different table with 2 different stored procedure

Hi All,

I need some help with my problem. I need to be able to store 2 different data in 2 different tables same database.
I have a function called update button. When i clicked update, i need to be able to store (ItemID, Name and last name in 'Main' table,
and Property i need to save in 'property'Table. But i only allow to click update once so it will update both.

I dont know how to call 2 stored procedure in one function. I attach the code here. Thanks in advance.

PrivateSub UpdateBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles updateButton.Click,



If Page.IsValid = TrueThen

Dim propertyID AsString = ""

Dim propertyItem As ListItem

' loop through the CheckBoxList

ForEach propertyItem In companyproperty.Items

If propertyItem.Selected = TrueThen

propertyID = propertyID & propertyItem.Text '& ";"

EmployeesBiz.AddProperty(propertyID) -----> i tried to call it here but it wont work( EmployeeBiz is my vb code, addproperty is my stored procedure)

EndIf

Next

Try

' Update the Employee information within the Employees table

EmployeesBiz.UpdateEmployee(itemId, FirstNameField.Text, LastNameField.Text)

' Redirect back Response.Redirect(CType(ViewState("UrlReferrer"), String))

Catch exc As Exception

lblError.Text = "Update failed. Please check the values you entered. (" & exc.Message.ToString() & ")"

EndTry

EndIf

EndSub


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgramming.NET Development > stored data in 2 different table with 2 different stored procedure


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT