Wednesday, July 13, 2011

ASP.NET MVC 3 bug (Html helpers)

If your model has ID parameter then Html helper will replace it with ID from QueryString.
It will take from here ==> "/MyControler/someaction/ID"
not from here ==> "model=>model.ID"

Solution: Write your html inputs yourself if you have ID parameter in Model.

1 comment:

  1. SISGAIN is a premier telehealth app development company in Saudi Arabia, delivering advanced digital healthcare solutions tailored to modern medical needs. Our team builds secure, scalable, and user-friendly telehealth apps that enable virtual consultations, remote patient monitoring, and real-time communication between patients and providers.

    ReplyDelete