Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 352
  • Last Modified:

ASP.NET and a table design for multiple pages ideas?

[ - Points split to all usefull answers - ]

I've just written a template for a page (actualy working html, not a template).  It's pretty much a table with css background with small images.

Basic example

-------------------------
|    |   Header    |     |
|    | ------------ |     |
|  s |                 |     |
|  i  |     Main     |     |
|  d |                 |     |
|  e |                 |     |
|    | ------------ |     |
|    |    Footer    |     |
-------------------------

Now, my problem i want to try to put this design onto all my pages, but only from 1 source.  

Things that i want to cover:

[ * ] Each page will be different in the 'Main'

[ * ] 'header' + 'side' will have asp.net controls in it, for now they will be the same on everypage but i dont want to limit myself for the future.

[ * ] Browser freindly (meaning if a user has something disabled, they wont be able to view any of my pages).


My thoughts were ajax, and read in each page and just change the 'Main'.  However folders and files linked wouldn't work.  Also if a user doesn't have ajax alowed, then they can't view any of my site.

I though about reading in parts of the html, but that might get quite ugly when it get's split up into so many areas.

I though about some kind of iframe, but if a browser doesn't suport it then once again none of my site will be visible.



I could keep going but you get my idea, i'm stuck for now so i wanna know what everyone else thinks about and idea to solve this problem.
0
UnexplainedWays
Asked:
UnexplainedWays
  • 6
  • 5
1 Solution
 
OliWarnerCommented:
Move up to .Net v2 and you get a technology called "masterpages"... Does exactly what you're looking for...

Otherwise there are a few tutorials on writing your own template engine rumbling around on the internet... I'd start by looking at www.4guysfromfrolla.com
0
 
UnexplainedWaysAuthor Commented:
I'm running the education version of .NET while i'm teaching myself, so i dont think i could get that for ver 2.  Also, hosting sites dont suport .Net 2 as far as i know (could of changed by now).
0
 
OliWarnerCommented:
You can get a 180day evaluation (maybe only 30 --not sure) of visual studio 2005 for free.
Most ASPNET hosts offer v2 in all their hosting. The people I'm with (www.hostek.com) certainly do.

Upgrading to V2 will save you lots of time as you wont have to develop the templating engine... Plus there are lots of other benefits.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
UnexplainedWaysAuthor Commented:
I'm never a fan of just using a trial.

www.hostek.com seems to be alot cheaper than the site i was going to go with.  Would you recomend their service?
0
 
OliWarnerCommented:
Yes they're the best hosting company I've ever been with -- by far.
0
 
UnexplainedWaysAuthor Commented:
What makes them "so good" other than there price.  Cause i have been planning to go with http://www.quadrahosting.com.au . It's going ot be my first site, so i really dont know what the companies are like.
0
 
OliWarnerCommented:
Support. They're just so excellent when it comes to being there to help you get server side things done. In the first week I probably had 30 exchanges with them getting my stuff setup and my files and database moved off my old host. I honestly thought they were robots because my emails were always answered by someone there within 10 minutes... Even out of hours.

The price is just an added bonus.

And even though its shared hosting, my website put through 5million requests in 48 hours without any performance drop... Considering I'm on a server with quite a few other websites, that's quite spectacular. On those days I smashed through my bandwidth level and they were extremely understanding and helped me scale things down.

If I go on much longer you'll accuse me of working for them... But I was referred by another member here on EE. If you go with them, I hope you enjoy the ride.
0
 
UnexplainedWaysAuthor Commented:
"And even though its shared hosting", does this mean just bandwidth?  You missed some points in this Q, you would of had the answer!  http://www.experts-exchange.com/Web/Q_21837582.html


And it looks like i could go down the exress path http://msdn.microsoft.com/vstudio/express but that's getting off topic so i might open up a different question for that.

Thanks heaps for your help, i'd offer more than 500 if i could because you answered even more than the question.
0
 
UnexplainedWaysAuthor Commented:
If you know anything about express, there might be some easy points for you @ http://www.experts-exchange.com/Web/Q_21844685.html , it involves the "masterpages".

0
 
OliWarnerCommented:
>> does this mean just bandwidth?
By shared I mean they host lots of customers on the same server... Any host that isnt offering the package as "dedicated" is doing the same thing...

I guess they just have a better limit on how many people they squeeze onto 1 server.
0
 
UnexplainedWaysAuthor Commented:
Well, i've got my domain name now and i'm deciding on 2 hosts, your hostek, and godaddy.  The only thing going for godaddy is its alot cheaper.

To the point, i sent an email to both of them and my domain name place all with the same Q.

7 mins and a reply from hostek!!!, it was the last sent and the first recieved, i'll have to wait till morning to get the other 2 replies (if they come).  

It will be $140 more a year (including sql server) but over a year i think it might be worth it for the suport.


Thanks for telling me about them.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now