• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • Last Modified:

asp.net meta format

Hi.

In my .aspx page, my syntax is like this:
<%@ Page Title="title" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="_default" %>
<asp:Content ContentPlaceHolderID="head" Runat="Server">
<meta name="description" content="content" />
<meta name="keywords" content="content" />
</asp:Content>

When I look at source of the page, the content is formatted like this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="description" content="content" />
      <meta name="keywords" content="content" />
<title>
      title
</title></head>

How does i make the formatting like this:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
<meta name="description" content="content" />
<meta name="keywords" content="content" />
</head>
0
Jesper Christensen
Asked:
Jesper Christensen
2 Solutions
 
Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:
Do you mean you don't need indention??

If that is your concern then copy that source in any of the html editor > select all source and press "Shift + Tab" till you get your desired format.
0
 
Umar Topia.Net Full Stack DeveloperCommented:
Or else you can replace '\t' with '' (Blank)
0
 
Jesper ChristensenProgrammerAuthor Commented:
Didnt help
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now