-
October 18th, 2007, 09:58 AM
#1
ModalPopUpExtender Problem
Hi All,
I have a modal popup Declared as a panel on my form and use a small piece of javascript to display it.
The popup itself pops up fine and I've used this method before to use this control.
The difference this time is that I want to pre-populate the popup from my main form.
So in my Panel that makes up the popup I might have a label and from my main form (another panel on the same page) I set the value of this label. However when I come to display the panel, the value of the label has been lost.
So to help clarify I have the following Declared:
Code:
<cc1:ModalPopupExtender ID="mpeModifyRelationships" runat="server" PopupControlID="ModifyRelationships" TargetControlID="btnFake" BackgroundCssClass="modalBackground" CancelControlID="RelationshipCancelButton" >
</cc1:ModalPopupExtender>
<script type="text/javascript">
function showRelationShipPopup()
{
$get('<%=ModifyRelationships.ClientID %>').className = "modalpopup";
$find('<%=mpeModifyRelationships.ClientID %>').show();
return false;
}
</script>
...........
..........
<asp:Panel ID="ModifyRelationships" runat="server" Height="500px" Width="1000px" BackColor="White" BorderStyle="Solid" CssClass="hidden" ScrollBars="Auto">
<table>
<tr>
<td>Attribute: <asp:Label ID="lblAttribute" runat="server" Text=""></asp:Label></td>
The Function showRelationShipPopup is called from a button on the main panel, This initiates the popup.
If you find my answers helpful, dont forget to rate me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|