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

  • Thread starter Thread starter Nigil LaVey
  • Start date Start date
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
 
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
 
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]
 
Back
Top