Dear all,
I need to build a web application which will contains articles (long or short)
I was wondering on what is the correct way to retrive those article on web
page.
In orther words, when there is such information to be displayed are they
coming from imported files, database ?
Where and how this type of information is stored ?
What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards
serge 10 2376
Your questions are too vague to really be able to answer. Information
storage and display our dependent upon your particular situation and without
knowing the exact content that you want to process, it is hard to give an
answer.
You have to ask yourself what makes more sense. Will the articles be
relating to other pieces of information, if so then maybe a database. Are
the articles static content, then maybe just store them as files on the
disk. You will need to evaluate any security issues with your content. For
instance, if they are stored on your local disk and you only want the user
to access them through your pages, then you might have to place them outside
of your virtual folder, but then you have to consider additional security to
allow IIS to access them. Are the articles already formatted? Will the
user be submitting new articles? Where will the articles come from?
I would suggest that you work out the requirements for your application,
then ask specific questions about your project or scenario. There is also
the tried and true method of implementing alternative solutions to see which
might be better.
Basically, there is no "correct way".
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
The easiest ways though ASP.NET is to use the dataset object. The dataset draws it's information either from an XML file or a database. XML is best if you are unfamiliar with databases, it's rather strait forward.
example...
-------
private DataSet theDataStore;
private string theRootDirector y = "c:\";
theDataStore = new DataSet();
theDataStore.Re adXmlSchema(the RootDirectory + "Database.xsd") ;
theDataStore.Re adXml(theRootDi rectory + "Database.xml") ;
-------
This is pretty basic. Use visual studio to design a xsd and xml file to work with. I use XML on one site because there is no database servers available.
If your just beginning with ASP.NET programming, then learning what all the dataset can do is one of the most central parts. As you move forward, you might stray away from the dataset because it's a bit general. But as a beginner, you should go with the best documented and versital solution. Any and All sites that are big should rely on a true database, not XML.
I figured that you'll get the normal SQL solutions in response, XML is another possibility.
Good luck
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... Dear all, I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ? Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ? Thanks for your reply regards serge
> I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
So far, we can glean that your requirements include:
A web application.
It has something to do with "articles" (undefined).
These "articles" are stored somewhere (you don't know where)
They are displayed in a web page.
"Articles" indicates some kind of document. Could be pure text, scanned
newspaper articles in TIFF format, HTML, XML, PDF, RTF, Word documents,
Excel documents, who knows? Well, if you're writing the app, I would have to
say you ought to.
Where are they stored? I don't know. Where are they supposed to come from?
Who is creating or has created them? Is the only requirement that they be
displayed in a web page, or are there other requirements? Is this an
Internet or an Intranet? How many of them are there? Will they be edited
online? Whose idea was this in the first place? Perhaps he/she would know.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
How do you store a PDF document in an XML file? In a CDATA section?
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"Steve H." <ha********@hot mail.com> wrote in message
news:e0******** ******@TK2MSFTN GP14.phx.gbl...
The easiest ways though ASP.NET is to use the dataset object. The dataset
draws it's information either from an XML file or a database. XML is best
if you are unfamiliar with databases, it's rather strait forward.
example...
-------
private DataSet theDataStore;
private string theRootDirector y = "c:\";
theDataStore = new DataSet();
theDataStore.Re adXmlSchema(the RootDirectory + "Database.xsd") ;
theDataStore.Re adXml(theRootDi rectory + "Database.xml") ;
-------
This is pretty basic. Use visual studio to design a xsd and xml file to
work with. I use XML on one site because there is no database servers
available.
If your just beginning with ASP.NET programming, then learning what all the
dataset can do is one of the most central parts. As you move forward, you
might stray away from the dataset because it's a bit general. But as a
beginner, you should go with the best documented and versital solution. Any
and All sites that are big should rely on a true database, not XML.
I figured that you'll get the normal SQL solutions in response, XML is
another possibility.
Good luck
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
Thnaks peter,
Ok let's be general in the sense that how dynamic web page content iare
usually handle ?
"Peter Rilling" wrote: Your questions are too vague to really be able to answer. Information storage and display our dependent upon your particular situation and without knowing the exact content that you want to process, it is hard to give an answer.
You have to ask yourself what makes more sense. Will the articles be relating to other pieces of information, if so then maybe a database. Are the articles static content, then maybe just store them as files on the disk. You will need to evaluate any security issues with your content. For instance, if they are stored on your local disk and you only want the user to access them through your pages, then you might have to place them outside of your virtual folder, but then you have to consider additional security to allow IIS to access them. Are the articles already formatted? Will the user be submitting new articles? Where will the articles come from?
I would suggest that you work out the requirements for your application, then ask specific questions about your project or scenario. There is also the tried and true method of implementing alternative solutions to see which might be better.
Basically, there is no "correct way". "serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
I am familar with both but does that works with huge text information ?
"Steve H." wrote: The easiest ways though ASP.NET is to use the dataset object. The dataset draws it's information either from an XML file or a database. XML is best if you are unfamiliar with databases, it's rather strait forward.
example...
------- private DataSet theDataStore;
private string theRootDirector y = "c:\";
theDataStore = new DataSet();
theDataStore.Re adXmlSchema(the RootDirectory + "Database.xsd") ;
theDataStore.Re adXml(theRootDi rectory + "Database.xml") ;
-------
This is pretty basic. Use visual studio to design a xsd and xml file to work with. I use XML on one site because there is no database servers available.
If your just beginning with ASP.NET programming, then learning what all the dataset can do is one of the most central parts. As you move forward, you might stray away from the dataset because it's a bit general. But as a beginner, you should go with the best documented and versital solution. Any and All sites that are big should rely on a true database, not XML.
I figured that you'll get the normal SQL solutions in response, XML is another possibility.
Good luck
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
Thnaks kevin.
More generaly how dynamic web page content works ?
The idea is that I need to build a web site for a customer who will be able
to easily change its content (talking about an article or news). I have to
consider that people who will be able to update document knows nothing about
htm, xml or whatever stuff.
Just a simply way to update document or introduce new one
What I was wondering also is that if we condider that document can be any
file format, does a database can store those file object or they could be
only path in tables ?
I kow it is not clear yet but just have a brif idea on how usually people
process with dynamic content
serge
"Kevin Spencer" wrote: I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
So far, we can glean that your requirements include:
A web application. It has something to do with "articles" (undefined). These "articles" are stored somewhere (you don't know where) They are displayed in a web page.
"Articles" indicates some kind of document. Could be pure text, scanned newspaper articles in TIFF format, HTML, XML, PDF, RTF, Word documents, Excel documents, who knows? Well, if you're writing the app, I would have to say you ought to.
Where are they stored? I don't know. Where are they supposed to come from? Who is creating or has created them? Is the only requirement that they be displayed in a web page, or are there other requirements? Is this an Internet or an Intranet? How many of them are there? Will they be edited online? Whose idea was this in the first place? Perhaps he/she would know.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Ambiguity has a certain quality to it.
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
I dont... and i apologize.
I must have misunderstood the problem. Even if it's possible, the general
idea of a 1mb pdf in a xml file doesnt sound too attractive. I thought he
meant general data like html content.
"Kevin Spencer" <ke***@DIESPAMM ERSDIEtakempis. com> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. .. How do you store a PDF document in an XML file? In a CDATA section?
-- HTH,
Kevin Spencer Microsoft MVP .Net Developer Ambiguity has a certain quality to it.
"Steve H." <ha********@hot mail.com> wrote in message news:e0******** ******@TK2MSFTN GP14.phx.gbl... The easiest ways though ASP.NET is to use the dataset object. The dataset draws it's information either from an XML file or a database. XML is best if you are unfamiliar with databases, it's rather strait forward.
example...
------- private DataSet theDataStore;
private string theRootDirector y = "c:\";
theDataStore = new DataSet();
theDataStore.Re adXmlSchema(the RootDirectory + "Database.xsd") ;
theDataStore.Re adXml(theRootDi rectory + "Database.xml") ;
-------
This is pretty basic. Use visual studio to design a xsd and xml file to work with. I use XML on one site because there is no database servers available.
If your just beginning with ASP.NET programming, then learning what all the dataset can do is one of the most central parts. As you move forward, you might stray away from the dataset because it's a bit general. But as a beginner, you should go with the best documented and versital solution. Any and All sites that are big should rely on a true database, not XML.
I figured that you'll get the normal SQL solutions in response, XML is another possibility.
Good luck
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... Dear all,
I need to build a web application which will contains articles (long or short) I was wondering on what is the correct way to retrive those article on web page. In orther words, when there is such information to be displayed are they coming from imported files, database ?
Where and how this type of information is stored ? What is the way to retrieve such information in order to display it in page ?
Thanks for your reply
regards serge
Hi serge, More generaly how dynamic web page content works ?
A web page is basically an HTML document. HTML is a pure text markup
language that enables data to be displayed in a formatted manner. ASP.Net is
a technology that, at the most basic level, delivers HTML to a web browser.
Originally, HTML documents were simply files on a server. When a Request
came to the server for "somePage.h tm," the server opened "somePage.h tm" from
its file system, and streamed it back to the browser, which then parsed and
formatted the document. What ASP.Net does, again at base level, is to bypass
the "open a file" part, and simply stream HTML to the browser. It controls
the HTML that is streamed to the browser as an HTML document. It is
therefore, "dynamic content."
Now, of course, browsers can deal with many other forms of documents,
images, files, and so on. An HTML page can "contain," for example, an image.
However, it doesn't actually contain the image. It is pure text. It contains
an image markup tag that tells the browser where to download the image from,
where to place it in the page, how to resize it, etc. A browser can also
display a non-HTML file directly, assuming that the browser supports that
file format. Internet Explorer, for example, can display Word documents,
Excel Files, RTF files, GIF images, JPG images, and several other file
formats straight out of the box. Adobe makes browser add-ons for PDF files,
as well as do any number of other vendors. And ASP.Net can also deliver any
file format to a browser in its native state.
In fact, ASP.Net can work with anything that a browser can work with, and
other web technologies as well, including XML Web Services, Remoting, and so
on.
The idea is that I need to build a web site for a customer who will be able to easily change its content (talking about an article or news). I have to consider that people who will be able to update document knows nothing about htm, xml or whatever stuff.
Now you're thinking like a User. If you want to program, you have to think
like a programmer. Humans don't see data the same way that computers do. We
see "an article" (some form of written language and/or media communication)
in a newspaper, on a web page, in a newsgroup, on television, what-have-you,
and our brain automatically extracts the information from it, converts it
into abstract thought, and we don't consciously think of one medium as being
different from another. In fact, we don't consciously think of the delivery
mechanism at all; we think of the thought information we extract from it.
To write a program, however, you don't think of data as "an article."
"Aritcle" is a generic and broad abstraction that is useful to humans,
because humans are sophisticated enough to get a general idea of what is
being discussed, and often glean more information (only the information that
is pertinent to the listener) from the context in which it is used. But to a
computer, and in reality, it is data. It is in some format. It is stored in
some location. It requires parsing, munging, and all of that other stuff
which our brains do automatically, to be done by a computer program. The
program knows nothing but what we tell it. It is not capable of
interpretation, abstraction, or intelligent thought. It cannot do anything
the programmer does not tell it explicitly to do. In short, humans are very
very smart. Computers are actually very very stupid.
To us, a "document" is something we read, from any number of sources, and
what the format is is not of any importance. To a computer, a "document" is
a one-dimensional stream of bits (1s and 0s). How it is handled depends
entirely on what format those bits are arranged in.
What I was wondering also is that if we condider that document can be any file format, does a database can store those file object or they could be only path in tables ?
The first thing you need to do is to start thinking like a programmer. You
need to define the terms "article" and "document" very specifically, or you
will not be able to tell the program how to deal with them. What are the
specific definitions of those sets of data that will be defined as
"articles?" Are they multi-page TIFF files, Word documents, pure text
documents, multi-media presentations, PDF files, etc.?
When you talk about "updating" you're opening up another can of worms. A
text file is relatively easy to edit, but not in a browser. And as the
browser is only looking at a downloaded copy of a file, how does the end
user save the changes back to the server? A PDF document, on the other hand,
requires some specific Adobe software to be installed on the client machine
to be edited. And the same kinds of problems with regards to getting it back
to the web server exist for PDF and any other document format as well.
And of course, we have not yet discussed how the "articles" will be stored.
That also depends on the answers to the questions I posed above.
Just a simply way to update document or introduce new one
Again, you're thinking like a User. Computer programs look simple to users
because programmers go to a great deal of difficulty to make them seem that
way. The more user-friendly an interface is, the more programmer-UNfriendly
the program actually is. An example of a "simple" ASP.Net application might
be to create a page that dynamically writes "hello world" to the browser. It
takes no user input from the user. it contains no logic. It simply outputs a
string. THAT is simple. Almost everything else is complex in one way or
another, and to a greater or lesser degree.
I hope this gives you an idea of where you need to start. Perhaps a "hello
world" ASP.Net web page would be a good place to start. You can work your
way up from there, one piece at a time. If you take small steps, you're much
less likely to fall.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in
message news:F5******** *************** ***********@mic rosoft.com... Thnaks kevin.
More generaly how dynamic web page content works ? The idea is that I need to build a web site for a customer who will be able to easily change its content (talking about an article or news). I have to consider that people who will be able to update document knows nothing about htm, xml or whatever stuff.
Just a simply way to update document or introduce new one
What I was wondering also is that if we condider that document can be any file format, does a database can store those file object or they could be only path in tables ?
I kow it is not clear yet but just have a brif idea on how usually people process with dynamic content
serge
"Kevin Spencer" wrote:
> I need to build a web application which will contains articles (long or > short) > I was wondering on what is the correct way to retrive those article on > web > page. > In orther words, when there is such information to be displayed are > they > coming from imported files, database ?
So far, we can glean that your requirements include:
A web application. It has something to do with "articles" (undefined). These "articles" are stored somewhere (you don't know where) They are displayed in a web page.
"Articles" indicates some kind of document. Could be pure text, scanned newspaper articles in TIFF format, HTML, XML, PDF, RTF, Word documents, Excel documents, who knows? Well, if you're writing the app, I would have to say you ought to.
Where are they stored? I don't know. Where are they supposed to come from? Who is creating or has created them? Is the only requirement that they be displayed in a web page, or are there other requirements? Is this an Internet or an Intranet? How many of them are there? Will they be edited online? Whose idea was this in the first place? Perhaps he/she would know.
-- HTH,
Kevin Spencer Microsoft MVP ..Net Developer Ambiguity has a certain quality to it.
"serge calderara" <se************ @discussions.mi crosoft.com> wrote in message news:6E******** *************** ***********@mic rosoft.com... > Dear all, > > I need to build a web application which will contains articles (long or > short) > I was wondering on what is the correct way to retrive those article on > web > page. > In orther words, when there is such information to be displayed are > they > coming from imported files, database ? > > Where and how this type of information is stored ? > What is the way to retrieve such information in order to display it in > page ? > > Thanks for your reply > > regards > serge
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: delisonews |
last post by:
I'm looking for a simple, filesystem-based message board.
(No MySQL!) Something that I could include easily in my code:
include '../inc/messageboard.php';
.... so that the board shows up at the bottom of every PHP
page. The board should have just the basic features, like:
- posting capability
|
by: Patchwork |
last post by:
Hi Everyone,
Please take a look at the following (simple and fun) program:
////////////////////////////////////////////////////////////////////////////
/////////////
// Monster Munch, example program
#include <list>
|
by: Dan |
last post by:
Using XML::Simple in perl is
extreemly slow to parse big
XML files (can be up to 250M,
taking ~1h).
How can I increase my performance /
reduce my memory usage?
Is SAX the way forward?
|
by: Manuel Collado |
last post by:
I would like to write simple, yet well structured documents with a
really simple XML DTD (or schema). Either Docbook or SDocbook are
overkill for this simple case.
XHTML is simpler, but unstructured (no nested sections). And is not
really very simple.
Before trying to setup a stripped-down document format by myself, I
would like to know if there are simple XML document structure proposals
ready to be used (I dislike to reinvent the...
|
by: JKop |
last post by:
Take the following simple function:
unsigned long Plus5Percent(unsigned long input)
{
return ( input + input / 20 );
}
Do yous ever consider the possibly more efficent:
| |
by: Steven Blair |
last post by:
I have the following number:
64521234567890
and need to apply some sort of simple encryption.
Does c# have any classes for doing this. I cant use 3DES or anything as
complex as.
The size of the string cannot increase either (no more than 14 chars)
and must be numeric only.
|
by: abcd |
last post by:
I am trying to set up client machine and investigatging which .net
components are missing to run aspx page.
I have a simple aspx page which just has "hello world" printed....
When I request that page like http://machinename/dir1/hellp.aspx
instead of running that page it starts downloding ...whats missing here
....why the aspx engine not running the page....
|
by: firstcustomer |
last post by:
Hi,
Firstly, I know NOTHING about Javascript I'm afraid, so I'm hoping that
someone will be able to point me to a ready-made solution to my
problem!
A friend of mine (honest!) is wanting to have on his site, a Javascript
Calculator for working out the cost of what they want, for example:
1 widget and 2 widglets = £5.00
|
by: Giancarlo Berenz |
last post by:
Hi:
Recently i write this code:
class Simple
{
private:
int value;
public:
int GiveMeARandom(void);
|
by: Phillip Taylor |
last post by:
Hi guys, I'm looking to develop a simple web service in VB.NET but I'm
having some trivial issues. In Visual Studio I create a web services
project and change the asmx.vb file to this:
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.ComponentModel
<System.Web.Services.WebService(Namespace:="http://
wwwpreview.#deleted#.co.uk/~ptaylor/Customer.wsdl")_
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |