Concatonation and randon number generation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

can someone tell me how i would concatonate two values obtained from 2 different textboxes

i.e what i want to do is. Concatonate the first letter of a persons firstname with the full surname and then concatonate this with a random number

Th2 firstname and surname are obtained from textboxes on my interface
this concatonation will have to be done on the onclick event of a submit button

I will then want to put the contents of this variable into a column of another datatable.

Thats my plan any way :o
Any help on this concatonation would be appreciated

thx
 
Take a look at this code (VB.NET)

Dim r As New Random
Dim rNumber As Integer = r.Next(1, 10)
Dim s As String = TextBox1.Text & TextBox2.Text & rNumber.ToString

If you need more info, please let us know!

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Angelina said:
Hi,

can someone tell me how i would concatonate two values obtained from 2 different textboxes.

i.e what i want to do is. Concatonate the first letter of a persons
firstname with the full surname and then concatonate this with a random
number.
 
Take a look at this code (VB.NET)

Dim r As New Random
Dim rNumber As Integer = r.Next(1, 10)
Dim s As String = TextBox1.Text & TextBox2.Text & rNumber.ToString

If you need more info, please let us know!

--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Angelina said:
Hi,

can someone tell me how i would concatonate two values obtained from 2 different textboxes.

i.e what i want to do is. Concatonate the first letter of a persons
firstname with the full surname and then concatonate this with a random
number.
 
Back
Top