468,753 Members | 1,181 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,753 developers. It's quick & easy.

Framesets & Dynamic Navigation

Hello- I am have a real trying time finding information on this subject. I
would like to create a web page that utilizes framesets (top & bottom) and a
navigation control I created from a datalist that gets data from a sql
datasource (sort of like a tabstrip). I'm getting pretty comforatable on the
asp.net side of things, but I'm lacking in the javascript department. I
understand that I need to add javascript to make the frames work properly.
Can anyone point me in the direction of some sort of sample of this scenario?
Ideally, I'd like it so when a user clicks on a tabstrip item in the top
frame, the bottom frame will change based on a querystring from the top
frame. Thanks!!
Nov 18 '05 #1
4 1613
Hi,

This won't take long. In the click event of your tabstrip item run this
code:

parent.document.getElementById("bottomframename"). src = "ThePage.aspx";

This will navigate your bottom frame to whatever page you want it to go to.
Also I use IFrames instead of a FrameSet. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Hello- I am have a real trying time finding information on this subject. I would like to create a web page that utilizes framesets (top & bottom) and a navigation control I created from a datalist that gets data from a sql
datasource (sort of like a tabstrip). I'm getting pretty comforatable on the asp.net side of things, but I'm lacking in the javascript department. I
understand that I need to add javascript to make the frames work properly.
Can anyone point me in the direction of some sort of sample of this scenario? Ideally, I'd like it so when a user clicks on a tabstrip item in the top
frame, the bottom frame will change based on a querystring from the top
frame. Thanks!!

Nov 18 '05 #2
Thanks Ken... so how do I get this into the click event? I'm getting the
data from sql with a datareader and binding it to a datalist. How/where do I
set the click event? Do I do this in my aspx page or the codebehind? Also,
why do you use IFrames instead? I do appreciate you taking the time to help
me!
Pete
"Ken Dopierala Jr." wrote:
Hi,

This won't take long. In the click event of your tabstrip item run this
code:

parent.document.getElementById("bottomframename"). src = "ThePage.aspx";

This will navigate your bottom frame to whatever page you want it to go to.
Also I use IFrames instead of a FrameSet. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Hello- I am have a real trying time finding information on this subject.

I
would like to create a web page that utilizes framesets (top & bottom) and

a
navigation control I created from a datalist that gets data from a sql
datasource (sort of like a tabstrip). I'm getting pretty comforatable on

the
asp.net side of things, but I'm lacking in the javascript department. I
understand that I need to add javascript to make the frames work properly.
Can anyone point me in the direction of some sort of sample of this

scenario?
Ideally, I'd like it so when a user clicks on a tabstrip item in the top
frame, the bottom frame will change based on a querystring from the top
frame. Thanks!!


Nov 18 '05 #3
Hi Pete,

You can use this code:

btnTabButton.Attributes.Add("onclick",
"parent.document.getElementById(""bottomframename" ").src =
""ThePage.aspx"";")

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Thanks Ken... so how do I get this into the click event? I'm getting the
data from sql with a datareader and binding it to a datalist. How/where do I set the click event? Do I do this in my aspx page or the codebehind? Also, why do you use IFrames instead? I do appreciate you taking the time to help me!
Pete
"Ken Dopierala Jr." wrote:
Hi,

This won't take long. In the click event of your tabstrip item run this
code:

parent.document.getElementById("bottomframename"). src = "ThePage.aspx";

This will navigate your bottom frame to whatever page you want it to go to. Also I use IFrames instead of a FrameSet. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
Hello- I am have a real trying time finding information on this subject.
I
would like to create a web page that utilizes framesets (top & bottom)
and a
navigation control I created from a datalist that gets data from a sql
datasource (sort of like a tabstrip). I'm getting pretty comforatable
on the
asp.net side of things, but I'm lacking in the javascript department.

I understand that I need to add javascript to make the frames work properly. Can anyone point me in the direction of some sort of sample of this

scenario?
Ideally, I'd like it so when a user clicks on a tabstrip item in the top frame, the bottom frame will change based on a querystring from the top frame. Thanks!!


Nov 18 '05 #4
Thanks Ken! I got it... here's what I did...
After binding the datalist to the datareader, I then looped through the
datalist control and added the line of code you showed me. Thanks for
pointing me in the right direction!
Pete
"Ken Dopierala Jr." wrote:
Hi Pete,

You can use this code:

btnTabButton.Attributes.Add("onclick",
"parent.document.getElementById(""bottomframename" ").src =
""ThePage.aspx"";")

Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:D7**********************************@microsof t.com...
Thanks Ken... so how do I get this into the click event? I'm getting the
data from sql with a datareader and binding it to a datalist. How/where

do I
set the click event? Do I do this in my aspx page or the codebehind?

Also,
why do you use IFrames instead? I do appreciate you taking the time to

help
me!
Pete
"Ken Dopierala Jr." wrote:
Hi,

This won't take long. In the click event of your tabstrip item run this
code:

parent.document.getElementById("bottomframename"). src = "ThePage.aspx";

This will navigate your bottom frame to whatever page you want it to go to. Also I use IFrames instead of a FrameSet. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Pete" <Pe**@discussions.microsoft.com> wrote in message
news:36**********************************@microsof t.com...
> Hello- I am have a real trying time finding information on this subject. I
> would like to create a web page that utilizes framesets (top & bottom) and a
> navigation control I created from a datalist that gets data from a sql
> datasource (sort of like a tabstrip). I'm getting pretty comforatable on the
> asp.net side of things, but I'm lacking in the javascript department. I > understand that I need to add javascript to make the frames work properly. > Can anyone point me in the direction of some sort of sample of this
scenario?
> Ideally, I'd like it so when a user clicks on a tabstrip item in the top > frame, the bottom frame will change based on a querystring from the top > frame. Thanks!!


Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by Arie Mijnlieff | last post: by
5 posts views Thread by terry | last post: by
1 post views Thread by James Bates | last post: by
29 posts views Thread by vivekaseeja | last post: by
4 posts views Thread by lashnjo | last post: by
3 posts views Thread by KimberlyM | last post: by
30 posts views Thread by Medvedev | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.