2

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.

Riti
  • 39
  • 2
  • 9
  • 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 Answers1

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