Hello Friends,
I am using this ccode right now..
<%using (Html.BeginForm("SaveNewServiceTypeCategory","ServiceTypeCategory")){ %>
<table>
<tr>
<td>Service type category:</td>
<td style="padding-left:5px;">
<input type="text" id="txtNewServiceTypeCategory" name="txtNewServiceTypeCategory" style="width:400px;" maxlength="30" />
</td>
</tr>
<tr>
<td valign="top">Service type description:</td>
<td style="padding-left:5px;">
<textarea id="txtNewServiceTypeCategoryDesc" name="txtNewServiceTypeCategoryDesc" style="width:400px;" rows="3"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Save"/>
</td>
</tr>
</table>
<%} %>
But I need to display the Popup message when data added to the Database..
I wrote somethign like this
$(function () {
$('#form1').submit(function () {
$.ajax({
url: , how to give the URl here?
type: this.method,
data: $(this).serialize(),
success: function () {
alert("Saved Successfully!");
}
});
return false;
});
After saving need to display saved Successfully message to the User?
thanks });