Home > DeveloperSection > Forums > Required an alert of success or failure after form post
john rob

Total Post:108

Points:756
Posted on    September-01-2014 12:05 AM

 ASP.NET MVC
Ratings:


 1 Reply(s)
 745  View(s)
Rate this:

I have an input box and a html file uploader in my form. 

I want to submit the text of the input box and uploaded file which will be saved in database and then I need an success or failure alert in my html page. 

I've no idea how can I do this. I have already done the procedure of getting the post value and save it in database but I can't give any alert to my web page.net mvc3.

 I am using asp.net mvc3. Any kind of help will be appriciated.



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-01-2014 12:46 AM

Hi John, 
try this:

HttpContext.Current.Response.Write

                ("<script>alert('" + pageTable[page].Dequeue() + "');</script>");


Don't want to miss updates? Please click the below button!

Follow MindStick