How do I read the input stream in global.asax in c#?

N

Nigil LaVey

greetings all,

I am trying to read the input stream from global.asax before it output those
streams to client side?

I have a page called main.aspx
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
what I need is to search for "<title>" tagname and replace with some other
stuffs before rendering out to the client side.

please advise,
Nigil Chua
 
R

roko

If using C#:
HTML:
[HEAD]<title><%=this.Title%></title> ....

then in the code behind:
private string title;


public string Title

{

get { return this.title; }

set { this.title = value; }

}

anywhere in the code, maybe Page_Load:

Title = "Page Title You Want"...

HTH,

-roko
 
N

Nigil LaVey

hi there..

thanks for ur reply.. but I think u got me wrong.. what I need is to produce
the title in the asax..
anyway I have figured it out already... but using Response.Filter can
achieve what I need..

regards,
Nigil Chua


roko said:
If using C#:
HTML:
[HEAD]<title><%=this.Title%></title> ....

then in the code behind:
private string title;


public string Title

{

get { return this.title; }

set { this.title = value; }

}

anywhere in the code, maybe Page_Load:

Title = "Page Title You Want"...

HTH,

-roko


[QUOTE="Nigil LaVey"]
greetings all,

I am trying to read the input stream from global.asax before it output those
streams to client side?

I have a page called main.aspx
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
what I need is to search for "<title>" tagname and replace with some other
stuffs before rendering out to the client side.

please advise,
Nigil Chua
[/QUOTE]
[/QUOTE]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top