user3344394
user3344394

Reputation: 81

success message afer submit an html form

I have a simple html form like:

<form id="form1" method="post" target="_self">
<input type="text" name="lastname">
<input type="submit" value="Register" />
<form>

I want to replace the whole of this same page with just a success message from the server, which will also show 'lastname' that was send. Is there a simple way to do it with from the server side? (asp.net forms application)

Thanks a lot

Liron

Upvotes: 0

Views: 71

Answers (1)

Akram Khan
Akram Khan

Reputation: 124

For message and lastname you can pass a query string and display message and another way to submit form using ajax call.

Upvotes: 1

Related Questions