I have a literal that I use to populate a list of errors returned back from my method. I also have a modal "loading" window that pops up if the method takes a while to return. If I "turn off" the modal the literal returns fine. If I "tuen on" the modal and
then "Hide" it when I return from my method call the literal does not populate. (I have also tried a listbox, I get the same deal).
Can you show me the code? Sounds like what is happening is when the modal is popped up the method doesn't finish posting because the functionality it takes to display the modal ends the code processing. Your code example would be great.
Coding is like life, learn from the past and work towards the future, trying to redo past code, ends in lost time and nothing new accomplished.
tripower
0 Points
13 Posts
Modal windows is causing literal control not to get populated
Jul 06, 2012 05:34 PM|LINK
I have a literal that I use to populate a list of errors returned back from my method. I also have a modal "loading" window that pops up if the method takes a while to return. If I "turn off" the modal the literal returns fine. If I "tuen on" the modal and then "Hide" it when I return from my method call the literal does not populate. (I have also tried a listbox, I get the same deal).
What is the deal?
AWAlger
Contributor
2531 Points
540 Posts
Re: Modal windows is causing literal control not to get populated
Jul 06, 2012 05:58 PM|LINK
Can you show me the code? Sounds like what is happening is when the modal is popped up the method doesn't finish posting because the functionality it takes to display the modal ends the code processing. Your code example would be great.
Coding is like life, learn from the past and work towards the future, trying to redo past code, ends in lost time and nothing new accomplished.
Don't forget to mark Answer!!!!!!!
tripower
0 Points
13 Posts
Re: Modal windows is causing literal control not to get populated
Jul 06, 2012 06:00 PM|LINK
Which code the HTML or the code behind?
AWAlger
Contributor
2531 Points
540 Posts
Re: Modal windows is causing literal control not to get populated
Jul 06, 2012 06:07 PM|LINK
What pops up the modal and process the code?
Coding is like life, learn from the past and work towards the future, trying to redo past code, ends in lost time and nothing new accomplished.
Don't forget to mark Answer!!!!!!!
BU XI - MSFT
All-Star
22367 Points
2704 Posts
Microsoft
Re: Modal windows is causing literal control not to get populated
Jul 09, 2012 07:36 AM|LINK
Hello
You may try splitting ModalPopup and Literal. While Modalpopup is not for full postback, and for Literal you'll make postback to populate.
If you have any feedback about my replies, please contact msdnmg@microsoft.com.
Microsoft One Code Framework
tripower
0 Points
13 Posts
Re: Modal windows is causing literal control not to get populated
Jul 09, 2012 10:59 AM|LINK
Not following....
AWAlger
Contributor
2531 Points
540 Posts
Re: Modal windows is causing literal control not to get populated
Jul 09, 2012 12:16 PM|LINK
Send me the form and codebehind. That way i can see how you have it and assist more pls
Coding is like life, learn from the past and work towards the future, trying to redo past code, ends in lost time and nothing new accomplished.
Don't forget to mark Answer!!!!!!!