calling and displaying url in the same page.
-
Hi, I have a lot of URLS / web programs. I need to create a default page which consist of two columns. Left column which has link button will call the url and display the existing url to the right column of my default page. It can be done using html. Is there a way to do it in .NET version? using web. Thanks
Dabsukol
-
Hi, I have a lot of URLS / web programs. I need to create a default page which consist of two columns. Left column which has link button will call the url and display the existing url to the right column of my default page. It can be done using html. Is there a way to do it in .NET version? using web. Thanks
Dabsukol
You can use frame to load the url. Just try following code on click of left column url...
You do not need to think it in .net context. You can do it simply using frame as shown above. You can do it dynamically using javascript. HTH
Jinal Desai - LIVE Experience is mother of sage....
-
Hi, I have a lot of URLS / web programs. I need to create a default page which consist of two columns. Left column which has link button will call the url and display the existing url to the right column of my default page. It can be done using html. Is there a way to do it in .NET version? using web. Thanks
Dabsukol
Create a left page say "left.aspx" and set target attribute for anchor element with the name of right frame
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="left.aspx.cs" Inherits="left" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="http://www.google.com" target="right">Google</a>
<a href="http://www.w3schools.com" target="right">W3Schools</a>
</div>
</form>
</body>
</html>create default page with frame and give a name for right frame
-
Create a left page say "left.aspx" and set target attribute for anchor element with the name of right frame
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="left.aspx.cs" Inherits="left" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href="http://www.google.com" target="right">Google</a>
<a href="http://www.w3schools.com" target="right">W3Schools</a>
</div>
</form>
</body>
</html>create default page with frame and give a name for right frame