please help...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nitinkcv
    New Member
    • Mar 2007
    • 65

    please help...

    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
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by Nitinkcv
    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.a spx"

    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.as cx" 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.as cx" 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

    Comment

    • Nitinkcv
      New Member
      • Mar 2007
      • 65

      #3
      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.wriefil e('soccer.html' ) command.

      Thanks,
      Nitin

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by Nitinkcv
        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.wriefil e('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

        Comment

        Working...