Redirecting to another page?
HI all,
just one quick question. I'm creating a site that allows the user to register a user name. If the desired username exists I want the same register page redisplayed with a message indicating "duplicate users" but i dont want to create a new register page. I want to redirect the user to the same register page and display a error message in that same register page. any suggestions.
thanks in advance
Re: Redirecting to another page?
Use a literal Control and set it's text to the message after you find that there is a duplicate. If there isn't a duplicate then redirect or load new controls.
Re: Redirecting to another page?
Write you registration code in the submit of the button, instead of redirecting the user to another page where u have your registration code. in the submit button itself you can first check if the username exists, if it does then set the text of a say label control to tell the user.