hi, having problems here with trying to take text from a gridview cell and paste it into another textbox on the page... the code is this:
This code puts the text from the cell into the textbox ok but when I hit a button to carry out an operation of the textbox then the regular expression validator kicks off saying 'please enter text only'. My RegEx is correct so that isn't the problem. Am I just pasting the text into the textbox as the wrong format or something? Very weird
Code:
If cb IsNot Nothing AndAlso cb.Checked Then
' Get the cell(5) value for the selected row
Dim cellValue As String = row.Cells(5).Text
' Copy text into textbox.
txtImageMatch.Text = cellValue
End If
This code puts the text from the cell into the textbox ok but when I hit a button to carry out an operation of the textbox then the regular expression validator kicks off saying 'please enter text only'. My RegEx is correct so that isn't the problem. Am I just pasting the text into the textbox as the wrong format or something? Very weird