ASP.Net Web Application.
Is it possible to access a JavaScript function located on the master page from a C# class function?
Below is a description of what I'm attempting to do...
When user clicks save button, database procedure called that returns value indicating if it was successful. This value is fed into a C# function which is located in a C# class file. This function determines if the save was successful and has two paths:
Successful Path: Store "Save Successful" in session variable. Call JavaScript function that momentarily displays the message that is stored in the session variable.
Failure Path: Reverse all changes made with this transaction number. Store "Save was unsuccessful" in session variable. Call JavaScript function to display message that is stored in the session variable.
I'd like to use JavaScript to display the message since I have the ability to do it neatly and without requiring the user to click a button.
Thanks for your help! :)