nate
03-05-2007, 02:15 PM
OK I am using this below:
Public Function ConfirmFood()
Dim Alert As New Label
Alert.Text = "<script language='vbscript'>" & _
vbNewLine & "Confirm(" & """" & "Do You want some food?" & """" & ")" & _
vbNewLine & "return true; </script>"
Page.Controls.Add(Alert)
End Function
How can I return the value? If I do this:
Public Function ConfirmFood()
Dim Alert As New Label
Alert.Text = "<script language='vbscript'>" & _
vbNewLine & "Confirm(" & """" & "Do You want some food?" & """" & ")" & _
vbNewLine & "return true; </script>"
Page.Controls.Add(Alert)
Return Alert
End Function
It errors out because Alert is a label. Please Help. Thanks
Public Function ConfirmFood()
Dim Alert As New Label
Alert.Text = "<script language='vbscript'>" & _
vbNewLine & "Confirm(" & """" & "Do You want some food?" & """" & ")" & _
vbNewLine & "return true; </script>"
Page.Controls.Add(Alert)
End Function
How can I return the value? If I do this:
Public Function ConfirmFood()
Dim Alert As New Label
Alert.Text = "<script language='vbscript'>" & _
vbNewLine & "Confirm(" & """" & "Do You want some food?" & """" & ")" & _
vbNewLine & "return true; </script>"
Page.Controls.Add(Alert)
Return Alert
End Function
It errors out because Alert is a label. Please Help. Thanks