473,513 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

please help...

65 New Member
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
3 973
Frinavale
9,735 Recognized Expert Moderator Expert
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
Nitinkcv
65 New Member
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
9,735 Recognized Expert Moderator Expert
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

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

Similar topics

0
1681
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web browser that Hotmail does not support. If you continue to use your current browser software we cannot guarantee that Hotmail will work correctly for...
7
3571
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title> </head> <style type="text/css">
7
3251
by: tyler_durden | last post by:
thanks a lot for all your help..I'm really appreciated... with all the help I've been getting in forums I've been able to continue my program and it's almost done, but I'm having a big problem that I believe if it's solved, the remaining stuff is easy... my full program until now is here: http://www.geocities.com/tom4_h4wk/progmail.zip the...
23
3233
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application to create certain textboxes, labels, and combo boxes? Any ideas would be appreciated. Thanks
13
4296
by: Joner | last post by:
Hello, I'm having trouble with a little programme of mine where I connect to an access database. It seems to connect fine, and disconnect fine, but then after it won't reconnect, I get the error "operation is not allowed when object is open" so I take out the line of code: BookDetails.Connection1.Open and it comes up with the error...
1
9588
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the...
1
54456
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and we instruct our experts to ignore any such PMs completely Be sure to give the version of Access that you are working with and the Platform and OS if...
0
3035
by: 2Barter.net | last post by:
newsmail@reuters.uk.ed10.net Fwd: Money for New Orleans, AL & GA Inbox Reply Reply to all Forward Print Add 2Barter.net to Contacts list Delete this message Report phishing Show original
6
3282
by: jenipriya | last post by:
Hi all... its very urgent.. please........i m a beginner in oracle.... Anyone please help me wit dese codes i hv tried... and correct the errors... The table structures i hav Employee (EmpID, EmpName,DeptID,DateOfJoin, Sal, Addr) Finance (EmpID, Sal) Club (Clubname, EmpID, Fee, DateOfJoin) Leave (EmpID, Date) Department (DeptID, DeptName,...
5
2291
by: tabani | last post by:
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable... The error arrives from option 'a' it asks for user name, check in the system but does not return the correct answer please help me with it. or if you have better way of doing it would you...
0
7270
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7397
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7125
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5703
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5102
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3252
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.