Click here to Skip to main content
15,942,154 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an application form for student admission.
In this, there is a View (Index) in which it has 2 different forms using partial views. In case of a wrong input, the form is rendered invalid and the it should redirect to another page.
The redirection happens from the partial view functions, the output is not exactly what i want, i.e. its a view within a partial view within a View.
how to fix this?? please help....

1 solution

A partial view gets rendered inside another view. Your top view really needs to do the redirecting, otherwise you're redirecting to what gets rendered in your partial view, not your main view. You need to rethink your logic.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900