Groups | Blog | Home
all groups > asp.net > april 2006 >

asp.net : New to ASP


Peter Rilling
4/13/2006 8:28:46 PM
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.

[quoted text, click to view]

Josh
4/13/2006 10:05:01 PM
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

Kevin Spencer
4/14/2006 6:00:34 AM
In case he *doesn't* mean ASP.Net, he can find ASP help at
microsoft.public.inetserver.asp.db.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Show me your certification without works,
and I'll show my certification
*by* my works.

[quoted text, click to view]

Chris Fulstow
4/14/2006 1:24:25 PM
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
Josh
4/14/2006 2:06:47 PM
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
[quoted text, click to view]

Josh
4/14/2006 7:50:10 PM
Are ther any good tutorial sites that could show me how to work with
XmlDocument object?

Thank you
Josh
[quoted text, click to view]

Chris Fulstow
4/15/2006 3:43:40 AM
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
AddThis Social Bookmark Button