|
Hi there, I'm new to this so sorry if this is very basic stuff.. I'm looking for help with two things.
I want to add some code to my asp.net app that generates usernames when one is already taken. ie. JSmith is already taken, perhaps try SmithJ or JSmith2389
could someone provide me with a link to some sample code similar to this?
Also i'm trying to send a username and password to another page via response.redirect.. can someone give me a basic explanation (or a link) on how to send two variables to another page, then retrieve and display them on the new page? thanks again.
|
|
|
hi Stryker,
if you want to generate sample/suggested userid for
userid that already taken, maybe you can put 3 sample
userid which first you set abc1978 (the birth year),
abc1234, abc_abc, just give that simple suggestion to
the user on his/her userid. make sure on each your
suggestion userid needed to be check on database wether
it had been used or not. or else, let them decide or they
can set again their own userid.
about reponse.redirect matter to past a value.
just put code something like this :-
<%
tempValue = "hello world !!!"
response.redirect "/forum/test_value_.html" & tempValue
%>
then on test.asp file, you can retrieve by using this
sample code below :-
<%
receiveValue = Request.QueryString("value")
response.write receiveValue
%>
good luck.
|
|
|
|
|
|
|
|
|
|