I need to display a message to the user after submitting a form and include the ID received from the database in the message like this:
int reqid = getIDFromDatabase();
string scrp = "<script>alert('Your request has been submitted successfully with ID " + reqid.ToString() + "!');'</script>";
ScriptManager.RegisterStartupScript(this, GetType(), "alert", scrp, true);
I'm not sure why the script is not functioning properly.
AJAX features are being utilized on my page.