Can we have more than 1 partial classes in the same file?
Answer Posted / ssv_sathish
YES, basically, partial classes are meant for sharing or
working on different files. so you can have 2 partial
classes in the same file or different class declared as
partial in the same file, provided PUBLIC is the access
modifier.
Is This Answer Correct ? | 35 Yes | 4 No |
Post New Answer View All Answers
How do I use partial view?
Can you explain renderbody and renderpage in mvc?
What is Area in ASP.Net MVC?
What is the difference between viewbag and viewdata in mvc?
If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?
What are non action methods in mvc?
Explain what languages does the .net framework support?
What is Differnce between html.action and ajax.action?
What is the advantage of mvc?
What is the role of the jit compiler in .net framework?
What is Attribute Routing in ASP.Net MVC?
Mention some action filters which are used regularly in ASP.Net MVC?
What is the .net framework 3.0 (formerly winfx)?
When using razor views, do you have to take any special steps to protect your asp.net mvc application from cross site scripting (xss) attacks?
Why to use Html.Partial in ASP.Net MVC?