On partial View , when I click on submit button, I have data that must be displayed in this partial view!
but when I click on , a new page (X-Requested-With=XMLHttpRequest) is displayed containing labels and textboxes and button submit (of the partial view)
marwa580
Member
18 Points
51 Posts
Re: Partial View, javascript
Nov 29, 2012 12:37 AM|LINK
On partial View , when I click on submit button, I have data that must be displayed in this partial view!
but when I click on , a new page (X-Requested-With=XMLHttpRequest) is displayed containing labels and textboxes and button submit (of the partial view)
Young Yang -...
All-Star
21343 Points
1818 Posts
Microsoft
Re: Partial View, javascript
Nov 29, 2012 02:17 AM|LINK
You've forgot reference jquery.unobtrusive-ajax.js, add this line in the index view:
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>Hope this helpful
Regards
Feedback to us
Develop and promote your apps in Windows Store
marwa580
Member
18 Points
51 Posts
Re: Partial View, javascript
Nov 29, 2012 02:31 AM|LINK
when I click on the link of view, a partial view is displayed
but in this partial view I have a button submit, when I click on I must have data showed !
With this code, when I click on button, it redirect me vers anoter page (X-Requested-With=XMLHttpRequest)
(I tried to insert reference jquery.unobtrusive-ajax.js) but nothing is changed
marwa580
Member
18 Points
51 Posts
Re: Partial View, javascript
Nov 29, 2012 03:31 PM|LINK
I need help please !
marwa580
Member
18 Points
51 Posts
Re: Partial View, javascript
Nov 29, 2012 06:14 PM|LINK
So ??
marwa580
Member
18 Points
51 Posts
Re: Partial View, javascript
Nov 29, 2012 10:42 PM|LINK
no answer ?
ashoksudani
Participant
1043 Points
213 Posts
Re: Partial View, javascript
Nov 30, 2012 05:48 AM|LINK
@Model @model MvcApplication.Models.GrdDSModel <script> alert("This is Partial View"); </script> <div> THIS IS PARTIAL VIEW </div>and i open partial view using following code in my view
@Html.Partial("TestP");