473,545 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ok to use file upload in showModalDialog page?

I am using the javascript showModalDialog function to open a file upload
window. The function opens a page which contains a usercontrol housing the
file upload stuff. The control works fine when tested independently, but
when called through showModalDialog on submit, another window is opened (a
fullsize version of the page passed to showModalDialog ).

Is this a bug, by design, or have I made some sort of error?

thanks
Nov 19 '05 #1
2 2988
This is by design. The work around is to use IFRAME.

Instead of directly calling your fileupload aspx page from main page, you
will need to create an HTML /ASPX page with an IFRAME and set the IFRAME
source as fileupload aspx page

<IFRAME width='100%' height='100%' NAME="framHostU pload" SRC="fileupload .aspx"
</IFRAME>
"Sarah" wrote:
I am using the javascript showModalDialog function to open a file upload
window. The function opens a page which contains a usercontrol housing the
file upload stuff. The control works fine when tested independently, but
when called through showModalDialog on submit, another window is opened (a
fullsize version of the page passed to showModalDialog ).

Is this a bug, by design, or have I made some sort of error?

thanks

Nov 19 '05 #2
KMA
since no one answered so far,

There is a bug/design feature of this function which means the
postback(submit ) launches a new window of the calling page. There is a
workaround for it though. I don't have the detailss, but I think google for
"showModalDialo g postback" should turn it up.

"Sarah" <Sa*********@no spam.hotmail.co m> wrote in message
news:OB******** ******@tk2msftn gp13.phx.gbl...
I am using the javascript showModalDialog function to open a file upload
window. The function opens a page which contains a usercontrol housing the
file upload stuff. The control works fine when tested independently, but
when called through showModalDialog on submit, another window is opened (a
fullsize version of the page passed to showModalDialog ).

Is this a bug, by design, or have I made some sort of error?

thanks

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
2652
by: Jim Mitchell | last post by:
I have a web page that I show using show ModalDialog. The web page takes about 6 seconds to load. No matter what I try, I can not get the cursor to show a "WAIT" until the page is loaded in the showModalDialog Window, I have even tried having a hidden panel in the calling web site and trying to turn it off from the target web site...
13
4285
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I...
6
5392
by: Scott Lee | last post by:
I am displaying an ASP.Net generated form in a popup opened with window.showModalDialog. The form contains DropDownList controls. The first ddl is populated via databinding to a datatable, has its AutoPostBack set to true and has its SelectedIndexChanged event being handled in codebehind. The event fires as it should populating two more...
4
808
by: MW de Jager | last post by:
I want to call ShowModalDialog(...) from my C# code in the code behind page of my aspx page. I do not want to link this to a button, since I want to first do some checking myself before I call the showModalDialog. I also want to receive a result back from the ShowModalDialog when it is closed. My problems are currently these: (1) If I...
1
2224
by: Axford | last post by:
Hello, when I use the IE javascript 'showModalDialog' function to display a calendar I encouter the following problem: My aspx page uses a master page (asp.net 2.0). My 'showModalDialog' opens a page without master page, but this gives an error message, because it appears that the 'showModalDialog' assumes that the same master page as the...
0
1328
by: sunita | last post by:
Hiiii I am opening an aspx page in a showModalDialog...I have and i frame in that popup whose target is another page.. And this is what takes place in that aspx page that is in the iframe...I am opening a excel sheet in it..I open a file download dialog which says open or save....When i click on save everything works fine and am able to...
4
4557
by: =?Utf-8?B?Sm9hbyBSZWdv?= | last post by:
Hello, Using asp.net 2.0, C# and IE7 I'm using window.showModalDialog to open a modal window on the client from Javascript. I have to include this line in the < HEAD html of the modal window: <base target=_selfbecause whenever that page posted back, it would spawn off a new window!! This is the beaviour in IE7.
6
2609
by: David | last post by:
Hi all, I am opening a webform with showModalDialog. This appears to pop-up fine, though I have a problem... Inside the webform is a treeview control. When the treeview is populated, I am setting the treenode navigateurl to javascript:Click('test')
7
7131
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and Silverlight 2.0. To get these tools please visit this page Get Started : The Official Microsoft Silverlight Site and follow Step 1. Occasionally...
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7416
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.