Jag har en sida med en massa textboxar och dropdownlist, dessa värden lagrar jag i en databas. Efter att lagringen gjorts vill jag visa en MsgBox som talar om hur lagringen gick. Men HUR gör jag detta? har försökt att lägga dem i CodeBehind sidan men får felmeddelande ->
It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: It is invalid to show a modal dialog or form when the application is not running in UserInteractive mode. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
Koden är ->
If ok Then
MsgBox("Dokumentet är lagrat", OKOnly.Information)
Else
MsgBox("Något blev fel vid lagring", OKOnly.Critical)
End If
Har även försökt att lägga det på aspx-sidan genom att tilldela en hidden variabels value ett värde och sen gjort en if sats liknande den ovan men det funkar inte heller...
Hoppas att nån kan hjälpa mig!!
Det borde väl fungera att göra det i VB istället för i typ JavaScript?!?