Include files

G

Guest

Hi guys, I have a asp page and is there any way i can just code with C# to
include this asp page as content just like <% include filename %>

Manny
 
G

Guest

Mike, what is the statement that i write to include asp file on it.
<%Include filename%> etc

Manny
 
G

Guest

if you use a user control it will be like this:

on the top of the aspx page:
<%@ Register TagPrefix="usercontrolname" TagName="for the html to recognize"
src="usercontrolsourcefile"%>

then in the html:
this will show the user control on the aspx page in the browser
<usercontrolname:for the html to recognize id="whatever"
runat=server></usercontrolname:for the html to recognize>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top