If C# is used for ecommerce..

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

How can C# be used for a website ?
Would the person viewing a site need to have the .NET framework
installed ?
What other technologies would need to be used ?
Would a database server be needed for dynamic content ?
 
Greg said:
How can C# be used for a website ?

C# can be used in the code behind the ASP.NET pages.
Would the person viewing a site need to have the .NET framework
installed ?

If only HTML is being sent to the client then the person viewing the site
would only need a web browser.
What other technologies would need to be used ?

On the client - none. On the server, besides IIS and the .NET framework,
anything else would depend on the requirements of the application.
Would a database server be needed for dynamic content ?

Not necessarily. Often dynamic content data is stored in a database, but it
doesn't have to be there.
 
Greg said:
How can C# be used for a website ?
Would the person viewing a site need to have the .NET framework
installed ?
What other technologies would need to be used ?
Would a database server be needed for dynamic content ?

Here below are answers for your queries.
How can C# be used for a website ?
C# is one amoung the languages that can be used in dotnet framework.
While creating websites (asp.net applications), C# can be used as the
code behind language for ASP.Net pages to handle the logic. With ASP,
we were using asp scripting to make use of asp objects where as here
you can use C# for the same purpose.
Would the person viewing a site need to have the .NET framework
installed ?
Since the end user gets only the html contents, it is not required to
have dotnet installed on end users PC.
What other technologies would need to be used ?
To make web application, from dotnet side, you need to use ASP.NET with
any code behind languages(C#, VB.NET, VC.NET etc) with iis webserver.
Would a database server be needed for dynamic content ?
You can have DB servers. Well you can even use any other sources like
text files, Xml files to read out and display to the web page.
 
So does Visual Studio (ASP.NET) does not create HTML content except for
online forms ?
 
Greg said:
So does Visual Studio (ASP.NET) does not create HTML content except for
online forms ?

ASP.NET is one type of application that you can create in Visual Studio
Dotnet.
While rendering the contents to the browser, the server process
converts the asp.net code results to html. It does not have to create
html contents, if its not meant to display inside browser.

- Ranjeesh
 
So does Visual Studio (ASP.NET) does not create HTML content except for
online forms ?

ASP.NET can create pretty much anything you like - doesn't have to be forms.
Can be text, images etc...
 
Mark said:
ASP.NET can create pretty much anything you like - doesn't have to be forms.
Can be text, images etc...

But if you were making that sort of web page with text and images
(unless the content were dynamic) why would you want to use ASP and C#
atall ?
 
Greg said:
But if you were making that sort of web page with text and images
(unless the content were dynamic) why would you want to use ASP and C#
atall ?

Unless you are doing some server side processing, or need the flexibility of
some of the ASP.NET webform controls, or use some of the configuration
options available in .NET, then probably you wouldn't. If your pages are
just static HTML with some CSS and javascript, then there is no need to
create an ASP.NET application.
 
But if you were making that sort of web page with text and images
(unless the content were dynamic) why would you want to use ASP and C#
at all ?

No reason whatever!

Even though your post includes "ecommerce" in its title, you could still
develop a perfectly valid ecommerce website with nothing but HTML and
JavaScript. PayPal integration, e.g., is possible via the submission of
hidden fields...

However, without server-side functionality, I think you'll find ecommerce
pretty hard work...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top