Computing.Net > Forums > Web Development > ASP.NET and PHP

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ASP.NET and PHP

Reply to Message Icon

Name: buta
Date: August 1, 2006 at 00:29:29 Pacific
OS: windows
CPU/Ram: 3G/1G
Product: ibm
Comment:

I started to learn asp.net recently having a trouble displaying a dynamic content.

If I want to display a content depending on a passed variable in PHP, I would do as follows:

if(!(isset($_GET['cmd'])))
{
?>
Entire home page content in html
<?php
}
else if($_GET['cmd']=='product')
{
?>
Entire product page content in html
<?php
}

this way one php file can contain a bunch of html pages.

However in ASP.NET(I am using C#), I have no idea how I can do that.
Could someone give me an example(in C#)?

free tune up http://www.pcpitstop.com



Sponsored Link
Ads by Google

Response Number 1
Name: buta
Date: August 1, 2006 at 01:26:35 Pacific
Reply:

Self report:

I figured out that one aspx file can contain several server-side forms(not html forms) as long as only one is visible and rendered at a time. Then I can set visible/not visible dynaimically for each server-side form in order to display different html content.

This is exactly what I needed to know!

free tune up http://www.pcpitstop.com


0

Response Number 2
Name: SN
Date: August 1, 2006 at 08:51:06 Pacific
Reply:

This looks like a serious mess in both PHP and ASP.NET...I would consider keeping them seperate and sharing any common functionality via master pages or user controls.

Good luck,
-SN


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Know if IP is online, wit... changing cotent to a list



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: ASP.NET and PHP

best books for asp.net and c# www.computing.net/answers/webdevel/best-books-for-aspnet-and-c/2220.html

ASP.NET or PHP www.computing.net/answers/webdevel/aspnet-or-php/2954.html

ASP.NET and javascript www.computing.net/answers/webdevel/aspnet-and-javascript/3361.html