Well in legacy ASP I could build pages in an html editor so the editor didn't care where the include file lived so when I put the page on the server it would find the file with no problem.
None of that is true in ASP.NET because it has to be compiled so it definately cares whether or not it can...
In legacy ASP I call the file like this:
<tr>
<td><!-- #include virtual="/somefile.inc" --></td>
</tr>
In ASP.NET if I place the include in the table cell I get the following runtime error:
"Could not find file "c:\inetpub\wwwroot\somefile.inc".
The error prevents me from testing the...
You said --
"If you want to use ASP.NET correctly then
1) Replace the use of include files with User Controls and Classes (like I demonstrated).
2) Move the javascript from you include file into a .js file.
3) Create a css file and make your tables us this file
4) Replace the "calls to more...
Sorry ca8msm, I still don't see how that solves the problem.
The include file needs to be displayed within a specific table cell and the include file I need to display contains graphics, javascript and calls to more includes so I still don't understand how creating a class with a function in...
Thanx for the reply ca8msm but I'm still stumped.
Even if I create a class I still would have to make a call to the include file to get it to appear in the page.
How do I get it to appear if I'm not supposed to use
<!-- #include file="somefile.inc" --> ??
I guess I'm not understanding how...
Hello,
I'm very new to ASP.NET I am developing an application that uses a couple SSI's. The problem is, the files reside on a web server and I cannot download them to my local drive and add them to my project.
Everything I've tried this far to include them has failed and I end up with runtime...
I'm new to .NET (only two weeks!) and I have an ASP.NET application I'm working on and I can't find a solution to my problem so here I am asking for help!
I have a radio button group and a textbox on a form.
The radio button group does not have a preselected value and the textbox has no...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.