Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everybody


I want ask a question

I have two ASP.Net pages.

page 1 is Employees admin page and page 2 is Users admin page.

Employees page connect to Employee table and User page connect to User table.

for example we have user his name A, this user will be in both tables with different info except mobile number and id number.

so, when (the admin of employee page) change the mobile number of A , it should be changed too on the User table.

And if the (admin of user page) change the mobile number of A it should be changed too on the Employee table.

I hope my idea is clear, thanks
Posted
Updated 22-Sep-14 22:37pm
v2

1 solution

@new_value and @id are parameters you pass to the stored procedure / your DAL level / code which handles your database access. The query is simple update based on id.

SQL
UPDATE user_table
    SET mobile_number = @new_value
WHERE
    id = @id


If this helps, please take time to accept the solution so that others may find it. Thank you.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900