hello,
Can we use aspx controls in mvc behalf of html helpers? If yes then how can it implements?
Please anyone can clear my confusion....regarding this....
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 17, 2014, 10:16 PM EDT
Hi,
you cannot use asp.net server control with MVC application because most of them are use viewstate and postback model which is not supported by MVC. These serverside control rely on the post back events and server persisting their state in viewstate (using hidden filed). MVC does not support event base architecture...
hope this will help you.
Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 17, 2014, 8:33 PM EDT
MVC has it own Html helper class which are help us to Generate HTML .
You can create your own Helper Class also.
Saineshwar BageriRank #115 · 19.6K reputationPosted Sep 18, 2014, 12:58 AM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 18, 2014, 1:06 AM EDT
Hi,
If your are using ASPX view engine than only tool box show the sever control because VS is only identify extension of page. if the extension is aspx and ascx than VS shows toolbox
One more point you can also include asp.net page into MVC application in this page we can use server side control.
hope this will help you.
sunita patil19 reputationPosted Sep 18, 2014, 12:56 AM EDT
sunita patil19 reputationPosted Sep 18, 2014, 7:22 AM EDT