The following gives me an error of \"The server tag is not well formed\"
-
The problem is the binding nugget and the use of single and double quotes.
Delete
Then on the code-behind add the function...
Public Function CreateConfirmation(ByVal Username As String) As String
Return String.Format("return confirm('Are you sure you want to delete {0}?');", Username)
End Function
When the binding nugget is used as the value for an attribute, you'll note you have to use single quotes. Your script also needed quotes for the embedded string parameter to the confirm function. You basically ran out of quotes.
- 热议问题