|
-
Dec 9th, 2008, 03:19 PM
#1
Thread Starter
Frenzied Member
controls in asp.net
Hi, are there any controls in asp.net that:
There are two frames/panels on one page. If the user clicks on the link on the first left frame/panel, it will show a website (not my site) on the right hand side? It doesn't have to be frame/panel, but I just want something that can do this.
-
Dec 9th, 2008, 04:13 PM
#2
Fanatic Member
-
Dec 9th, 2008, 04:18 PM
#3
Thread Starter
Frenzied Member
Re: controls in asp.net
No
-
Dec 9th, 2008, 04:48 PM
#4
Fanatic Member
Re: controls in asp.net
And why not? From the problem statement I understand that you want to open another website within your page on click of a link button (or any other control). My HTML
Code:
<form id="form1" runat="server">
<div>
<asp:Panel ID="Panel1" runat="server">
<asp:LinkButton ID="LinkButton1" runat="server" >LinkButton</asp:LinkButton>
</asp:Panel>
</div>
<iframe id="testFrame" runat="server" src="" width="50%"></iframe>
</form>
And in code behind
Code:
Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
testFrame.Attributes.Add("src", "http://www.google.com")
End Sub
Click the link button and it opens the web page in the frame (in the same page).
-
Dec 11th, 2008, 08:03 AM
#5
Re: controls in asp.net
You can also use the object tag in a similar fashion to what rjv has shown you for a standards compliant way
Code:
<object id="ExternalPage" runat="server" height="blah" width="blah">
Sorry, your browser does not support frames, please upgrade to a modern browser.
</object>
Code:
ExternalPage.Attributes.Add("data","http://www.mendhak.com/");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|