473,385 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Using a frame with Visual Basic.NET

Hi:

I am developing a web page using Visual Basic .NET. I want to put a frame in
my web page in which I am using this code

<FRAMESET cols="134,84%">
<FRAME name="NavBar" src="WebBarra.aspx" scrolling="auto">
<FRAME name="MainFrame" src="WebPrincipal.aspx" scrolling="auto">
</FRAMESET>

In WebBarra.aspx I have the bottons to make the hiperlinks, when I clic on
the botton I use the response.redirect("Pagina.aspx") and the web page is
being updated in the same frame. How can I do to make that when I clic the
botton in the Frame: "NavBar" the page will be loaded in the Frame:
"MainFrame".

Finally, I would appreciate if you can help me because I would like to make
static the division of the frame.

Thanking you in advance for your help.

Regards,
Giovanni Cobos
Nov 21 '05 #1
4 1916
<a target="MainFrame" href="http://www.microsoft.com">Link</a>

"Giovanni Cobos" <gc****@mail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi:

I am developing a web page using Visual Basic .NET. I want to put a frame
in
my web page in which I am using this code

<FRAMESET cols="134,84%">
<FRAME name="NavBar" src="WebBarra.aspx" scrolling="auto">
<FRAME name="MainFrame" src="WebPrincipal.aspx" scrolling="auto">
</FRAMESET>

In WebBarra.aspx I have the bottons to make the hiperlinks, when I clic on
the botton I use the response.redirect("Pagina.aspx") and the web page is
being updated in the same frame. How can I do to make that when I clic the
botton in the Frame: "NavBar" the page will be loaded in the Frame:
"MainFrame".

Finally, I would appreciate if you can help me because I would like to
make
static the division of the frame.

Thanking you in advance for your help.

Regards,
Giovanni Cobos

Nov 21 '05 #2
Ensure the IFRAME is set to runat=server give it an ID and here is the code

Dim myContentPane As HtmlGenericControl

myContentPane = Me.FindControl("TheIFRAMEIDName")

myContentPane.Attributes("src") = "http://www.microsoft.com"

"Giovanni Cobos" <gc****@mail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi:

I am developing a web page using Visual Basic .NET. I want to put a frame
in
my web page in which I am using this code

<FRAMESET cols="134,84%">
<FRAME name="NavBar" src="WebBarra.aspx" scrolling="auto">
<FRAME name="MainFrame" src="WebPrincipal.aspx" scrolling="auto">
</FRAMESET>

In WebBarra.aspx I have the bottons to make the hiperlinks, when I clic on
the botton I use the response.redirect("Pagina.aspx") and the web page is
being updated in the same frame. How can I do to make that when I clic the
botton in the Frame: "NavBar" the page will be loaded in the Frame:
"MainFrame".

Finally, I would appreciate if you can help me because I would like to
make
static the division of the frame.

Thanking you in advance for your help.

Regards,
Giovanni Cobos

Nov 21 '05 #3
Thank you for your soon reply. I did it but I got the following error in the
line: myContentPane.Attributes("src") = "http://www.microsoft.com"
Reference to the object not stablished as an instance of the object. Can you
help my to solve this problem?

Again thank you very much for your time and help.

Giovanni
Nov 21 '05 #4
I've posted the full TIP here.

http://www.trainingon.net/Articles/T...amatically.htm

"Giovanni Cobos" <gc****@mail.com> wrote in message
news:Oa**************@TK2MSFTNGP14.phx.gbl...
Thank you for your soon reply. I did it but I got the following error in
the
line: myContentPane.Attributes("src") = "http://www.microsoft.com"
Reference to the object not stablished as an instance of the object. Can
you
help my to solve this problem?

Again thank you very much for your time and help.

Giovanni

Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Maarten | last post by:
hi all i have a frame, where i can add controls in at runtime. but he frame has an end so (on my project) after adding 13 controls thecontrols aren't visible anymore becouse they get placed out...
4
by: anonymous | last post by:
Thanks your reply. The article I read is from www.hakin9.org/en/attachments/stackoverflow_en.pdf. And you're right. I don't know it very clearly. And that's why I want to understand it; for it's...
6
by: Jack | last post by:
Hi, I'm starting on a new project to develop Windows application run on the .NET Frame work. Would you please give me some justifications to present to management on why we should use C# over...
7
by: Eduardo M?ndez | last post by:
Hello: I have an aspx page with a TextBox and a DropDownListBox both have Autopostback property set to true and some code in the TextChanged and SelectedIndexChanged events. When text in...
3
by: powerranger | last post by:
I have aspx page called test.aspx where I create a frameset. At the top frame, I have dropdownlist box which has autopostback turned on, a hidden image (visible = false) and a button. When the...
5
by: Mudcat | last post by:
I was trying to design a widget that I could drag and drop anywhere in a frame and then resize by pulling at the edges with the mouse. I have fiddled with several different approaches and came...
17
by: Sven Rutten | last post by:
Hello Actually I want to add some C#-Code to a VB.NET-Project in VS 2005. Normally I creating a DLL and importing that from the VB-Project. But as I am coding something for a Smart Device...
6
by: Salman | last post by:
I would like to know how I can distribute the application that I create with Visual C++ express edition. I checked the menu options to find a deploy option similar to the one found on the Visual...
13
by: ahmed222too | last post by:
how can I call a check box which is on a frame on access visual basic form? this code doesnot work: if check1.value=true then........ that code only works when the check box doesnot on a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.