I need to make a custom control in asp.net mvc3.0 with razor view engine just like we make in classic asp.net. Please guide me how can I create a custom control or user control.
Asked
Active
Viewed 3,246 times
2
-
please go hrough following SO posts may it help you 1. http://stackoverflow.com/questions/4582866/custom-controls-with-asp-net-mvc-razor 2.http://stackoverflow.com/questions/3380945/razor-view-engine-how-can-i-add-partial-views – Devjosh Jul 05 '11 at 11:51
-
Thanks. but it would be easier for me to create if i could get step by step sample....... – Riti Jul 05 '11 at 12:03
1 Answers
5
It's not a control, it's a helper, and you can read more here:
http://www.asp.net/mvc/tutorials/creating-custom-html-helpers-cs

Brian Mains
- 50,520
- 35
- 148
- 257
-
No problem, it takes a little getting used to when you switch from web forms to MVC :-) – Brian Mains Jul 05 '11 at 12:35