Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

what is the correct way of passing parameter to controller? #7874


User avatar
0
wcdagency created

hello

from event

public async Task<PartialViewResult> CreateOrEditModal(int? id, bool? abc ) {

} modal.open( modalOptions, onClose, onOpen); --> onopen event is working. modal.open( { abc:true } modalOptions, onClose, onOpen); --> I could send param to controller but this way, onopen event is not working.

what is the correct way of passing param to controller so both I could pass abc params and onOpen event would work?


1 Answer(s)
  • User Avatar
    0
    wcdagency created

    var modaloptions= {abc:true}; modal.open( modalOptions, onClose, onOpen);