K
Kevin
How do I include mb.html if I check file is existed? I'm assuming I do this in codebehind, but how?
Basically if the file exists, it should display the page that will include mb.html.
---------------------------------------------------------------------------------------------------------
html code inside mb.html
<table><tr><td>9/27/2005 11:00:43 AM</td><td>God is great!</td></tr></table>
<table><tr><td>9/27/2005 11:01:03 AM</td><td>I love Jesus</td></tr></table>
In my codebehind,
if (File.Exists(Server.MapPath(mb.html)))
{
// include mb.html html code
}
else
{
do something else
}
Basically if the file exists, it should display the page that will include mb.html.
---------------------------------------------------------------------------------------------------------
html code inside mb.html
<table><tr><td>9/27/2005 11:00:43 AM</td><td>God is great!</td></tr></table>
<table><tr><td>9/27/2005 11:01:03 AM</td><td>I love Jesus</td></tr></table>
In my codebehind,
if (File.Exists(Server.MapPath(mb.html)))
{
// include mb.html html code
}
else
{
do something else
}