I'm looking to create a function that will show a Javascript-based notification. I already have the code for the notification, but I'm trying to encapsulate it in a class library as a function. However, I am unsure about what to return from the function. Any suggestions?
Shared Function PNotify(ByVal type As String, ByVal title As String, ByVal message As String) As String
Dim page As Page = HttpContext.Current.Handler
page.ClientScript.RegisterStartupScript(HttpContext.Current.GetType, "", "new PNotify({title: '" & title & "', text: '" & message & "', type: '" & type & "', styling: 'bootstrap3'});")
return ???
End Function