|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
New to ASPI have a client that has a list of products on a page. Every time we have to
update the list we have to re arrange the blocks with the names of the products. Is there a way in ASP to do this so that we can just add the name and link into a file then it can dynamically create the page? Here is a link to what we have now. http://www.townsendchemical.com/labels.html TIA Josh I assume you mean ASP.NET. When you mention the technology, make sure you
include the .NET because classic ASP is entirely a different beast. In ASP.NET there are several ways of doing it. Since you mentioned that you might want to save the file to disk, then the simplest might be to look into using, simply put, the Xml Control. This control allows you to transform and XML document using an XSLT. Show quoteHide quote "Josh" <jsaw***@insightbbb.com> wrote in message news:O%232kYe2XGHA.4620@TK2MSFTNGP04.phx.gbl... >I have a client that has a list of products on a page. Every time we have >to update the list we have to re arrange the blocks with the names of the >products. Is there a way in ASP to do this so that we can just add the >name and link into a file then it can dynamically create the page? Here is >a link to what we have now. > > http://www.townsendchemical.com/labels.html > > TIA > Josh > In case he *doesn't* mean ASP.Net, he can find ASP help at
microsoft.public.inetserver.asp.db. -- Show quoteHide quoteHTH, Kevin Spencer Microsoft MVP Professional Numbskull Show me your certification without works, and I'll show my certification *by* my works. "Peter Rilling" <peter@nospam.rilling.net> wrote in message news:OnsKNO3XGHA.5100@TK2MSFTNGP03.phx.gbl... >I assume you mean ASP.NET. When you mention the technology, make sure you >include the .NET because classic ASP is entirely a different beast. > > In ASP.NET there are several ways of doing it. Since you mentioned that > you might want to save the file to disk, then the simplest might be to > look into using, simply put, the Xml Control. This control allows you to > transform and XML document using an XSLT. > > "Josh" <jsaw***@insightbbb.com> wrote in message > news:O%232kYe2XGHA.4620@TK2MSFTNGP04.phx.gbl... >>I have a client that has a list of products on a page. Every time we have >>to update the list we have to re arrange the blocks with the names of the >>products. Is there a way in ASP to do this so that we can just add the >>name and link into a file then it can dynamically create the page? Here >>is a link to what we have now. >> >> http://www.townsendchemical.com/labels.html >> >> TIA >> Josh >> > > what I was hopping to do is to have a text file with the names and there
links and then create the page from that text file with asp.net. I am not sure if this is the way to go because like I said I am new to asp.net TIA Josh Show quoteHide quote "Peter Rilling" <peter@nospam.rilling.net> wrote in message news:OnsKNO3XGHA.5100@TK2MSFTNGP03.phx.gbl... >I assume you mean ASP.NET. When you mention the technology, make sure you >include the .NET because classic ASP is entirely a different beast. > > In ASP.NET there are several ways of doing it. Since you mentioned that > you might want to save the file to disk, then the simplest might be to > look into using, simply put, the Xml Control. This control allows you to > transform and XML document using an XSLT. > > "Josh" <jsaw***@insightbbb.com> wrote in message > news:O%232kYe2XGHA.4620@TK2MSFTNGP04.phx.gbl... >>I have a client that has a list of products on a page. Every time we have >>to update the list we have to re arrange the blocks with the names of the >>products. Is there a way in ASP to do this so that we can just add the >>name and link into a file then it can dynamically create the page? Here >>is a link to what we have now. >> >> http://www.townsendchemical.com/labels.html >> >> TIA >> Josh >> > > Hi Josh,
You could store your products and their links in a database like MS Access or SQL Server, but if you prefer to keep it simple and use a text file then I'd suggest putting all your products' details into an XML file. You can then load it into ASP.NET as an XmlDocument object and process it to generate your links. Alternatively, you could use an XSLT template to tranform the XML into the products HTML. HTH, Chris Are ther any good tutorial sites that could show me how to work with
XmlDocument object? Thank you Josh Show quoteHide quote "Chris Fulstow" <chrisfuls***@hotmail.com> wrote in message news:1145046265.894376.49510@g10g2000cwb.googlegroups.com... > Hi Josh, > > You could store your products and their links in a database like MS > Access or SQL Server, but if you prefer to keep it simple and use a > text file then I'd suggest putting all your products' details into an > XML file. You can then load it into ASP.NET as an XmlDocument object > and process it to generate your links. Alternatively, you could use > an XSLT template to tranform the XML into the products HTML. > > HTH, > Chris > Hi Josh,
This is a good article from Microsoft Support: http://support.microsoft.com/default.aspx?scid=kb;en-us;317661 It shows the different ways you can load and save an XML file in .NET. The examples are in VB.NET, but they should hopefully still make sense even if you're using C#. Chris
Other interesting topics
Help removing a reference in a web site
ArrayList and Structures VB.NET Best Practice for Inserting Data into SQL in 2.0 Determine Debug Mode ASP.NET: Can't Kill EXCEL.exe with Office PIA Update Query in formview Anyone care to help explain forms authentication in 2.0? how do yoiu ASP.NET from changing the id attribute???? Parsing Request.Headers.ToString() asp.net 2.0 connectoin string (hopefully last question) |
|||||||||||||||||||||||