I have a website that uses IFrame in a page that loads other pages based on server side logic. So, if I do a View source, I would see something like this:
My question is - Is there any way, an attacker can change the src attribute to point other users to a malicious website considering that the src is determined on the server side?
I want to be able to call this iframe in my page (I am using ASP.NET) and I want to be able to set the visibilty based on a variable and most important I want to be able to change the src of the iframe based on a string that is build up by variables to change the [URL] to another URL based on the location of the page.
I am using following code to add a google translator to my page header. But if I move it inside page content its not displaying anything. How to get the same translator box in iframe.
<div id="google_translate_element" class="langSwitch"></div> <script> function googleTranslateElementInit() {
I am a newbie in asp.net. I am trying to load the text and the URL into hyperlink from a database. After debugging, I found out that the value is successfully loaded into the hyperlink control, however it doesn't shows at the html code? Does anyone knows how this happened?
If myReader2.Read Then Dim temp_panel As Panel Dim temp_hyperlink As HyperLink temp_panel = FindControlRecursive(Me, "Panel" & i.ToString()) temp_panel.CssClass = "accordionItem"
I am looking for a way to display an iframe code part in my website. Also, I am looking for a component to make it easy to copy/paste this iframe code part.
iam trying to add an iFrame to an code behind file dynamically, using cell.Controls.Add(new LiteralControl("<iframe id=AttachmentFrame scrolling='yes' frameborder='1' title='ShowAtt' width='100%' height='50%' src='pdf/1.pdf'></iframe>"));
row.Controls.Add(cell); viewTable.Rows.Add(row);
when launching the page its loading the pdf then not displaying in the webpage even when i try to open another aspx page in the iframe nothing is appearing although seems launching the webpage cuz it asks me username and password then nothing displays.while adding the iframe in the aspx file its both links are working correctly
note: i have a friend told me that in code behind like the one above have he has it working correctly but in my case i dont know whats wrong!
I have a multiline textbox that by default, is set to ReadOnly. I would like a button on the page to change the control to allow it to be edited. I would like this code to run on the client side because the page renders slowly and I'd like to avoid the post back.
The problem I'm having is the javascript code that I wrote to remove the readonly attribute appears to have no effect. I posted a stripped down example that illustrates the problem for your review.
In the ASP.NET MVC site that I'm writing, I'm building a generic Error Action that is routed to by an HttpModule, following this tutorial. In this Action, I will return a View corresponding to the status code that is applied to the response inside the HttpModule (after doing this, the module transfers the request over to the Action in question).
That's all good, except that I want to implement caching. I don't want to use the OutputCache attribute without filtering/varying, because that would mean that the page would be cached once. I want the page to be cached once for every possible status code.
Is it possible to somehow filter/vary with OutputCacheAttribute's properties, so that each Response.StatusCode is cached separately?
I am new to web programming. I am developing a web program using asp.net(vb) that scrapes data of a certain website. I am using System.Net.HttpWebRequest and System.Net.HttpWebResponse to read the HTTP codes.My problem is I can not retrieve the codes of certain frame/container where the data that I needed is located in the website.I understand that iframe has its own URL or link aside from the main URL of the website
in my application iam using an iframe, all pages are loaded on that iframe according to menu selection.My problem is that while timeout the login page is loaded inside the iframe.under the menu sectionHow can i overcome this?
I have created a web application that docks other web applications into it.When an application is docked the app creates a link button in its "tool box" on the left hand side of the page, users can easily click on any link button to navigate to the desired docked app.
I have a web app that uses iframes to display other web applications inside it. In effect it is a docking application where users can easily access many web applications from within one main app, while staying within the main app. I am having challenges dynamically resizing the iframe based on the size of the application the user is accessing.I have searched the web and tried many ideas but have yet to discover the code that will do the trick.
First, for a docking web application is the iframe the best approach? I have see some posts on ajax but am uncertain how that will help.
Second, if an iframe is the way to do it does anyone have code that will completely liminate the need for iframe scroll bars?
Note:The applications docked in the main we app may be of any size and can change size as users interact with them.
Our website application needs to open other web sites Iframe.(Our application is web based tool to help high school children to analyze the websites. It has to show news websites to in one iframe and in rest of the page there will be questions related to the news website)
But since many websites use framekiller code, these sites take control of entire page. Is there any ternative way / solution to this problem?It is necessary to be able to open other sites in our website (in iframe or any alternate way), otherwise whole concept of our application will become void.