Hey folks,
I am re-writing an ASP.Net site for a company.
The client wants to be responsible for the static content and navigation of
their site, and I'll be responsible for any dynamic content.
I'm using Infragistics Ultra Web Navigator, which can load the menus from an
XML file, so the navigation requirement is taken care of.
I had created a generic aspx file that accepts the static content filename
as a query string. The ASPX form has a header user web control (containg
the menu control) and a footer user web control.
Between the two, I'm using a select statement based on the query string to
process the appropriate include file statements for the "guts" of the static
content.
This works fine right now, however, if the client wants to add new static
pages, the default.aspx file has to be edited to add the case for the new
web page.
This seems like a clunky way to do it, and I can't figure out how go
generate the include file line dynamically.
Could anyone point me in a direction that will accomplish this?
Thanks in advance,
-Buddy Robbins 3 5468
You could use Response.WriteF ile, load content as an ASCX file etc...
Patrice
--
"Buddy Robbins" <bu***********@ rimrockgroup.co m> a écrit dans le message de
news:uA******** ********@TK2MSF TNGP15.phx.gbl. .. Hey folks, I am re-writing an ASP.Net site for a company. The client wants to be responsible for the static content and navigation
of their site, and I'll be responsible for any dynamic content.
I'm using Infragistics Ultra Web Navigator, which can load the menus from
an XML file, so the navigation requirement is taken care of.
I had created a generic aspx file that accepts the static content filename as a query string. The ASPX form has a header user web control (containg the menu control) and a footer user web control. Between the two, I'm using a select statement based on the query string to process the appropriate include file statements for the "guts" of the
static content.
This works fine right now, however, if the client wants to add new static pages, the default.aspx file has to be edited to add the case for the new web page.
This seems like a clunky way to do it, and I can't figure out how go generate the include file line dynamically.
Could anyone point me in a direction that will accomplish this?
Thanks in advance, -Buddy Robbins
you may want to hit up a dotnet group, not the classic asp one.
--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Buddy Robbins" <bu***********@ rimrockgroup.co m> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. .. Hey folks, I am re-writing an ASP.Net site for a company. The client wants to be responsible for the static content and navigation of their site, and I'll be responsible for any dynamic content.
I'm using Infragistics Ultra Web Navigator, which can load the menus from an XML file, so the navigation requirement is taken care of.
I had created a generic aspx file that accepts the static content filename as a query string. The ASPX form has a header user web control (containg the menu control) and a footer user web control. Between the two, I'm using a select statement based on the query string to process the appropriate include file statements for the "guts" of the static content.
This works fine right now, however, if the client wants to add new static pages, the default.aspx file has to be edited to add the case for the new web page.
This seems like a clunky way to do it, and I can't figure out how go generate the include file line dynamically.
Could anyone point me in a direction that will accomplish this?
Thanks in advance, -Buddy Robbins
You will want to use the User Control way (ASCX). As you can take and use
the Page.LoadContro l(stringFromQue ryString + ".ascx") and add this control
to a placeholder.
<asp:PlaceHolde r id="place" runat="server" />
In code...
Sub Page_Load()
Dim somevar as string
If Request.QuerySt ring("querystri ngvarname") Is Nothing Then
somevar = "somecontrolTha tShowsError"
Else
somevar = Request.Queryst ring("querystri ngvarname")
End If
place.Controls. Add(Page.LoadCo ntrol(somevar & ".ascx"))
End Sub
HTH.
Ben Miller
This post is provided "AS IS" and the code samples express no liabilities or
warranties of any kind.
"Buddy Robbins" <bu***********@ rimrockgroup.co m> wrote in message
news:uA******** ********@TK2MSF TNGP15.phx.gbl. .. Hey folks, I am re-writing an ASP.Net site for a company. The client wants to be responsible for the static content and navigation of their site, and I'll be responsible for any dynamic content.
I'm using Infragistics Ultra Web Navigator, which can load the menus from an XML file, so the navigation requirement is taken care of.
I had created a generic aspx file that accepts the static content filename as a query string. The ASPX form has a header user web control (containg the menu control) and a footer user web control. Between the two, I'm using a select statement based on the query string to process the appropriate include file statements for the "guts" of the static content.
This works fine right now, however, if the client wants to add new static pages, the default.aspx file has to be edited to add the case for the new web page.
This seems like a clunky way to do it, and I can't figure out how go generate the include file line dynamically.
Could anyone point me in a direction that will accomplish this?
Thanks in advance, -Buddy Robbins This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michal Grabowski |
last post by:
Hello,
I need to have a stored procedure, which performs sorting. Something like
this:
CREATE PROCEDURE procname
@sortby varchar(30)
AS
BEGIN
SELECT some, columns
FROM some_table
|
by: Randy Yates |
last post by:
Having done a bit of Access Basic programming, I'm realizing
that AB does seem to have (as much as I hate to admit it since
I think it's a toy language) an advantage over C++.
Let's say I have a table called "tblCars" that has the fields fYear
(integer), fModel (string), fMake (string). When I perform a query in
AB, I do something like:
...
|
by: Razzbar |
last post by:
I'm creating a site that is all on one page. The navigation of
the site is enabled by a hidden iframe that fetches content from
the server and re/places it in a div on the page.
The problem is how to allow visitors to bookmark "pages" when
the page is dynamic.
I can use Apache-style pseudo-urls to parse out the location of
the dynamic...
|
by: raca |
last post by:
I am trying to create a generic SOA ServiceInvoker that will accept an
XML string that will be used to deserialize an object generated by
XSDObjectGen. The hierarchy goes like this:
Requests...Request (1..n)... Payload (1)... PayloadCollection (1) ...
Payload (0...n)
I have the knowledge about the root object Responses which I can create...
|
by: Brad |
last post by:
All samples related to this see to come short of being 'truly' dynamic. For
instance, after creating all the code to load/save a properties value, you
turn around and save it to one you KNOW exists:
foo.Height = (my loaded value)...
I am trying to load and set the property on the fly - without necessarily
knowing what it is. Imagine a 100...
| |
by: sophie_newbie |
last post by:
Basically I have written a cgi script to automatically download TIFF
images of patents from the US patent office.
What I want is that the user can see what is happening when the images
are being downloaded, because it takes a while to download them and
there can be anything up to 30 individual files for each image.
Is there a way of using...
|
by: sophie_newbie |
last post by:
Basically I have written a cgi script in Python to automatically
download TIFF
images of patents from the US patent office and create a PDF file of
them.
What I want is that the user can see what is happening when the images
are being downloaded, because it takes a while to download them and
there can be anything up to 30 individual files...
|
by: Klaus Jensen |
last post by:
Hi
I created code to allow me to rewrite urls from global.asax, so that if the
incoming Url is for instance:
/Hats/ReallyCoolHat.aspx
....I look up ReallyCoolHat in the products table and rewrite the url to
Product.aspx?id=12 if that is the productId for ReallyCoolHat.
|
by: walterbyrd |
last post by:
This according to SDTimes:
http://www.sdtimes.com/article/story-20071215-13.html
They don't specifically mention Python. But, I think Python qualifies
as a dynamic language.
"1. Dynamic languages are on the rise. We went into 2007 knowing that
Ruby would be a popular topic, thanks to Ruby on Rails, and that
JavaScript was resurgent,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |