codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  user name suggestion code sample?  Stryker at 20:54 on Wednesday, October 06, 2004
 

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.



  Re: user name suggestion code sample?  Yusairi at 03:29 on Thursday, October 07, 2004
 

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.




© Copyright codetoad.com 2001-2005