I have user controls(.ascx) programmed to function as modules on the same
page - default.aspx.
As you would be well aware, default.aspx has the normal html stuff:-
<%@ Page language="c#" codebehind="def ault.aspx.cs"
inherits="xmlpo rtal.read" autoeventwireup ="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>.....</HEAD>
<BODY>......</BODY>
</HTML>
--------------------------------------------------------------
Now, here's my problem:-
I want to change the ContentType of this page to "text/Xml" based on a
condition in an ascx.cs codebehind..... ..i tried doing it with
Page.ContentTyp e="Text/Xml".....but got an error.....as it could NOT display
xml using the given stylesheet.
Please suggest a way in which I could REMOVE/DEACTIVATE all the
<DOCTYPE>...<HT ML> elements (override them) and display the xml on the page
instead by using the xml Page CONTENT TYPE.
Thanks a lot.
Andy
IESL, MIT 2 2836
base on your condition, try this:
this.Response.C ontentType="Tex t/Xml";
this.Response.W rite("<xml></xml>");
this.Response.E nd();
Tu,
"andy" <an**@mit.edu > wrote in message
news:uA******** ******@TK2MSFTN GP11.phx.gbl... I have user controls(.ascx) programmed to function as modules on the same page - default.aspx. As you would be well aware, default.aspx has the normal html stuff:- <%@ Page language="c#" codebehind="def ault.aspx.cs" inherits="xmlpo rtal.read" autoeventwireup ="false"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD>.....</HEAD> <BODY>......</BODY> </HTML>
-------------------------------------------------------------- Now, here's my problem:- I want to change the ContentType of this page to "text/Xml" based on a condition in an ascx.cs codebehind..... ..i tried doing it with Page.ContentTyp e="Text/Xml".....but got an error.....as it could NOT
display xml using the given stylesheet.
Please suggest a way in which I could REMOVE/DEACTIVATE all the <DOCTYPE>...<HT ML> elements (override them) and display the xml on the
page instead by using the xml Page CONTENT TYPE.
Thanks a lot. Andy IESL, MIT
with single xml tag like <xml></xml>, IE only display <xml/>, open source
and you will see your full xml tag
put more xml tags and try again.
Tu,
"andy" <an**@mit.edu > wrote in message
news:#4******** ******@TK2MSFTN GP11.phx.gbl... Hi, I tried ur suggestion but ran into the same problems again......i have the normal html tags in my web form. I also added a button, which when clicked would raise the event button_click and the page's content type should
change and i should be able to display the xml as you had suggested. this.Response.C ontentType="tex t/xml";
this.Response.W rite("<xml></xml>);
this.Response.E nd();
GENERATED the following output:
<xml />
Please suggest ahead. I would ideally like to render a System.Web.UI.W ebControl.Xml control to the page on changing the content type to text/xml........this xml control gets formed alright in a
different web form. But, I want to be able to display it on the same page.
Thanks a ton.
Andy "Hoang Anh Tu" <an***@hotmail. com> wrote in message news:OE******** ******@tk2msftn gp13.phx.gbl... base on your condition, try this: this.Response.C ontentType="Tex t/Xml";
this.Response.W rite("<xml></xml>");
this.Response.E nd();
Tu,
"andy" <an**@mit.edu > wrote in message news:uA******** ******@TK2MSFTN GP11.phx.gbl... I have user controls(.ascx) programmed to function as modules on the same page - default.aspx. As you would be well aware, default.aspx has the normal html stuff:- <%@ Page language="c#" codebehind="def ault.aspx.cs" inherits="xmlpo rtal.read" autoeventwireup ="false"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <HEAD>.....</HEAD> <BODY>......</BODY> </HTML>
-------------------------------------------------------------- Now, here's my problem:- I want to change the ContentType of this page to "text/Xml" based on a condition in an ascx.cs codebehind..... ..i tried doing it with Page.ContentTyp e="Text/Xml".....but got an error.....as it could NOT display xml using the given stylesheet.
Please suggest a way in which I could REMOVE/DEACTIVATE all the <DOCTYPE>...<HT ML> elements (override them) and display the xml on the page instead by using the xml Page CONTENT TYPE.
Thanks a lot. Andy IESL, MIT
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rahul S. |
last post by:
Hey all:
I need urgent information how to set the environment in Visual.NET
wiritng in C.
I am working with a licensed version of the Analyze 6.0 software from
mayo clinic. I need to write code in C using AVW functions that are
licensed by Mayo clinic.
In order to access the AVW library of functions, I need to set the
|
by: Rahul S. |
last post by:
Hey all:
I need urgent information how to set the environment in Visual.NET
wiritng in C.
I am working with a licensed version of the Analyze 6.0 software from
mayo clinic. I need to write code in C using AVW functions that are
licensed by Mayo clinic.
In order to access the AVW library of functions, I need to set the
|
by: Tamir Khason |
last post by:
Follwing the struct:
public struct TpSomeMsgRep
{
public uint SomeId;
|
by: |
last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I
keep getting the following error:-
Error In:
http://www.mywebsite.org/WebResource.axd?d=5WvLfhnJp5Lc8WhQSD4gdA2&t=632614619884218750
--------------------------------------------------------------------------------
System.Security.Cryptography.CryptographicException: Padding is invalid and
cannot be removed. at...
|
by: Cheryl Langdon |
last post by:
Hello everyone,
This is my first attempt at getting help in this manner. Please
forgive me if this is an inappropriate request.
I suddenly find myself in urgent need of instruction on how to
communicate with a MySQL database table on a web server, from inside
of my company's Access-VBA application. I know VBA pretty well but
have never before needed to do this HTTP/XML/MySQL type functions.
| |
by: Max Power |
last post by:
Hi All
I am coding a small app in that swaps specific files between a client and
server. All files and locations are set at both sides.
I want my app to show a file list, based on the file names, from the local
and remote machine.....
Local is not a problem and works OK. but I am trying ::
Form1.getFile.FileName = Inet1.Execute("ftp://ftp.server.net", "DIR") and I
|
by: N. Spiker |
last post by:
I am attempting to receive a single TCP packet with some text ending with
carriage return and line feed characters. When the text is send and the
packet has the urgent flag set, the text read from the socket is missing the
last character (line feed). When the same text is sent without the urgent
flag set, all of the characters are read.
I'm reading the data using the blocking read call of the network stream
class. The .NET...
|
by: Noremac |
last post by:
My google skills must be dwindling. I am trying to determine how in ASP.NET
2.0 I can get the ReturnUrl querystring variable in Forms Authentication to
contain the absolute url.
Just like others that have posed this question, we are an enterprise
environment that has multiple websites across multiple servers and we are
trying to setup Web SSO for our public internet site that will be accessible
by our clients.
ASP.NET seems to have...
|
by: needhelp123 |
last post by:
Can any one send me a quick sort simple logic pogram...
its very urgent urgent
|
by: psantosh12 |
last post by:
Hello Frnds
Please need help to resolve error.......... it is very very urgent........
The error is
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Details: To enable the details of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |