473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

modalpopupextender with frameset

1
Hi

I have a typical frameset page (Default.aspx) that separate the page into Top, Left and Main. I want to add modalpopupextender on the frameset page so that the popup covers the WHOLE SCREEN.

------------- Default.aspx file ---------------

<form id="form1" runat="server">
<div>
<div style="display: none">
<asp:button id="btnPopup" cssclass="ms-button" runat="server" />
</div>
<asp:toolkitscriptmanager id="ScriptManager1" runat="server">
</asp:toolkitscriptmanager>
<asp:panel id="Panel1" runat="server" style="display: none" cssclass="modalPopup">
some text here.
<asp:Button ID="btnClose" runat="server" Text="Close" OnClick="btnClose_Click" />
</asp:panel>
<asp:modalpopupextender id="Panel1_ModalPopupExtender" runat="server" dynamicservicepath=""
enabled="True" targetcontrolid="btnPopup" popupcontrolid="Panel1" backgroundcssclass="modalBackground">
</asp:modalpopupextender>
</div>
</form>

<frameset rows="86,*" frameborder="0" border="0" framespacing="0">
<frame name="Top" scrolling="no" src="Top.aspx" frameborder="0" marginheight="0" marginwidth="0" />
<frameset id="frame" cols="150,*" frameborder="0">
<frame name="Left" frameborder="0" noresize scrolling="no" src="Left.aspx?ParentID=1" />
<frame name="Main" scrolling="yes" src="Blank.aspx" />
</frameset>
<noframes>
</noframes>
</frameset>

------------ Default.aspx.cs --------------

protected void Page_Load(object sender, EventArgs e)
{
this.Panel1_ModalPopupExtender.Show();
}

protected void btnClose_Click(object sender, EventArgs e)
{
this.Panel1_ModalPopupExtender.Dispose();
}



It shows the modalpopup when the page loads, but the frameset does not showup.

The backgroundcssclass="modalBackground" is transparent so I should be able to see the frameset behinde the popup. But there is nothing behind and if I click the Close button on the pop, it return to a blank page.

How can I make the modalpopup to work on a typical frameset page?

Thanks in advance!
Sep 10 '10 #1
0 1163

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: suzi167 | last post by:
Hello Everyone, I am having the following issue. I have an AJAX enabled Web Application in C#. I am using a Master Page and then I have a Default.aspx page which is based on the Master page....
0
by: =?Utf-8?B?SGFyZHkgV2FuZw==?= | last post by:
Hi all, I have a web form, and I want to use ModalPopupExtender from Ajax Toolkit. I am using IE 7.0 as browser, VS 2005 and Ajax and Ajax Tool Kit installed. Windows XP Pro. Now I have a...
1
by: Victor | last post by:
Hi guys i have a strange problem about my modalpopupextender. In my page, i put a gridview inside a updatepanel with paging enabled. also i put a modalpopupextender in another updatepanel to do...
0
by: SD | last post by:
Hi, I have to use the ModalPopupExtender prgrammatically.. But the next sample doesn't work: ************************** protected Button bt; protected Button bc; protected Button b; protected...
1
by: =?Utf-8?B?S3lsZSBNLiBCdXJucw==?= | last post by:
I have a set of controls and logic that must be invoked from several pages within a web application as a popup dialog, so I intend to use a userControl contained in a panel extended with the...
0
by: vincent90152900 | last post by:
In a web page,” Default.aspx”, I have two different WebUserControl,” WebUserControl1_1”, and “WebUserControl2_1” and a ModalPopupExtender,” ModalPopupExtender1” and a Button,” Button1” and a Panel,”...
0
by: lax4u | last post by:
I want to use same ModalPopupExtender for two different Link Buttons. The Ajax Control Toolkit team decided to make the TargetControlID of the extender required. That's fine when i have single button...
0
by: mohaaron | last post by:
Hello all, I have been using the ModalPopupExtender as a way of catching errors and displaying them to users. This includes business rule violations that I catch. This all works fine as long as...
2
by: Peter | last post by:
I am trying to use ASP.NET Ajax Control Toolkit ModalPopupExtender which works fine, but what I am trying to do is: 1) User Clicks on the button: 2) Function on the server will check for a...
0
by: uicouic | last post by:
Hi all. I am having trouble getting a ModalPopupExtender to display with the corresponding data. This will be triggered by clicking on a "Details" button in a gridview. Eg. by clicking on Row1...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.