Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am working on a simple Asp.net project.
Nothing too fancy
simple
Front End -> asp.Net
Back End -> Sql Server 2005
hosted on a IIS V6.0

It is a simple Asp.net form based Employee Management System(Database Manipulation).

It uses session variables to store Employee-id(primary key) of the individual
1. who have logged in say "Employee-id"
2.& Of the employee that is being modified say "SelEmployeeid"

The update statement is written in the click event of an asp.net button,it picks up the primary key of the row to be updated from Session["SelEmployeeid"].

It has been working as expected for a while now, but recently it gave an issue !!!


Now the update statement instead of getting the Session["SelEmployeeid"] it somehow fetched Session["Employee-id"].
As a result of which the row with primary key "Employeeid" got modified instead of "SelEmployeeid"

Now this has happened just once and never before and never Since.

So I am curious to know where exactly could be the the glitch.
Posted
Comments
Thanks7872 3-May-13 3:25am    
use improve question link and post the code where you implemented this and getting issue.
Hemant Singh Rautela 3-May-13 5:08am    
I think you want, someone code for you...??

post your code where you stuck...
wizshrutz 4-May-13 1:25am    
I just wanted to know in theory , no code required

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



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