Base solution for your next web application
Open Closed

pass and access parameters in jquery modal #5051


User avatar
0
avanekar02 created

solved it

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)