Is there a way i can access model from with in java script? ... if yes then how?
I have a Model with folowing properties and i want to set few of them to variable within java script
public class BillPaymentModel
{
public string ClassName = "BillPaymentModel";
public BillDTO BillDTOObj { get; set; }
public DebitablesDTO SelectedAccount { get; set; }
public CreditablesDTO SelectedCreditCard { get; set; }
public ExecutionSchedulingDTO ExecSchedDTO = new ExecutionSchedulingDTO();
public string SelectedPaymentType { get; set; }
public PaymentCompanyDTO PayCompanyDTO { get; set; }
public List<SelectListItem> fromAccountNumberList { get; set; }
public IList<BeneficiaryDTO> List_Beneficiaries { get; set; }
public SelectList AccountsList { get; set; }
public SelectList CreditCardsList { get; set; }
public SelectList AmountList { get; set; }
public Dictionary<string, string> Test { get; set; }
public string SinglePaymentTypeAttribute { get; set; }
public string[] AllPossibleAmounts { get; set; }
public string PaymentMode { get; set; }
public string TransactionReference { get; set; }
public double AmountPaid { get; set; }
}
is it possible if i do some thing like:
var TempVariable=Model.SomeAttribute;