473,378 Members | 1,401 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,378 software developers and data experts.

How to modify page that is about to send to client?

Hello
I want to add some script code to every page on my application when page is
about to send to client.

I found some events that maybe can be used in this case (example:
PreSendRequestContent).

Any suggestion or in best way example how to do this.

Thanks
Nov 19 '05 #1
3 2476
HI Milan:

I suggest you derive your forms from a common base class. The base
class can also hook page events and register client scripts on every
page from one method. There are a couple articles out demonstrating
this technique.

http://aspnet.4guysfromrolla.com/articles/041305-1.aspx
http://msdn.microsoft.com/library/de...rockaspnet.asp

HTH,

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sat, 4 Jun 2005 06:45:41 -0700, MilanB
<Mi****@discussions.microsoft.com> wrote:
Hello
I want to add some script code to every page on my application when page is
about to send to client.

I found some events that maybe can be used in this case (example:
PreSendRequestContent).

Any suggestion or in best way example how to do this.

Thanks


Nov 19 '05 #2
Solved!
This can be done using httpmodule.

Example at: http://www.codeproject.com/aspnet/headerfooter.asp

Thanks
Nov 19 '05 #3
Thanks!!!
Nov 19 '05 #4

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

Similar topics

3
by: Rick | last post by:
Hi, In relation with my previous post, I thought of a plan B. If I can't connect to an url with an applet, is it possible to let something else doing the job? For example, I want to send "test"...
13
by: teenzbutler | last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I get an HTTP 500 error. When I convert the 10mb file to HTML, it loads fine. Is there a limitation on file size? If so, is there a tag I...
16
by: Philippe C. Martin | last post by:
Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the...
3
by: Shapper | last post by:
Hello, I am working on an ASP.NET/VB web site. I have several links including menu links. Considerer a want to load a page named page.aspx. I can do it using javascript. Or using this code:...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
8
by: Clint | last post by:
Is such a scenario possible? I have a page, which has 1 text box & 2 buttons. When Button1 is clicked, it submits a GET to the server. The server doesn't send a response to this get...
6
by: Tom Lobato | last post by:
Hi all, Is there a way for delete variables of a form just before it is sended to server? I don't want to delete the input element, but only to prevent that name/value to be sended to the...
4
by: JRough | last post by:
I have this section at the end of a page ------------------- if ($_POST== 'Open in Excel'){ if (empty($data)) { $data = "\n(0) Records Found!\n";} header("Content-type:...
0
sreekandank
by: sreekandank | last post by:
Hi..... I have done the program for simple chat application in java....as given below.... server.java import java.net.*; import java.io.*; public class server { public static void...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.