---
title: "Required an alert of success or failure after form post"  
description: "Required an alert of success or failure after form post"  
author: "Anonymous User"  
published: 2014-09-01  
updated: 2014-09-01  
canonical: https://www.mindstick.com/forum/2216/required-an-alert-of-success-or-failure-after-form-post  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc", "mvc4", "Required an alert", "Required an alert of success or failure"]  
reading_time: 1 minute  

---

# Required an alert of success or failure after form post

I have an [input](https://www.mindstick.com/forum/159209/how-can-i-read-convert-an-input-stream-into-a-string-in-java) box and a html file uploader in my form.

I want to submit the text of the input box and [uploaded file](https://www.mindstick.com/forum/137/how-to-check-uploaded-file-type-using-asp-dot-net) which will be saved in [database](https://www.mindstick.com/articles/12226/use-of-database-in-sencha-extjs-and-insert-record-from-user-form-using-ajax) and then I need an [success](https://www.mindstick.com/articles/12957/best-tips-to-make-your-ghostwriting-experience-a-success) or [failure](https://yourviews.mindstick.com/audio/1250/why-failure-is-the-first-step-to-growth) [alert](https://answers.mindstick.com/qa/30927/what-is-an-alert) in my html page.

I've no idea how can I do this. I have [already](https://yourviews.mindstick.com/view/88453/the-hidden-ways-ai-is-already-controlling-your-daily-life) done the [procedure](https://www.mindstick.com/forum/32/stored-procedure-return-datatype) of getting the post [value](https://www.mindstick.com/articles/23219/an-optimized-description-adds-value-to-experience-and-in-turn-effectively-guest-posting-packages) and save it in database but I can't give any alert to my web page.net mvc3.

I am using [asp.net](https://www.mindstick.com/articles/934/default-folders-available-inside-the-asp-dot-net-application-folder) mvc3. Any kind of help will be appriciated.

## Replies

### Reply by Sumit Kesarwani

Hi John, try this:

HttpContext.Current.Response.Write

("<script>alert('" + pageTable[page].Dequeue() + "');</script>");


---

Original Source: https://www.mindstick.com/forum/2216/required-an-alert-of-success-or-failure-after-form-post

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
