This is a migrated thread and some comments may be shown as answers.

problem with <%@ tag

2 Answers 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 2
Pablo asked on 29 Jan 2009, 09:46 PM
I have problems when I try to open a asp.net file into the radeditor.

my file is this:

<%

@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="FileManager.WebForm2" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

<div>

 

 

 

</div>

 

 

</form>

 

</

 

body>

 

</

 

html>

When I open its in the RadEditor I lose the line

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2.aspx.cs" Inherits="FileManager.WebForm2" %>


and only can see

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

 

 

 

<title></title>

 

</

 

head>

 

<

 

body>

 

 

 

 

 

<form id="form1" runat="server">

 

 

 

 

 

<div>

 

 

 

 

 

 

</div>

 

 

 

 

 

</form>

 

</

 

body>

 

</

 

html>

How can I to solve this problem?

thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Feb 2009, 03:46 PM
Hello Pablo,

RadEditor is a web editor for editing pure HTML / XHTML only. The editor uses the Rich Text Editing engine of the browser which does not support any server tags and page directives because they are not part of the HTML specification.

Generally speaking, RadEditor is more similar to a desktop HTML editor rather than to an integrated program like FrontPage and Visual Studio.

Sincerely yours,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Pablo
Top achievements
Rank 2
answered on 02 Feb 2009, 05:26 PM
oh ok  I understand.

Thanks for your reply.

Pablo.
Tags
Editor
Asked by
Pablo
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Pablo
Top achievements
Rank 2
Share this question
or