Hello,
When a person subits my web page, I do a simple check (validation) and if
there are any errors, I create a variable (strValidateTex t) and set that
value to a label on the form. What I am trying to do create an image button
along with the html. I am getting the error: Operator '&' is not defined
for types 'String' and 'System.Web.UI. WebControls.Ima geButton'.
Sub Submit_Click(By Val Src As Object, ByVal Args As CommandEventArg s)
If Trim(Me.ddlRequ estType.Selecte dItem.Text) = "None Selected" Then
Dim ibRequestType As ImageButton = New ImageButton
ibRequestType.O nClientClick = "txtServicesTer minationCount.f ocus()"
ibRequestType.I mageUrl = "../../images/art_dbflash_go. jpg"
strValidateText = _
"<tr>" & _
"<td width=200 class=sckArial_ BlkB08><div align=left>Requ est Type
DropDown </div></td>" & _
"<td width=400 class=sckArial_ BlkM08><div align=left>Plea se select a
Request Type." & _
ibRequestType & </div></td></tr>"
strValidateForm = "Validation Error"
End If
End Sub
If strValidateForm = "Validation Error" Then Me.lblValidateF orm.Text =
strValidateText
End Sub
--
Thanks in advance,
sck10