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.
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 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
We have a Web site which is develop in MVC C# and we want to know how to identify where our home page is loaded from ( ie calling URL ), when it is loaded from a link which is in another web site. When someone load my home page from a specific web site I want to understand it and give him special treatment like auto login to the site.
When someone load my home page from a specific web site I want to understand it and give him special treatment like auto login to the site.
No. Nonono. No.
Of course the referrer is already being suggested, but since that is a user-provided value you should definitely not rely on that. Anyone can set the referrer header in their browser, so anyone knowing this can log themselves in to your site.
If you control both sites, you could give a logged in user on site B (the referral site) a token that you incorporate in the link to site A. Then in site A you verify the token's validity and act accordingly.
Using asp.net how would you achieve having the login page on the root of the website so for example, the login page to be on www.helloworld.com rather than having a separate file for the login www.helloworld.com/login.aspx
Does any understand what I am trying to do?
Additional information:
Just to give you some examples, look at this website www.torn.com then look at this one www.mobslife.com.. Notice how the url for the login page is just www.torn.com but on www.mobslife.com it is www.mobslife.com/login.php
If the site uses Web Forms and IIS has the standard set of default pages defined, then you can use file Default.aspx under the root directory of the web site to implement the login form.
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);