Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5996963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:11:46+00:00 2026-05-23T00:11:46+00:00

Using VB.NET in Visual Studio 2010, I have two files: test2.aspx and test2.aspx.vb. The

  • 0

Using VB.NET in Visual Studio 2010, I have two files:
“test2.aspx” and “test2.aspx.vb”.
The aspx file is basically as follows:

<%@ Page Language="VB"   AutoEventWireup="false" CodeFile="test2.aspx.vb" Inherits="App_test2" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta id="meta1" runat="server" name="description" />
</head>
<body>
<textarea id="text1" runat="server" />
</body>
</html>

The vb file is basically like this:

meta1.Attributes("charset") = "UTF-8"
meta1.Attributes("content") = "I'm a description tag"
text1.InnerText = "&'<>"

This all displays as expected in the browser, but the source code when the page is rendered looks like this:

<html>
<head>
<meta id="meta1" name="description" content="I&#39;m a description tag" charset="UTF-8"></meta>
</head>
<body>
<textarea name="text1" id="text2">&amp;&#39;&lt;&gt;</textarea>
</body>
</html>

Is there something I can do so the source code doesn’t escape characters like “&”, “‘”, “<“, and “>” ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T00:11:47+00:00Added an answer on May 23, 2026 at 12:11 am

    You don’t. If it didn’t convert those characters, the browser would incorrectly interpret them as commands instead of data. It shouldn’t be an issue for you because it is always converted back to the character data in code. text2.Text would contain the values you want, not the escaped data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Visual Studio 2010, C# .NET 4.0. I have 3 forms: Form1,
I have been working with Visual Studio (WinForm and ASP.NET applications using mostly C#)
I am currently playing around with VB.Net using Visual Studio 2010 (.Net 4.0) and
Using Visual Studio 2010, I have written a simple WCF service and some integration
We have a ASP.Net web application running in Visual Studio 2010 that is targeting
Applications I am using: Visual Studio 2008 (C#/ASP.NET) Visual Source Safe 8.0 IIS 5.1
We do ASP.NET Development using Visual Studio. A discussion point we've just had is
I am using VB.NET. In Visual Studio, if I right-click a property name and
I'm developing an application for Windows Mobile Devices using Visual Studio .NET 2008 whose
I developing ASP.NET application using a Swedish version of Windows XP and Visual studio

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.