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.









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  validation of two text fields on a search page
•  validation of two text fields on a search page
•  Re: iframe targeting
•  Re: javascript to validate an entry is in URL format.
•  How to retrieve file from hard disk and display on a list?
•  Isolating Memory Leaks
•  DirectShow: Help me debug please
•  DirectShow: Help me debug please
•  How to dynamically create a calendar when I click a button?


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005