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. Problem With ModalPopupExtender and UpdatePanel

Problem With ModalPopupExtender and UpdatePanel

Scheduled Pinned Locked Moved Web Development
databasehelpannouncement
3 Posts 3 Posters 1 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.
  • V Offline
    V Offline
    VikashGohil
    wrote on last edited by
    #1

    Hello, I am working on a Data Centric Web Application of Creating Inventory Application. I have decided using ModalPopupExtender for Adding and Modifying records. eg. I have a Company master, i first display the List of records in Gridview and then if user clicks on Add or Edit Button, will display the modal popup with a Form for entering data. I have succeeded in Creating this and everything works fine, the modal popup is displayed on clicking on Modify or Add button in the gridview, but the problem is about displaying data in controls of the modal popup. When the page loads, and when i click on Add button for first time, The popup displays properly with blank controls, Also When i click on Modify, it properly fills the controls with proper data of the selected record from the Gridview, The problem begins here, now when i again Click on Add button, it does not display blank controls but display the same data which i selected in Modify. Can anyone please tell me why this happens, after clicking on Modify Button , Add button does not work, but again clicking on Modify properly displays another record from the gridview. I have placed a Gridview in UpdatePanel1 and The form for dataentry in another updatepanel2 inside a Panel. What i am doing is, on click Add button I am clearing all controls on the form and doing UpdatePanel2.Update before displaying The Modal. But this does not work, whereas in Modify button i do the same thing just that i fill the controls this time with data selected and i again do UpdatePanel2.update and this works perfectly fine. Could Anyone please suggest me something on this topic. Hope I have clearly specified my Query. Waiting for a reply, Thanks In Advance.

    R N 2 Replies Last reply
    0
    • V VikashGohil

      Hello, I am working on a Data Centric Web Application of Creating Inventory Application. I have decided using ModalPopupExtender for Adding and Modifying records. eg. I have a Company master, i first display the List of records in Gridview and then if user clicks on Add or Edit Button, will display the modal popup with a Form for entering data. I have succeeded in Creating this and everything works fine, the modal popup is displayed on clicking on Modify or Add button in the gridview, but the problem is about displaying data in controls of the modal popup. When the page loads, and when i click on Add button for first time, The popup displays properly with blank controls, Also When i click on Modify, it properly fills the controls with proper data of the selected record from the Gridview, The problem begins here, now when i again Click on Add button, it does not display blank controls but display the same data which i selected in Modify. Can anyone please tell me why this happens, after clicking on Modify Button , Add button does not work, but again clicking on Modify properly displays another record from the gridview. I have placed a Gridview in UpdatePanel1 and The form for dataentry in another updatepanel2 inside a Panel. What i am doing is, on click Add button I am clearing all controls on the form and doing UpdatePanel2.Update before displaying The Modal. But this does not work, whereas in Modify button i do the same thing just that i fill the controls this time with data selected and i again do UpdatePanel2.update and this works perfectly fine. Could Anyone please suggest me something on this topic. Hope I have clearly specified my Query. Waiting for a reply, Thanks In Advance.

      R Offline
      R Offline
      Rajdev Ramasamy
      wrote on last edited by
      #2

      It would be helpful if you show atleast some sample code. Thanks, Rajdev KR

      1 Reply Last reply
      0
      • V VikashGohil

        Hello, I am working on a Data Centric Web Application of Creating Inventory Application. I have decided using ModalPopupExtender for Adding and Modifying records. eg. I have a Company master, i first display the List of records in Gridview and then if user clicks on Add or Edit Button, will display the modal popup with a Form for entering data. I have succeeded in Creating this and everything works fine, the modal popup is displayed on clicking on Modify or Add button in the gridview, but the problem is about displaying data in controls of the modal popup. When the page loads, and when i click on Add button for first time, The popup displays properly with blank controls, Also When i click on Modify, it properly fills the controls with proper data of the selected record from the Gridview, The problem begins here, now when i again Click on Add button, it does not display blank controls but display the same data which i selected in Modify. Can anyone please tell me why this happens, after clicking on Modify Button , Add button does not work, but again clicking on Modify properly displays another record from the gridview. I have placed a Gridview in UpdatePanel1 and The form for dataentry in another updatepanel2 inside a Panel. What i am doing is, on click Add button I am clearing all controls on the form and doing UpdatePanel2.Update before displaying The Modal. But this does not work, whereas in Modify button i do the same thing just that i fill the controls this time with data selected and i again do UpdatePanel2.update and this works perfectly fine. Could Anyone please suggest me something on this topic. Hope I have clearly specified my Query. Waiting for a reply, Thanks In Advance.

        N Offline
        N Offline
        Naruki 0
        wrote on last edited by
        #3

        It almost sounds like you are talking about Java or C# or something. You sure you are in the right place?

        Don't let my name fool you. That's my job.

        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