By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,955 Members | 1,756 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,955 IT Pros & Developers. It's quick & easy.

please help...

P: 65
Hi,



I have a homepage.aspx which has actually three parts to it. On top i have a logo, then the body and finally a submit button. I need to make the logo and body generic in the sense that:

I have first a start.aspx which has around 4 links say Soccer, Basket ball, Baseball and football. So on click of any of thes links should go to the homeoage.aspx but the content in the it should be specific to the sport. i.e. if i were to click on football my homepage.aspx should load up with the football realated logo and the contents shoud be football related.



Please note that the i should be able to reuse my homepage.aspx ie make it generic.



So i was wondering on say pageload of homepage.aspx i could populate the logo url from the database and display it on the page. But could i do the same with the homepage url.. ie say i have a football.html. so could i actually render the football.html on to my homepage.aspx. The submit button is common for all.. Similarly on click of say soccer on my start page should load up my homepage.aspx with the soccer logo and rendered with say soccer.html.



Is there any way i could do this.

Thanks,

nitin
Apr 19 '07 #1
Share this Question
Share on Google+
3 Replies


Frinavale
Expert Mod 5K+
P: 9,731
Hi,



I have a homepage.aspx which has actually three parts to it. On top i have a logo, then the body and finally a submit button. I need to make the logo and body generic in the sense that:

I have first a start.aspx which has around 4 links say Soccer, Basket ball, Baseball and football. So on click of any of thes links should go to the homeoage.aspx but the content in the it should be specific to the sport. i.e. if i were to click on football my homepage.aspx should load up with the football realated logo and the contents shoud be football related.



Please note that the i should be able to reuse my homepage.aspx ie make it generic.



So i was wondering on say pageload of homepage.aspx i could populate the logo url from the database and display it on the page. But could i do the same with the homepage url.. ie say i have a football.html. so could i actually render the football.html on to my homepage.aspx. The submit button is common for all.. Similarly on click of say soccer on my start page should load up my homepage.aspx with the soccer logo and rendered with say soccer.html.



Is there any way i could do this.

Thanks,

nitin
I think the easiest way to do this would probably just have one ASPX (no HTML pages) that loads some UserControls based on the link that the user selected.

For instance:
Make an ASPX page called "Homepage.aspx"

Make a user control for each of the sports and place all of them in the Homepage.aspx page. Place the HTML in these controls if you already have it. Make them all invisible.

Make a user control called "SelectSport.ascx" and place it on your Sports.aspx page but initialize this page to be visible. It will server as your intro page (or menu or whatever).
It will contain a bunch of linkButtons for "soccer" , "baseball"....

Depending on which linkButton they select, load the appropriate banner and make the associated user control visible (of course make the "SelectSport.ascx" invisible)

There are many other ways to solve this problem, but using this sort of solution the user will never visit another page during their time spent on your website.

-Frinny
Apr 19 '07 #2

P: 65
Hi,

I was wondering suppose i have a common user control( body.ascx ) inside my homepage.ascx. So could i actually render that particular html page say soccer.html on to my body .ascx whenever soccer link is clicked.

So only the contents of the body.ascx keeps on changing dynamically.
Could i use the reponse.wriefile('soccer.html') command.

Thanks,
Nitin
Apr 20 '07 #3

Frinavale
Expert Mod 5K+
P: 9,731
Hi,

I was wondering suppose i have a common user control( body.ascx ) inside my homepage.ascx. So could i actually render that particular html page say soccer.html on to my body .ascx whenever soccer link is clicked.

So only the contents of the body.ascx keeps on changing dynamically.
Could i use the reponse.wriefile('soccer.html') command.

Thanks,
Nitin

There are many different ways you can solve this problem.
It sounds like you're on the right track.
Try out a couple ideas and see if they work :)
Then if you have some more specific problems with the project feel free to ask.

-Frinny
Apr 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.