Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. jquery and asp.net form parameters

jquery and asp.net form parameters

Scheduled Pinned Locked Moved ASP.NET
questioncsharpjavascriptasp-networkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dotnetcsharpdev
    wrote on last edited by
    #1

    Hi, I have a webform with many controls. On click of a button a jquery modal window populates with the details of say products of an organisation. in the popup these results are being rendered thru a webservice and bound to a gridview. on selecting any one product I want to transfer all the details back to main form and close the modal. Also if user doesn't want any of the products, user should just close and come back to main page. Till now I have been able to get a jquery modal in button click and have loaded the other aspx form in the modal dialog. I am able to pass hardcoded values but unable to pass selected parameters !! :( Also I cannot return the values back from the aspx loaded in modal back to parent form.

    $(

    function(){

    /* Modal Dialog Box Configuration */
    $(

    "#addproductsForm").dialog({

    autoOpen:

    false,
    modal:

    true,
    overlay: {

    "background-color": "#000",

    "opacity": "0.5",

    "-moz-opacity": "0.5"
    }

    });

    $(

    "#btnAddSession").click(function(event){
    $(

    "#addproductsForm").dialog("open");

    //event.preventDefault();

    return false;
    });

    });

    <

    div id="addproductsForm" title="Dialog Title" >
    <

    iframe src = "WebForm4.aspx?id='jack'&id2='jill'" width="480"></iframe>
    </

    div>

    How do i trap the click event of the gridview checkbox select to send the vales back to the parent window and also close the modal :~

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups