473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Winforms and WebForms

Can I use C# (Winforms) to design a website?. I am from C/C++ background
but know nothing about Internet programming.

My understanding of WebForms are that they are similar to WinForms in
that they give a WYSIWYG environment for designing user interfaces -
however, all searches I have done on WebForms display the actual HTML,
not a WYSIWYG environment.

My questions (finally) then are.

1). Can I design a web user interface using C#?
2). Do I use WinForms or WebForms ?
3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?
4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)
Jul 13 '06 #1
5 4916
1. You use combination of HTML, DHTML and CSS to "design" the web user
interface. C# is used for the server-side programming of those interfaces.
For example, you use C# to tell what should happen on the server-side (&
possibly respond back) when an user clicks on a button (say Search button)
on the web interface.

2. Use WebForms. WinForms are for developing Windows applications

3. Since browsers are only bothered about the markup (HTML/DHTML) and any
associated style info (in CSS), it doesn't matter what language is used on
the server-side. Of course you need a Windows-based server (or Win XP Pro)
to use ASP.NET/C#. ASP.NET is a framework, part of .NET, used to develop
WebForms-based apps.

4. You can use Apache, but it doesn't support WebForms/C#.

Take a look at www.asp.net. It has tons of info on ASP.NET. For basics of
HTML/DHTML/CSS, there are thousands of tutorials. A simple googling would
help. Take a look at http://www.w3schools.com/ for HTML/DHTML and other web
basics.

All the Best.

"Bit byte" <fl**@flop.comwrote in message
news:zZ******************************@bt.com...
Can I use C# (Winforms) to design a website?. I am from C/C++ background
but know nothing about Internet programming.

My understanding of WebForms are that they are similar to WinForms in
that they give a WYSIWYG environment for designing user interfaces -
however, all searches I have done on WebForms display the actual HTML,
not a WYSIWYG environment.

My questions (finally) then are.

1). Can I design a web user interface using C#?
2). Do I use WinForms or WebForms ?
3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?
4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)
Jul 13 '06 #2
Bit Byte,
Windows Forms and Web Forms share a similar event-based programming model,
but that is where the similarity ends. See inline for other answers:

1). Can I design a web user interface using C#?
Yes, you would use ASP.NET Web Project type with C# as the language.
2). Do I use WinForms or WebForms ?
You would use WebForms. WebForms is a name for an ASPX web page. The IDE
provides a Design View similar to that of the Windows Form.
3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?
Yes.
4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)
No, unless you use MONO and the correct mod to handle ASP.NET for Apache.

Hope that helps,
Peter

Jul 13 '06 #3


Peter Bromberg [C# MVP] wrote:
Bit Byte,
Windows Forms and Web Forms share a similar event-based programming model,
but that is where the similarity ends. See inline for other answers:


>>1). Can I design a web user interface using C#?


Yes, you would use ASP.NET Web Project type with C# as the language.

>>2). Do I use WinForms or WebForms ?


You would use WebForms. WebForms is a name for an ASPX web page. The IDE
provides a Design View similar to that of the Windows Form.

>>3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?


Yes.

>>4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)


No, unless you use MONO and the correct mod to handle ASP.NET for Apache.

Hope that helps,
Peter
Hi Peter that certainly helps.

I am thinking of using and mod_mono (OT here I know), but atleast you
have confirmed that I am not mad for even considering it. Just to be
clear (this is what I think you're saying). I can develop a Web front
end (i.e. an ASP.Net application) using C#, and then run the ASP.net
application in an Apache server (using mod_mono) - Is that correct ?

Lastly, a lot of my server side logic already resides in PHP scripts. Is
there ANY way I can call the php scripts from C# (I can't think ehy not0
afterall, they're just "Urls" ending in "*.php". But I'd just like a
second opinion on this.

Jul 13 '06 #4
Bit Byte,
Regarding mod_mono, you are right on target. Regarding the PHP scripts,
Microsoft has a free download that will help you convert PHP to ASP.NET.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Bit byte" wrote:
>

Peter Bromberg [C# MVP] wrote:
Bit Byte,
Windows Forms and Web Forms share a similar event-based programming model,
but that is where the similarity ends. See inline for other answers:


>1). Can I design a web user interface using C#?

Yes, you would use ASP.NET Web Project type with C# as the language.

>2). Do I use WinForms or WebForms ?

You would use WebForms. WebForms is a name for an ASPX web page. The IDE
provides a Design View similar to that of the Windows Form.

>3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?

Yes.

>4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)

No, unless you use MONO and the correct mod to handle ASP.NET for Apache.

Hope that helps,
Peter

Hi Peter that certainly helps.

I am thinking of using and mod_mono (OT here I know), but atleast you
have confirmed that I am not mad for even considering it. Just to be
clear (this is what I think you're saying). I can develop a Web front
end (i.e. an ASP.Net application) using C#, and then run the ASP.net
application in an Apache server (using mod_mono) - Is that correct ?

Lastly, a lot of my server side logic already resides in PHP scripts. Is
there ANY way I can call the php scripts from C# (I can't think ehy not0
afterall, they're just "Urls" ending in "*.php". But I'd just like a
second opinion on this.

Jul 13 '06 #5
KJ
Check out this:

http://www.asp.net/migrationassistan...t.aspx?tabid=1

Bit byte wrote:
Peter Bromberg [C# MVP] wrote:
Bit Byte,
Windows Forms and Web Forms share a similar event-based programming model,
but that is where the similarity ends. See inline for other answers:


>1). Can I design a web user interface using C#?

Yes, you would use ASP.NET Web Project type with C# as the language.

>2). Do I use WinForms or WebForms ?

You would use WebForms. WebForms is a name for an ASPX web page. The IDE
provides a Design View similar to that of the Windows Form.

>3). Is a web interface/application developed by C# capable of running on
any browser on any OS ?

Yes.

>4). Can I use Apache as my Webserver when developing my web application
(links or tips will be very helpful)

No, unless you use MONO and the correct mod to handle ASP.NET for Apache.

Hope that helps,
Peter

Hi Peter that certainly helps.

I am thinking of using and mod_mono (OT here I know), but atleast you
have confirmed that I am not mad for even considering it. Just to be
clear (this is what I think you're saying). I can develop a Web front
end (i.e. an ASP.Net application) using C#, and then run the ASP.net
application in an Apache server (using mod_mono) - Is that correct ?

Lastly, a lot of my server side logic already resides in PHP scripts. Is
there ANY way I can call the php scripts from C# (I can't think ehy not0
afterall, they're just "Urls" ending in "*.php". But I'd just like a
second opinion on this.
Jul 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BillyTheKid | last post by:
Are there any rules of thumb for when it is more appropriate to use WinForms over WebForms. It strikes me that WinForms is best suited for many/most "Intranet" and some "Extranet" scenarios but...
20
by: Martin Rosén-Lidholm | last post by:
Although an impossible question to answer, I fell urged to raise it anyhow. Given a fairly complex ERP application scenario, what's your estimation for the X-ratio dev. time for...
2
by: Mahesh Kumar.R | last post by:
I'm into designing an application in winforms but in near future my client may request the same thing in webforms. so (1) what are all the design guidelines and ways are there to migrate easily in...
4
by: 3Cooks | last post by:
I have a windows application written in Visual Basic 6.0 that is going to be redeveloped in dotNET. We are trying to decide if we should deploy using Webforms or Winforms and I need advice from...
2
by: Mark Rae | last post by:
Hi, Just looking for some v2 guidance here... In WebForms, the DropDownList control has an Items collection which contains ListItem objects which, in turn, very conveniently contain a text...
5
by: dwight | last post by:
Hi all First - I apologise if anyone recognises this from a previous post but I never worded what I wanted to know properly and getting quick advice is imperative to me now. In future I will...
5
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as...
4
by: Dean Slindee | last post by:
I would like to build a WinForm demo form to demonstrate the various controls, events, etc that WinForms can do that WebForms cannot. This is intended as an objective way to compare the various...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.