how to open aspx page inside of a table cell using javascript
NickName:Lefteris Gkinis Ask DateTime:2014-01-18T18:05:53

how to open aspx page inside of a table cell using javascript

In my Project I have a table on which I use a cell in order to open various pages with different works.
I use that script:

Dim url As String = "../../Pages/Support/Asp/Help01.aspx"

Dim msg As String = "<script type='text/javascript'> 
document.getElementById('iFrame').innerHTML = " +
"$(document).ready(function(){  window.location.href='" + url + "';  }); 
</script>"

Page.ClientScript.RegisterStartupScript(Me.GetType(), "myURL", msg)

For this purpose. But what I get is to close the current page and open (in full screen) the new page.
How can I make the new page to open inside of the table cell which I want.

Copyright Notice:Content Author:「Lefteris Gkinis」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21202631/how-to-open-aspx-page-inside-of-a-table-cell-using-javascript

More about “how to open aspx page inside of a table cell using javascript” related questions

how to open aspx page inside of a table cell using javascript

In my Project I have a table on which I use a cell in order to open various pages with different works. I use that script: Dim url As String = "../../Pages/Support/Asp/Help01.aspx" Dim msg As S...

Show Detail

Using angular inside Aspx page

Scenario: Use an angular app inside an aspx page. Issue: Aspx page has some scripts placed in an asset folder in one place, and angular's code is placed inside "Areas/Navigation/www". When I build...

Show Detail

Bind event to Iframe inside aspx page using Javascript

I have an aspx page in one of my .Net Web application. Inside which I am having iFrame that show a URL content. My requirement is to restrict user from using right click option. I have already

Show Detail

How to open aspx form inside an iFrame

I need to open an aspx form inside an iframe so i need a direct link to use in But the problem is, the form that im trying to open in an iframe is on a aspx page and when i enter that url of that...

Show Detail

How to get a table row from a control inside a cell

I have this table in my Page.aspx &lt;asp:Table ID="table1" runat="server" CssClass="tabla" &gt;&lt;/asp:Table&gt; I am building dynamically table1 in my Page.aspx.cs from a list using a fore

Show Detail

how to open an aspx page as popup on button click

I have created an aspx page "Analyse.aspx", I want to pass an argument to this page when calling it on a button click of another page say 'Master.aspx' by- OnClientClick="javascript:window.open('An...

Show Detail

How to make javascript interact with .aspx page?

I wish to run some asp.net code on a page generated by Wordpress. Is there a way using XMLHttpRequest() to make JavaScript interact with .aspx page just like a Servlet? For example, I hope that I ...

Show Detail

How to render an .aspx page into a modal in MVC

I need a way to open a modal in MVC with inside a WebForm .aspx page. I've tried to open the .aspx in a new window with JavaScript. window.open("Test.aspx", "Test", "width=800, height=600"); It ...

Show Detail

Trying to open a user control (Wrapped inside an aspx page) as popup using jQuery dialog in ASPX page

I am trying to open an user control (Child.ascx) as popup using jQuery dialog in an Aspx page. I wrapped Child.ascx in Child.aspx file. Now in Main.aspx I want to call the **Child.aspx** as a p...

Show Detail

javascript window.open in aspx

i have aspx pages with vb.net in the back. I need to use javascript to open a new window on page load. I am also sending a querystring (www.mysite.com/default.aspx?dest=register.aspx) from the prev...

Show Detail