How to use server controls in Asp.net MVC with c#
how to use server controls in asp.net mvc.
Controls like : dropdown, grid etc...
please give me a refernece or a sample.
Is postback is supports? in mvc.
and also please provide a reference link for advance level of asp.net mvc. and M开发者_C百科VC Projects
answer is : you can't. refer to basic asp.net mvc article and try to understand the difference the mvc stands for before movign into advanced level.
this might be a good starting point. and these tutorials are pretty good too.
and no- postbacks are not supported.
You shouldn't be using server controls in MVC. You can just about, but it's entirely the wrong model.
When you ask are postbacks supported, the answer is yes & no. A post back is just a post to the server, so yes, you can see that request and respond. However the complex event handling present in webforms isn't supported. Controllers won't raise events, and views don't have code behinds.
It's better to use the MVC way of generating drop-downs, grids etc.
精彩评论