|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Please take some to time read this and give me the solution....
I have 7 screens for my web application. Each screen has its stored proceedure with parameters which is different with other screen.Also every srceen has save button which onclicking will add or update the corresponding screen information into the database. Now my problem is since every screen has save button i have to write one function 'save' which i can call always when i click save button which can handle add or update Make a note every screen has different stored procedure with diff parameters Give me solution Thanking in advance |
|
#2
|
|||
|
|||
|
What's wrong with a different save procedure on each form, written to handle the parameters for that form.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
seperate function
i wrote save function for each form
and its working fine but my lead said" u can write it as one component for all forms" Any idea on how doing it waitng for the solution urgent Thanx and Regards Sony |
|
#4
|
||||
|
||||
|
well... it really depends on how your database is setup and exactly what information is in each screen.
He's right, it can be made very general so that just about anything can be added, then that code becomes more re-usable latter on in the project... but with the information you've given us so far, it's hard to know what you need -mwalts |
|
#5
|
|||
|
|||
|
suppose Emp department form has department details,so now user can add or edit the department table using this form(associated with department stored procedure has 4 parameters)
similarly Emp Group etc....(associated with group stored procedure has 6 parameters) For now i wrote save function for all individually one save() for one form Now accoding to my leader i have to use one save() for both forms i think now u got that Sony |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Write one function for all..... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|