Last post Aug 22, 2008 03:31 PM by mivelas
Aug 22, 2008 01:38 PM|Prysson|LINK
I ned to programmatically display a modalpopupextender.
Everything I have seen says that modalpopupextender.Show() should do the trick. however I am not having any luck.
Label1.Text = str;
Aug 22, 2008 01:48 PM|tompy_nation|LINK
are you sure you dont need a scriptmanager to?
Aug 22, 2008 02:07 PM|Prysson|LINK
The Scriptmanager is on the masterpage
Aug 22, 2008 02:10 PM|tompy_nation|LINK
try to add the visible property to the modalpopup and place it on true
Aug 22, 2008 02:18 PM|Prysson|LINK
There is no "Visible" property on the modalpopupextender. Or at least it it cant be set declaritavely.
Aug 22, 2008 02:27 PM|mivelas|LINK
I see one problem, is that the fakebutton is visible false:
it doesnt work, because when you put visible false, the browser do not render the button, so the modad pop up doesnt find it, I sugest this:
Text=" " Enabled="false" />
Try with this and tell me.
Aug 22, 2008 02:52 PM|Prysson|LINK
I chnaged it to a link button
that way its not displayed..but it still isnt showing the modalpopup when I call the Show method
Aug 22, 2008 02:58 PM|mivelas|LINK
The problem is that you usalli has to link the modal pop up to a button or linkbutton. So when the page start the modad pop up try to search the targetcotrol that is the button or link button, but whe you put it in visible false, the browser does not render
it, so the modal pop up doesnt work. You have to find the way to render de button o link button. the the modal pop up can find the target control. One choice is the put the control and render it, in the way that I all ready post, putting the linkbutton or
the button in enabled false, like this:
Aug 22, 2008 03:20 PM|Prysson|LINK
I fixed it...
You dont have to set the link button to enabled = false
The link button if it has no text isnt displayed but can be found by the modalpopup So by changing the button from a regular button to this.
It started working fine.
Aug 22, 2008 03:31 PM|mivelas|LINK
the problem is that, when you pass the mouse over the button, a hand is show, like a hyperlink