Showing posts with label detailsview. Show all posts
Showing posts with label detailsview. Show all posts

Saturday, March 24, 2012

Modal Popup, DetailsView and UpdatePanel combined.

Hi all, this is my first foray into Atlas (and ASP.net) and I have come stuck with the following problem:

I am developing a simple lookup screen that lists users names along with email addresses in a GridView. There is a DetailsView control that allows insertion of new users as required. The lookup is contained within an updatePanel so only this portion of the page is refreshed when items are added, deleted, or changed. This works fine until:

I put the DetailsView into an atlas ModalPopup and have an 'Add User...' button. At this point the whole page refreshes and I cannot for the life of me get it to work correctly.

I have tried everything I can think of, scoured the web and forums but still no luck. I can get two of the three items (UpdatePanel, DetailsView, ModalPopup) working at once but the addtion of the third causes it all to go horribly wrong.Confused [*-)]

Can anyone out there help me?

Try adding UseSubmitBehavior="false" to the button that's causing the refresh. If that doesn't help, please post a simple sample demonstrating the problem. Thanks!

Modal PopUP within a DetailsView

Hello there.
I am hoping someone has done what I am trying to do and can explain to me how I can achieve my goal.

I am trying to use the model popup control within a DetailsView. I have added a template field within the detailsview and also a button next to the field. I am trying to set it up so when I press the button the modal pops up ,which allows me to add some info into a textbox and then postback to a db.

I have added a panel and called it pnlUpdate, in the panel I have added 2 buttons (Insert & cancel) + the txtbox. When I look at the buttons properties and try selecting the popUpControlID to be pnlUpdate from the dropdown its not there.

Has anyone run into this problem?

Thanks

Shane

Sorry to bump this back up to the top but I still can't seem to resolve this myself