Author: robert84 | Posted on: 11/27/2008 9:45:46 AM | Views : 852

Hi everyone
 I have a prob! i hope you can help.
 
long story short - im making a register page for my site. the user enters a username and password and then clicks the submit button which runs a sub routine to check that the username is available for use...
 My problem is that my sub routine appears to running twice.
i click submit and the username (which i know is available to register with) is submitted to the DB, but i then also get the error messages i have set up saying that the username is not available. I know that the subroutine is running twice as i have set up points in the process to display the variables on screen, and all these variables are being displyed twice.
has anyone had a similar problem? and do you think it could be to do with the postback? i didnt think the post back would affect it as the subroutine is only ran when the button is clicked, not on the page load. im on asp.net 2.0
 Thanks for any hel ...

Go to the complete details ...