Click here to Skip to main content
11,479,486 members (54,871 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP VB.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 11:30am
mayeso656
Comments
Wes Aday at 24-Jul-12 19:56pm
   
"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 at 25-Jul-12 0:43am
   
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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
v3

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

  Print Answers RSS
0 OriginalGriff 240
1 Sergey Alexandrovich Kryukov 215
2 F-ES Sitecore 185
3 Richard MacCutchan 130
4 Frankie-C 104
0 Sergey Alexandrovich Kryukov 7,890
1 OriginalGriff 7,441
2 Sascha Lefèvre 3,064
3 Maciej Los 2,491
4 Richard Deeming 2,335


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100