Aarthi
05-11-2005, 09:58 AM
Hi folks,
I have 2 pages to add new users and delete existing users. I form the UI for the user addition and deletion separately...i.e UIuseradd.asp and UIuserdel.asp..and then redirect the page to a page called usermanager.asp where i check whether the user exists or not. If the user does'nt exist, I add the new user. Otherwise, i say "user exists".
I do this in an if-else condition in the usermanager.asp. what's happening is that recordcount before addition of a new record(user) is 0.so record is getting added but control is also going to else condition. Therefore, the msg "user exists" also gets printed.
I don't know y this happens..can anyone help me on this?
I have 2 pages to add new users and delete existing users. I form the UI for the user addition and deletion separately...i.e UIuseradd.asp and UIuserdel.asp..and then redirect the page to a page called usermanager.asp where i check whether the user exists or not. If the user does'nt exist, I add the new user. Otherwise, i say "user exists".
I do this in an if-else condition in the usermanager.asp. what's happening is that recordcount before addition of a new record(user) is 0.so record is getting added but control is also going to else condition. Therefore, the msg "user exists" also gets printed.
I don't know y this happens..can anyone help me on this?