Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

![]() |
Know if IP is online, wit...
|
changing cotent to a list
|

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