buttons in modal dialog box RRS feed

  • Question


    i have 2 asp.net web pages.
    if i select some data in 1.aspx , and click on submit button,
    then 2.aspx window will open like a modal dialog box and will show all the selected contents.
    on this 2.aspx, there will be 2 buttons , Ok and Cancel. Till here i am able to get.

    The thing i want is
    If the user clicks "Cancel" button on 2.aspx, then the modal dialog box should get closed displaying only 1.aspx with the user selected values.

    If the user clicks on "ok" button on 2.aspx, then the selected data should be entered in the db(for which i have necessary code)
    and then the 2.aspx screen should be closed and 1.aspx screen should be opened displaying a message box that the data is inserted sucessfully.

    Monday, February 9, 2009 9:04 AM




    Thank you for your post!  I would suggest posting your question in one of the ASP forums located here: http://forums.asp.net/ .

    Have a great day!

    Kiran Polimetla Tier 2 Application Support Server and Tools Online Engineering Live Services Team
    Monday, February 9, 2009 9:30 AM