Click here to Skip to main content
Sign Up to vote bad
good
See more: ASPVB.NET
i have a web application which is working perfectly fine. i have the following controls/buttons on each page; add record,edit record,search record,delete record. all the buttons works perfectly.
 
Now i have decided to add a search page(the landing page) where one has to check for existence of the record. one has to select the year(from dropdown) and enter an EmployNumber.if the employee exist it should display his firstname,surname,department,location in the textboxes below the page.if his other records for that year are not entered,one should be able to click add record button on the form and direct to other forms where you can add data for him without entering his name and employnumber for him.This should be the same for edit button.i want searching to be done once on search page rather than on each page
 
sample code will do me better
Posted 24 Jul '12 - 10:30
mayeso476

Comments
Wes Aday - 24 Jul '12 - 19:56
"sample code will do me better"... I am sure it would. You failed to mention how much you are paying for someone to write this code for you. Not that you will find anyone here that is going to do it.
mayeso - 25 Jul '12 - 0:43
i have seen sample codes here which were not paid for,its good to say somethings politely. am i the only one who asked for sample code? why are there so many sample codes on this site? its you who dont want,dont lead others into your thinking, its better sometimes to be quite if you dont want to help

2 solutions

Sorry but I was trying to be helpful on giving you ideas how to get it done... I had 5 minutes between working on projects and wasn't able to look up which one worked best for me.
 
One thing that worked in the past was to call a function on the MAIN Form from the Child Form and pass a variable or set of variables to a routine of what changed then take the updated variable details then update them in the routine in the main form.
  Permalink  
There are many ways to do it:
 
1. Declare a Global Variable on the Main Form which can be updated from the Child Form.
 
2. Use a temporary file to save and re-read the data... Not the best way.
 
3. Use the Windows Registry.
 
Option 1 above would be your best bet.
 
There are plenty of examples on how to do #1 on the web.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 300
1 Slacker007 240
2 Aarti Meswania 210
3 Ron Beyer 200
4 Mahesh Bailwal 186
0 Sergey Alexandrovich Kryukov 8,598
1 OriginalGriff 7,024
2 CPallini 3,668
3 Rohan Leuva 3,011
4 Maciej Los 2,343


Advertise | Privacy | Mobile
Web04 | 2.6.130516.1 | Last Updated 1 Aug 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid