passing id to controller
Posted
by coure06
on Stack Overflow
See other posts from Stack Overflow
or by coure06
Published on 2010-05-19T08:03:42Z
Indexed on
2010/05/19
8:20 UTC
Read the original article
Hit count: 154
asp.net-mvc
|c#
I have 4-5 partial view files (.ascx) like
abc.ascx, cde.ascx, fgh.ascx.
I want to return different partial views based on the name of the view passed to url parameter like this
/someservice/abc will go to action someservice and will return abc.ascx partial view.
/someservice/cde will go to action someservice and will return cde.ascx partial view.
How can achieve this?
© Stack Overflow or respective owner