473,320 Members | 2,073 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,320 software developers and data experts.

Perl ASPX

Hi, all

Anyboby know why "OnLoad" is not called on this code usinq perlASPX

//---------- perl code ---------------//
use strict;

=for interface
[extends: System.Web.UI.Page ]
override protected void OnLoad(System.EventArgs e);
=cut

sub OnLoad
{
my($this, $e) = @_;
$this->{Response}->Write("OnLoad content.<br>");
}
//----- ASPX -----------//

<%@ Page language="perl" debug="true" Src="test_code.pm" %>
<HTML>
<body>

</body>
</HTML>
If I use this code inside the ASPX page, it's work !

<%@ Page Language="perl" Debug="true" %>
<html>
<body>
<script runat=server>

=for interface
protected override void OnLoad(System.EventArgs e);
=cut

sub OnLoad {
my($this, $e) = @_;
#$this->{base}->OnLoad($e);
$this->{Response}->Write("Dynamic content.<br>");

}

</script>

</body>
</html>


Nov 19 '05 #1
0 840

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

Similar topics

32
by: len v | last post by:
A recent (Oct 3) Fox Trox comic (Bill Amend ) got me thinking causing me to edit the origional comic. Bill then had to write a patch, as most C programers must do.(...
3
by: PzYon | last post by:
Hey 2gether! I'm trying to execute a PERL script on the web server when the user presses a button in an ASP.NET Web Application using Visual Basic. The most obvious solution for me seemed to be...
2
by: Rick | last post by:
I am a newbie to C#, so bare with me. This seems like it should be an easy task Thanks
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
3
by: stewdean | last post by:
Hi, Before I start I'm a neebie and I've spent the last day getting some basics on .net but come from a unix background. I currently have a site that needs to keep it's HTML file endings, I...
1
by: chavakoti | last post by:
hi , i am new this perl script ,my system is windows xp professional, how to enable the perl script in the server side asp.net 2005,please help me for controle validaitons 1=========is it...
0
by: chavakoti | last post by:
hi , i am new this perl script ,my system is windows xp professional, how to enable the perl script in the server side asp.net 2005,please help me for controle validaitons 1=========is it...
3
by: autodidact | last post by:
Hello, Guys I'm TOTALLY new at programming (in fact i HATE it) but i heard so much good things about Perl (that its also EASY) i decided to start with it. But I'm having trouble installing it on...
3
by: Eps | last post by:
Hi there, Is it possible to have .net application talk to and interact with a ruby or perl application (either on the same machine or separate ones) ?. Could Remoting/WCF be used to accomplish...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
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...

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.