I Am Developing Web Application In Asp.Net, I Want To Include Jpg File As Header In All In My Aspx P
i want to include jpg file as header in all pages of the application. The probelm I am facing here is that as I include file like this
<<!--include file="header_ssca.jpg"--> it includes files as junk character. and after the completion of execution of this jpg file I should get the control of execution in the file which is including it, but i am not getting it. I have tried with server.execute and server.transfer as well but my problem is not solved
please help me
<<!--include file="header_ssca.jpg"--> it includes files as junk character. and after the completion of execution of this jpg file I should get the control of execution in the file which is including it, but i am not getting it. I have tried with server.execute and server.transfer as well but my problem is not solved
please help me
I think you are misinterpreting the use of the <!--#include--> tag. It's purpose is to include a plain text file (usually an asp/aspx file) which will always be displayed as plain text.
If you are trying to insert a picture on every page the code you should put at the top of the page is:
<%
Response.Write "<img src=""header_ssca.jpg"" />"
%>
Although the best place for it would be inside the HTML body tag.
Hope this helps you achieve the result you wanted.
If you are trying to insert a picture on every page the code you should put at the top of the page is:
<%
Response.Write "<img src=""header_ssca.jpg"" />"
%>
Although the best place for it would be inside the HTML body tag.
Hope this helps you achieve the result you wanted.
I think you are misinterpreting the use of the <!--#include--> tag. It's purpose is to include a plain text file (usually an asp/aspx file) which will always be displayed as plain text.
If you are trying to insert a picture on every page the code you should put at the top of the page is:
<%
Response.Write "<img src=""header_ssca.jpg"" />"
%>
Although the best place for it would be inside the HTML body tag.
Hope this helps you achieve the result you wanted.
If you are trying to insert a picture on every page the code you should put at the top of the page is:
<%
Response.Write "<img src=""header_ssca.jpg"" />"
%>
Although the best place for it would be inside the HTML body tag.
Hope this helps you achieve the result you wanted.