Modal Pop Up in mvc 5 [closed]
I want to open modal window when user click create new link.
Mvc automatically generates create view in default but it open in another page. I want it to load in Bootstrap pop-up
asp.net-mvc entity-framework bootstrap-modal
closed as off-topic by haim770, jhpratt, Alessandro Da Rugna, Graipher, avismara Jan 24 at 8:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Graipher, avismara
If this question can be reworded to fit the rules in the help center, please edit the question.
add a comment |
I want to open modal window when user click create new link.
Mvc automatically generates create view in default but it open in another page. I want it to load in Bootstrap pop-up
asp.net-mvc entity-framework bootstrap-modal
closed as off-topic by haim770, jhpratt, Alessandro Da Rugna, Graipher, avismara Jan 24 at 8:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Graipher, avismara
If this question can be reworded to fit the rules in the help center, please edit the question.
3
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52
add a comment |
I want to open modal window when user click create new link.
Mvc automatically generates create view in default but it open in another page. I want it to load in Bootstrap pop-up
asp.net-mvc entity-framework bootstrap-modal
I want to open modal window when user click create new link.
Mvc automatically generates create view in default but it open in another page. I want it to load in Bootstrap pop-up
asp.net-mvc entity-framework bootstrap-modal
asp.net-mvc entity-framework bootstrap-modal
edited Jan 21 at 6:05
Vlădel
1751212
1751212
asked Jan 20 at 15:30
SamanSaman
54
54
closed as off-topic by haim770, jhpratt, Alessandro Da Rugna, Graipher, avismara Jan 24 at 8:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Graipher, avismara
If this question can be reworded to fit the rules in the help center, please edit the question.
closed as off-topic by haim770, jhpratt, Alessandro Da Rugna, Graipher, avismara Jan 24 at 8:57
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions seeking debugging help ("why isn't this code working?") must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Questions without a clear problem statement are not useful to other readers. See: How to create a Minimal, Complete, and Verifiable example." – Graipher, avismara
If this question can be reworded to fit the rules in the help center, please edit the question.
3
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52
add a comment |
3
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52
3
3
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52
add a comment |
1 Answer
1
active
oldest
votes
Please Use below example.
Button/Link, Here I am take button
<button type="button" name="btnLink" id="btnLink">Open Pop</button>
Model Pop : put ending of the page
<div class="modal fade" id="ModalPopUp" role="dialog">
<div class="modal-dialog err-pop" style="">
<div class="modal-content">
<div class="modal-header">
<button id="DivClose" type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="text-align:center;">
Put Your Html Element Here
</div>
</div>
</div>
Script:
<script src="https://code.jquery.com/jquery-1.10.0.min.js"
integrity="sha256-2+LznWeWgL7AJ1ciaIG5rFP7GKemzzl+K75tRyTByOE="
crossorigin="anonymous"></script>
<script>
$("#btnLink").click(function () {
$('#ModalPopUp').modal('show');
})
</script>
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
|
show 3 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please Use below example.
Button/Link, Here I am take button
<button type="button" name="btnLink" id="btnLink">Open Pop</button>
Model Pop : put ending of the page
<div class="modal fade" id="ModalPopUp" role="dialog">
<div class="modal-dialog err-pop" style="">
<div class="modal-content">
<div class="modal-header">
<button id="DivClose" type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="text-align:center;">
Put Your Html Element Here
</div>
</div>
</div>
Script:
<script src="https://code.jquery.com/jquery-1.10.0.min.js"
integrity="sha256-2+LznWeWgL7AJ1ciaIG5rFP7GKemzzl+K75tRyTByOE="
crossorigin="anonymous"></script>
<script>
$("#btnLink").click(function () {
$('#ModalPopUp').modal('show');
})
</script>
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
|
show 3 more comments
Please Use below example.
Button/Link, Here I am take button
<button type="button" name="btnLink" id="btnLink">Open Pop</button>
Model Pop : put ending of the page
<div class="modal fade" id="ModalPopUp" role="dialog">
<div class="modal-dialog err-pop" style="">
<div class="modal-content">
<div class="modal-header">
<button id="DivClose" type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="text-align:center;">
Put Your Html Element Here
</div>
</div>
</div>
Script:
<script src="https://code.jquery.com/jquery-1.10.0.min.js"
integrity="sha256-2+LznWeWgL7AJ1ciaIG5rFP7GKemzzl+K75tRyTByOE="
crossorigin="anonymous"></script>
<script>
$("#btnLink").click(function () {
$('#ModalPopUp').modal('show');
})
</script>
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
|
show 3 more comments
Please Use below example.
Button/Link, Here I am take button
<button type="button" name="btnLink" id="btnLink">Open Pop</button>
Model Pop : put ending of the page
<div class="modal fade" id="ModalPopUp" role="dialog">
<div class="modal-dialog err-pop" style="">
<div class="modal-content">
<div class="modal-header">
<button id="DivClose" type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="text-align:center;">
Put Your Html Element Here
</div>
</div>
</div>
Script:
<script src="https://code.jquery.com/jquery-1.10.0.min.js"
integrity="sha256-2+LznWeWgL7AJ1ciaIG5rFP7GKemzzl+K75tRyTByOE="
crossorigin="anonymous"></script>
<script>
$("#btnLink").click(function () {
$('#ModalPopUp').modal('show');
})
</script>
Please Use below example.
Button/Link, Here I am take button
<button type="button" name="btnLink" id="btnLink">Open Pop</button>
Model Pop : put ending of the page
<div class="modal fade" id="ModalPopUp" role="dialog">
<div class="modal-dialog err-pop" style="">
<div class="modal-content">
<div class="modal-header">
<button id="DivClose" type="button" class="close" data-dismiss="modal">×</button>
</div>
<div class="modal-body" style="text-align:center;">
Put Your Html Element Here
</div>
</div>
</div>
Script:
<script src="https://code.jquery.com/jquery-1.10.0.min.js"
integrity="sha256-2+LznWeWgL7AJ1ciaIG5rFP7GKemzzl+K75tRyTByOE="
crossorigin="anonymous"></script>
<script>
$("#btnLink").click(function () {
$('#ModalPopUp').modal('show');
})
</script>
answered Jan 21 at 5:34
AzharAzhar
1197
1197
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
|
show 3 more comments
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
@Salman if you have any issue ask me.
– Azhar
Jan 21 at 5:37
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
Azhar it is working. thank you. but i want default create view inside the that pop up can you help for that. from index page to call add new page inside that pop up
– Saman
Jan 21 at 10:00
please share create page code
– Azhar
Jan 21 at 10:03
please share create page code
– Azhar
Jan 21 at 10:03
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
Azhar thank you for support. i did it my self. now it's working
– Saman
Jan 21 at 10:09
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
i need help content load to modal but when i click save it not saving.
– Saman
Jan 21 at 10:39
|
show 3 more comments
3
You should have posted at least minimum code that you have tried.
– TanvirArjel
Jan 20 at 16:31
I'm new to mvc. I tried so many codes.i deleted those codes. i need statrt scratch
– Saman
Jan 20 at 16:52