473,396 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Page directive shows in rendered html

When our asp.net pages are rendered out as html the page directive is still
in the html.

ie. The following page directive is present in the body of the html of the
rendered page:
<%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="Briggs.about" %>
<%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
Src="WebUserControlSearch.ascx" %>

Please let me know how I can stop this from happening.

Thanks in advance!
Jun 12 '06 #1
5 1344
Make sure ASP.NET is running.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
When our asp.net pages are rendered out as html the page directive is still
in the html.

ie. The following page directive is present in the body of the html of the
rendered page:
<%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="Briggs.about" %>
<%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
Src="WebUserControlSearch.ascx" %>

Please let me know how I can stop this from happening.

Thanks in advance!

Jun 12 '06 #2
asp.net is running. Other pages in that directory have dynamic content
rendered out and no page directives in their html body. I'm wondering if
there is something that will tell the ASP.NET worker process not to process a
certain .aspx page...?

"Juan T. Llibre" wrote:
Make sure ASP.NET is running.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
When our asp.net pages are rendered out as html the page directive is still
in the html.

ie. The following page directive is present in the body of the html of the
rendered page:
<%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
Inherits="Briggs.about" %>
<%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
Src="WebUserControlSearch.ascx" %>

Please let me know how I can stop this from happening.

Thanks in advance!


Jun 12 '06 #3
Homer,

Please answer these questions :

1. Which .Net Framework does your application target ?

2. Is there anything different between the page directives in the
pages that *do* work, in the same directory, and the one which doesn't work ?

i.e., do you have *any* pages with page directives that *do* work ?

3. What happens if you add a page directive to a working page which doesn't have one?

Try a simple one, like :

<%@ Page Language="c#" AutoEventWireup="false" %>

If *that* works, the problem is -probably- with your code.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
asp.net is running. Other pages in that directory have dynamic content
rendered out and no page directives in their html body. I'm wondering if
there is something that will tell the ASP.NET worker process not to process a
certain .aspx page...?

"Juan T. Llibre" wrote:
Make sure ASP.NET is running.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
> When our asp.net pages are rendered out as html the page directive is still
> in the html.
>
> ie. The following page directive is present in the body of the html of the
> rendered page:
> <%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
> Inherits="Briggs.about" %>
> <%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
> Src="WebUserControlSearch.ascx" %>
>
> Please let me know how I can stop this from happening.
>
> Thanks in advance!


Jun 12 '06 #4
Juan,

Thanks so much for you help. It turned out there were two files with the
same content, one of which was a .htm the other was an .aspx. The .htm had
was being processed first by IIS becuase of the default document order.

We managed to piece it together.

Thanks again,
Tyler

"Juan T. Llibre" wrote:
Homer,

Please answer these questions :

1. Which .Net Framework does your application target ?

2. Is there anything different between the page directives in the
pages that *do* work, in the same directory, and the one which doesn't work ?

i.e., do you have *any* pages with page directives that *do* work ?

3. What happens if you add a page directive to a working page which doesn't have one?

Try a simple one, like :

<%@ Page Language="c#" AutoEventWireup="false" %>

If *that* works, the problem is -probably- with your code.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
asp.net is running. Other pages in that directory have dynamic content
rendered out and no page directives in their html body. I'm wondering if
there is something that will tell the ASP.NET worker process not to process a
certain .aspx page...?

"Juan T. Llibre" wrote:
Make sure ASP.NET is running.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:18**********************************@microsof t.com...
> When our asp.net pages are rendered out as html the page directive is still
> in the html.
>
> ie. The following page directive is present in the body of the html of the
> rendered page:
> <%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
> Inherits="Briggs.about" %>
> <%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
> Src="WebUserControlSearch.ascx" %>
>
> Please let me know how I can stop this from happening.
>
> Thanks in advance!


Jun 12 '06 #5
Glad to see you sorted it out, Tyler.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:17**********************************@microsof t.com...
Juan,

Thanks so much for you help. It turned out there were two files with the
same content, one of which was a .htm the other was an .aspx. The .htm had
was being processed first by IIS becuase of the default document order.

We managed to piece it together.

Thanks again,
Tyler "Juan T. Llibre" wrote:
Homer,

Please answer these questions :

1. Which .Net Framework does your application target ?

2. Is there anything different between the page directives in the
pages that *do* work, in the same directory, and the one which doesn't work ?

i.e., do you have *any* pages with page directives that *do* work ?

3. What happens if you add a page directive to a working page which doesn't have one?

Try a simple one, like :

<%@ Page Language="c#" AutoEventWireup="false" %>

If *that* works, the problem is -probably- with your code.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"homertbush" <ho********@discussions.microsoft.com> wrote in message
news:94**********************************@microsof t.com...
> asp.net is running. Other pages in that directory have dynamic content
> rendered out and no page directives in their html body. I'm wondering if
> there is something that will tell the ASP.NET worker process not to process a
> certain .aspx page...?
>
> "Juan T. Llibre" wrote:
>
>> Make sure ASP.NET is running.
>>
>>
>>
>> Juan T. Llibre, asp.net MVP
>> aspnetfaq.com : http://www.aspnetfaq.com/
>> asp.net faq : http://asp.net.do/faq/
>> foros de asp.net, en español : http://asp.net.do/foros/
>> ===================================
>> "homertbush" <ho********@discussions.microsoft.com> wrote in message
>> news:18**********************************@microsof t.com...
>> > When our asp.net pages are rendered out as html the page directive is still
>> > in the html.
>> >
>> > ie. The following page directive is present in the body of the html of the
>> > rendered page:
>> > <%@ Page CodeBehind="about.aspx.cs" Language="c#" AutoEventWireup="false"
>> > Inherits="Briggs.about" %>
>> > <%@ Register TagPrefix="uc1" TagName="WebUserControlSearch"
>> > Src="WebUserControlSearch.ascx" %>
>> >
>> > Please let me know how I can stop this from happening.
>> >
>> > Thanks in advance!
>>
>>
>>


Jun 12 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
2
by: Ken Cox - Microsoft MVP | last post by:
I'm trying to find a way to program in ASP.NET 2.0 but capture the HTML output. I found the following routine in ASP.NET 2.0 Cookbook from O'Reilly. It doesn't work if I include a server-side...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
2
by: igotyourdotnet | last post by:
Is there a way to prevent the master page to reload every time the user makes a selection off of the menu? I want to give it a "Frame" like appearance were only the content section changes with a...
6
by: Rippo | last post by:
Is it possible to turn off the title tag in the page directive when using master pages? We have got meta data and title defined in a content control and are ending up with 2 title tags, one...
3
by: Nathan Sokalski | last post by:
I am recieving the following error on the second postback of a page I have written: The state information is invalid for this page and might be corrupted Stack Trace: ...
12
by: =?Utf-8?B?RnJlZU5FYXN5?= | last post by:
Hello, the scenario: There's an ASPX page which shows some text and has three buttons at the bottom: Save, Print and Close. Print and close is done by javascript. But how can I save the page...
6
by: =?Utf-8?B?SmF5IFBvbmR5?= | last post by:
I am trying to access a Public property on a Master Page from a Base Page. On the content pages I have the MasterType Directive set up as follows: <%@ MasterType virtualpath="~/Master.master" %>...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.