Tuesday, January 28, 2014

how to get html control id from mvc

Let just think that i am using my control with model binding. now i want to get the control id without assign id. how to do that..?

    @Html.TextBoxFor(m => m.ServiceBenifitPayment.ServiceBenefitNoOfDays)  

 its simple just use firebug of Firefox. click on firebug then click

now select your control you will see control id.

Now use this control in script like set value

  document.getElementById('ServiceBenifitPayment_ServiceBenefitNoOfDays').value = ServiceBenefitDay;  

vfpoledeb.1 provider is not registered on the local machine

Have u Install VFP Ole DB Provider in your System ? If No then Please Install it from following link. http://www.microsoft.com/download...