Windows Develop Bookmark and Share   
 index > Windows Forms General > manage pop-ups for webBrowser1
 

manage pop-ups for webBrowser1

Hi there, I have a winform app that hase a WebBrowser1, the URL for the WebBrowser goes to a websit that requires login info to procede.
on a previous post i found how to populate the controls with default values and login without having to type or click any thing.

the problem is that onse loged in i have to click e button for a download, the popup shows in explorer but with the login screen, so i have to log in agen navigate to the page where download btn is.

If i navigate to the website via explorer.exe log in and disable popups for this site then close the browser than use my app it works.

is there a way to open the popup for WebBrowser1 to wbbrowser2.


thanks for looking
  • Edited bydeti Thursday, September 24, 2009 11:53 AM
  •  
deti  Thursday, September 24, 2009 11:12 AM
I think http://zerosandtheone.com/media/p/277.aspxis what you are looking for.
  • Marked As Answer bydeti Friday, September 25, 2009 8:46 AM
  •  
Tamer Oz  Thursday, September 24, 2009 1:38 PM
Hi deti,

Is it works finewhen you write e.cancel=true to the NewWindow event of webbrowser control

        private void webBrowser1_NewWindow(object sender, CancelEventArgs e)
        {
            e.Cancel = true;
        }
Tamer Oz  Thursday, September 24, 2009 11:32 AM
This stoped the popup to show , In order to make the download i need to see the popup in the popup there is a dropdown list that i pick the format, Like: SCV, XLS, TXT...

than i click ok on the popup and thenit sends me to the login screen


i think is something to do with the cokies or sesionstate


what about opening the popup in WebBrowser2 on winform2



deti  Thursday, September 24, 2009 11:52 AM
I think http://zerosandtheone.com/media/p/277.aspxis what you are looking for.
  • Marked As Answer bydeti Friday, September 25, 2009 8:46 AM
  •  
Tamer Oz  Thursday, September 24, 2009 1:38 PM
thanks
deti  Friday, September 25, 2009 8:47 AM

You can use google to search for other answers

Custom Search

More Threads

• ListView RTL Problem
• Image display form....some questions
• prevent user from entering to MS Windows
• How to create a nullable and editable DateTimePicker
• ToolStrip Container
• access windows forms from a web service
• Selected Checkboxes(using CheckedListBox) not retrieving filtered Data
• webform app,navigation controls
• Displaying label along with form.
• Passing Parameters during a Call