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

pass and access parameters in jquery modal #5051


User avatar
0
avanekar02 created

solved it


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @avanekar02 there are already samples in AspNet Zero. You can check user edit dialog for example.

  • User Avatar
    0
    avanekar02 created

    if you are refrerring to call from indes.js of user to createoreditmodal.js i fail to understand can you please point me to the part .

    regards Anwar

  • User Avatar
    0
    ismcagdas created
    Support Team

    @avanekar02,

    Of course. The code which opens a modal on Index.js, basically calls a controller action with a paremter. This action returns a partial view and ABP's modal manager shows a modal with returned content from server.

    So, in order to access a passed parameter from your modal view, you can create a hidden field, set it's value and access it using jQuery.