I am developing a functionality where I have a IFrame inside aspx page.
Inside IFrame I am loading another website(i.e. Third party website). Inside that website when user click on a button on that third party website , that website redirect to another page on my website.
This new page (after redirection) is loaded in to IFrame, instead I want to load it to parent page.
How can I implement it.
So Basically scnario is like given below
I have a website (say abc.com\page1.aspx)
inside page1.aspx I am loading URL : xyz.com inside an Iframe. in Page_load event.
Please note I am loading a totally different website (i.e xyz.com) inside Iframe.
Now
Inside xyz.com\xyzpage2.aspx - there is a button, on click on that button another page opens (say xyzpage3.aspx).
I want to open xyzpage3.aspx in parent window and not in IFrame.
would it be possible to do it.
Thanks
Related
I have two web pages. One of them have links to a other web page. The other web page is totally dynamic. I want to open the dynamic web page when i click in the link in the other web page while the address bar should be different each time the dynamic page is opened. I have to do it in ASP.NET.
Please help.
I created a program in c# with webbrowser control that opens a web site and the user will be automatically logged in. That works. However the user should also browse through different web site sections and that's where I get a problem. There is a button on one page "print preview" and what it does in "normal browser" (IE or Mozilla) it opens a new tab and shows the contents. In my program it opens Internet Explorer (it is the default browser) and shows me login page again. Can anyone explain how to open a new tab in my webbrowser control (or new window) and pass login data.
Thank you.
It can't be done the way you are trying to do it. There is no concept of tabs in the web browser control. You can verify this by loading up an html page that makes calls to window.open() in javascript. If that call is made it will just launch an instance of IE that navigates to that particular URL.
Your best bet is to have multiple web browser controls and pass data between them. Either that or use HttpWebRequest.
Although, depending on what you are trying to do you may want to automate IE instead.
I created a Registration Page in MVC 7 for a company but they only implemented the page as an iframe so once the user is successfully registered I redirect my created page to their home page but because this was implemented as an iframe, only the iframe loads the homepage so it looks like the website is inside itself. My page is also hosted on a different service as the website they implemented the iframe on. I do not have access to the current website's back-end so I was wondering if there was a way to refresh the entire website and not just the iframe. If anybody has some advise on how to do this using any method allowed on MVC I would appreciate that.
I need to write a ASP.Net C# web page that can open a web page, fill in the fields and click the submit button on the web page automatically. My web page should launch the IE browser and navigate to a specified URL and fill the form and submit it. Not sure where I should start from. Any help is greatly appreciated.
Thank you.
I'm not sure that, browser will allow to run all your js code.
But you can try with jquery, or with some another javascript lib.
You can add to your page iframe tag, than add dynamically another web-site to the iframe content. You also must know id's or classNames of html controls.
if you're going to use jquery
$(document).ready(function () {
$('#textbox1').val()="someText1";
....
$('#textboxN').val()="someTextN";
//call click event
$('#btnID').click();
});
to automatically start your page, you can use Process.Start() method in server side.
if you're trying too run in client side, you can use Response.Redirect Method
Why not make a POST/GET call directly?
You could use HTTPWebRequest
http://www.codeproject.com/KB/webservices/HttpWebRequest_Response.aspx
This is my dilema:
My web site done in asp.net 3.5. I have buttons which if the user clicks should show images. The images are located at a third party and accessible via web url. So my app has to login to this third party app and they will return a url to me which i should then do a response.redirect in my website and show the user images
Think of it as have your own web page. you want to displlay images from yahoo and you need to log on to yahoo and all you have is a web address and know that it takes in username/password as either form elements or you could do yahoo.com?username=blah&pwd=doe
This would in normal sense take you to your yahoo home page and the login call also returns you a random file path which you use in your asp.net app and perform magic so that your web page is now redirected to yahoo.com/username/randomfilepath, which is basically a thumbnail page of your images.
i have tried doing this webrequest and then performing a response.redirect once i got the response back but that was a show stopper.
You might want to think about doing this inside of an IFrame. I did some facebook work which required the user to login to their facebook account. Then facebook returned to a my page at a url i specified.
What I did was create an IFrame then using the JQuery Dialog plugin showed the iframe, had that iframe postback to a FinishedLoggingIn.aspx page, then from that page I called window.top.someJavascriptToDisplayImages(someJsonWithImages);