I'm trying to pass a server control to an .aspx page, if that is even possible. This process occurs through a VB subroutine that is run when I click on a linkbutton and all the fields are valid. This is the way I'm trying to put it in:
If (Page.IsValid) Then
feedbackLabel3.Text = "Page is Valid!"
newRecord.Text = "<TABLE>"
newRecord.Text += "<TR>"
newRecord.Text += "<TD class=BlackFont7 align=middle>"
newRecord.Text += "<ASP:LINKBUTTON id=RemoveLinkbutton runat=server>Remove</ASP:LINKBUTTON>"
newRecord.Text += "</TD>"
newRecord.Text += "<TD class=BlackFont7>"
newRecord.Text += CtrdlrBox.Text
newRecord.Text += "</TD>"
newRecord.Text += "<TD class=BlackFont7>"
newRecord.Text += MilesBox.Text
newRecord.Text += "</TD>"
newRecord.Text += "<TD bgcolor=white> </TD>"
newRecord.Text += "</TR>"
newRecord.Text += "</TABLE>"
Else
feedbackLabel3.Text = "Page is valid; NOT!"
End If
If there is a better way to do this, or any way to do this, let me know. JJ
"Ignorance and prejudice and fear walk hand in hand" - Witch Hunt, by Rush
If (Page.IsValid) Then
feedbackLabel3.Text = "Page is Valid!"
newRecord.Text = "<TABLE>"
newRecord.Text += "<TR>"
newRecord.Text += "<TD class=BlackFont7 align=middle>"
newRecord.Text += "<ASP:LINKBUTTON id=RemoveLinkbutton runat=server>Remove</ASP:LINKBUTTON>"
newRecord.Text += "</TD>"
newRecord.Text += "<TD class=BlackFont7>"
newRecord.Text += CtrdlrBox.Text
newRecord.Text += "</TD>"
newRecord.Text += "<TD class=BlackFont7>"
newRecord.Text += MilesBox.Text
newRecord.Text += "</TD>"
newRecord.Text += "<TD bgcolor=white> </TD>"
newRecord.Text += "</TR>"
newRecord.Text += "</TABLE>"
Else
feedbackLabel3.Text = "Page is valid; NOT!"
End If
If there is a better way to do this, or any way to do this, let me know. JJ
"Ignorance and prejudice and fear walk hand in hand" - Witch Hunt, by Rush