Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to insert html code into an aspx file

Posted on 2008-06-10
3
1,584 Views
Last Modified: 2012-05-05
How would you insert an html code into an aspx file

<head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>X</title>
      <link rel="stylesheet" href="includes/style.css" type="text/css" media="screen">
      <script type="text/javascript" src="includes/object.js"></script>
</head>
<body>
<div id="contain">
<div id="header">
<div id="headertopnav"></div>
<!-- MAIN NAVIGATION -->
<div id="headernavleft">
<a href="option1" id="option1"><img src="layout/nav_blank.gif" alt="option1" /></a>
<a href="option2" id="option2"><img src="layout/nav_blank.gif" alt="option2" /></a>
<span><img src="layout/nav.gif" alt="option3" /></span>
<a href="option4" id="option4"><img src="layout/nav_blank.gif" alt="option4" /></a>
<a href="option5" id="option5"><img src="layout/nav_blank.gif" alt="foption5" /></a>
<a href="option6" id="option6"><img src="layout/nav_blank.gif" alt="option6" /></a>
</div>
<div id="headernavmid"></div>
<div id="headernavmid2"></div>
<div id="headernavright">
<a href=""><img src="layout/nav.gif" alt="home" /></a>
</div>
<div id="headersub">
&nbsp;
</div>
</div>



<%@ Control Language="C#" %>
<div class="screen">
<div class="header">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="headerLeft"><img runat="server" src="~/Images/my.gif" hspace="0" vspace="0" border="0" alt=""></td>
<td class="headerRight"><img runat="server" src="~/Images/my2.gif" hspace="0" vspace="0" border="0" alt=""></td>
</tr>
</table>
</div>
</div>

Open in new window

0
Comment
Question by:daz1234
  • 2
3 Comments
 
LVL 10

Expert Comment

by:bluefezteam
ID: 21752877
Please explain what you want to achieve exactly
0
 

Author Comment

by:daz1234
ID: 21753820
want to add the following html text into the aspx file representing the header content
0
 
LVL 10

Accepted Solution

by:
bluefezteam earned 500 total points
ID: 21758305
Im not sure exactly what you mean, but you can just copy and paste the html you want into the aspx as required. Below is what I think you want:
<%@ Control Language="C#" %>
<div class="screen">
<div class="header">
<div id="header">
<div id="headertopnav"></div>
<!-- MAIN NAVIGATION -->
<div id="headernavleft">
<a href="option1" id="option1"><img src="layout/nav_blank.gif" alt="option1" /></a>
<a href="option2" id="option2"><img src="layout/nav_blank.gif" alt="option2" /></a>
<span><img src="layout/nav.gif" alt="option3" /></span>
<a href="option4" id="option4"><img src="layout/nav_blank.gif" alt="option4" /></a>
<a href="option5" id="option5"><img src="layout/nav_blank.gif" alt="foption5" /></a>
<a href="option6" id="option6"><img src="layout/nav_blank.gif" alt="option6" /></a>
</div>
<div id="headernavmid"></div>
<div id="headernavmid2"></div>
<div id="headernavright">
<a href=""><img src="layout/nav.gif" alt="home" /></a>
</div>
<div id="headersub">
&nbsp;
</div>
 
</div>
</div>

Open in new window

0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Easy responsive table out of existing table 28 60
Asp in server side with Mssql Server 7 4 27
Why "Mobile First"? 5 18
what is the best Integrated development environment 2 20
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question