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


Please Help Members By Posting Answers For Below Questions

How do I use partial view?

523


Can you explain renderbody and renderpage in mvc?

573


What is Area in ASP.Net MVC?

604


What is the difference between viewbag and viewdata in mvc?

524


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

1966






What are non action methods in mvc?

538


Explain what languages does the .net framework support?

510


What is Differnce between html.action and ajax.action?

550


What is the advantage of mvc?

606


What is the role of the jit compiler in .net framework?

618


What is Attribute Routing in ASP.Net MVC?

584


Mention some action filters which are used regularly in ASP.Net MVC?

538


What is the .net framework 3.0 (formerly winfx)?

541


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?

687


Why to use Html.Partial in ASP.Net MVC?

594