I'm trying to use Inline-code to call Page_load, Page_Init or Page_PreRender
methods.
I've also got a code behind c#-file.
I can define inline methods for buttons and so on...that works fine. But
when I try to call Page_load, Page_Init or Page_PreRender methods it doesn't
work.
Non of the methods get's triggered !?
How can I solve this problem with combining code behind and inline-code?
I just need an action to call my own defined dll-call, it must be done in
inlin -code!
Regards
/Anders 6 3424
Anders:
I can't see why you HAVE to use both..that doesn't really make sense to me.
Why not just create a function called "Initialize ()" in codebehind which you
can call in the inline page_load event?
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Anders M" <it*****@du.s e> wrote in message
news:eO******** ******@tk2msftn gp13.phx.gbl... I'm trying to use Inline-code to call Page_load, Page_Init or Page_PreRender methods.
I've also got a code behind c#-file.
I can define inline methods for buttons and so on...that works fine. But when I try to call Page_load, Page_Init or Page_PreRender methods it doesn't work.
Non of the methods get's triggered !?
How can I solve this problem with combining code behind and inline-code? I just need an action to call my own defined dll-call, it must be done in inlin -code!
Regards /Anders
Because I don't have access to the code behind file! I'm modifying an
..ascx-file that's using several dll's made third part developers.
Maybe I can make a dll and override Page_Load event?
/Anders
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
skrev i meddelandet news:uz******** **********@TK2M SFTNGP12.phx.gb l... Anders: I can't see why you HAVE to use both..that doesn't really make sense to
me. Why not just create a function called "Initialize ()" in codebehind which
you can call in the inline page_load event?
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Anders M" <it*****@du.s e> wrote in message news:eO******** ******@tk2msftn gp13.phx.gbl... I'm trying to use Inline-code to call Page_load, Page_Init or Page_PreRender methods.
I've also got a code behind c#-file.
I can define inline methods for buttons and so on...that works fine. But when I try to call Page_load, Page_Init or Page_PreRender methods it doesn't work.
Non of the methods get's triggered !?
How can I solve this problem with combining code behind and inline-code? I just need an action to call my own defined dll-call, it must be done
in inlin -code!
Regards /Anders
I guess I still don't understand..
Given the following inline:
<script language="C#" runat="server">
void Page_Load(objec t sender, EventArgs e){
Response.Write( "1");
}
</script>
and the following codebehind:
private void Page_Load(objec t sender, EventArgs e)
{
Response.Write( "2");
}
both events will fire....
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Anders M" <it*****@du.s e> wrote in message
news:Oc******** *******@TK2MSFT NGP10.phx.gbl.. . Because I don't have access to the code behind file! I'm modifying an .ascx-file that's using several dll's made third part developers.
Maybe I can make a dll and override Page_Load event? /Anders "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> skrev i meddelandet news:uz******** **********@TK2M SFTNGP12.phx.gb l... Anders: I can't see why you HAVE to use both..that doesn't really make sense to me. Why not just create a function called "Initialize ()" in codebehind which you can call in the inline page_load event?
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Anders M" <it*****@du.s e> wrote in message news:eO******** ******@tk2msftn gp13.phx.gbl... > I'm trying to use Inline-code to call Page_load, Page_Init or > Page_PreRender > methods. > > I've also got a code behind c#-file. > > I can define inline methods for buttons and so on...that works fine. > But > when I try to call Page_load, Page_Init or Page_PreRender methods it > doesn't > work. > > Non of the methods get's triggered !? > > How can I solve this problem with combining code behind and > inline-code? > I just need an action to call my own defined dll-call, it must be done in > inlin -code! > > Regards > /Anders > > > > > > >
For me the inline Page_Load don't fire!
If I remove <@Page Language="c#" codebehind="Web Form1.aspx.cs". ......> The
Inline code fires!
Else only the codebehind code.
/Anders
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
skrev i meddelandet news:uy******** ******@TK2MSFTN GP10.phx.gbl... I guess I still don't understand..
Given the following inline:
<script language="C#" runat="server"> void Page_Load(objec t sender, EventArgs e){ Response.Write( "1"); } </script>
and the following codebehind:
private void Page_Load(objec t sender, EventArgs e) { Response.Write( "2"); }
both events will fire....
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!) "Anders M" <it*****@du.s e> wrote in message news:Oc******** *******@TK2MSFT NGP10.phx.gbl.. . Because I don't have access to the code behind file! I'm modifying an .ascx-file that's using several dll's made third part developers.
Maybe I can make a dll and override Page_Load event? /Anders "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> skrev i meddelandet news:uz******** **********@TK2M SFTNGP12.phx.gb l... Anders: I can't see why you HAVE to use both..that doesn't really make sense to me. Why not just create a function called "Initialize ()" in codebehind
which you can call in the inline page_load event?
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
"Anders M" <it*****@du.s e> wrote in message news:eO******** ******@tk2msftn gp13.phx.gbl... > I'm trying to use Inline-code to call Page_load, Page_Init or > Page_PreRender > methods. > > I've also got a code behind c#-file. > > I can define inline methods for buttons and so on...that works fine. > But > when I try to call Page_load, Page_Init or Page_PreRender methods it > doesn't > work. > > Non of the methods get's triggered !? > > How can I solve this problem with combining code behind and > inline-code? > I just need an action to call my own defined dll-call, it must be
done in > inlin -code! > > Regards > /Anders > > > > > > >
Hmmmm...
It works when I remove AutoEventWireup ="false" from the aspx-page??
Anyone knows why?
/Anders
"Anders M" <it*****@du.s e> skrev i meddelandet
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
For me the inline Page_Load don't fire! If I remove <@Page Language="c#" codebehind="Web Form1.aspx.cs". ......> The Inline code fires!
Else only the codebehind code.
/Anders
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> skrev i meddelandet news:uy******** ******@TK2MSFTN GP10.phx.gbl... I guess I still don't understand..
Given the following inline:
<script language="C#" runat="server"> void Page_Load(objec t sender, EventArgs e){ Response.Write( "1"); } </script>
and the following codebehind:
private void Page_Load(objec t sender, EventArgs e) { Response.Write( "2"); }
both events will fire....
Karl
-- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!) "Anders M" <it*****@du.s e> wrote in message news:Oc******** *******@TK2MSFT NGP10.phx.gbl.. . Because I don't have access to the code behind file! I'm modifying an .ascx-file that's using several dll's made third part developers.
Maybe I can make a dll and override Page_Load event? /Anders "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> skrev i meddelandet news:uz******** **********@TK2M SFTNGP12.phx.gb l... > Anders: > I can't see why you HAVE to use both..that doesn't really make sense
to me. > Why not just create a function called "Initialize ()" in codebehind which you > can call in the inline page_load event? > > Karl > > -- > MY ASP.Net tutorials > http://www.openmymind.net/ - New and Improved (yes, the popup is > annoying) > http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more
to> come!) > > > "Anders M" <it*****@du.s e> wrote in message > news:eO******** ******@tk2msftn gp13.phx.gbl... > > I'm trying to use Inline-code to call Page_load, Page_Init or > > Page_PreRender > > methods. > > > > I've also got a code behind c#-file. > > > > I can define inline methods for buttons and so on...that works
fine.> > But > > when I try to call Page_load, Page_Init or Page_PreRender methods
it> > doesn't > > work. > > > > Non of the methods get's triggered !? > > > > How can I solve this problem with combining code behind and > > inline-code? > > I just need an action to call my own defined dll-call, it must be done in > > inlin -code! > > > > Regards > > /Anders > > > > > > > > > > > > > > > >
Yes, AutoEventWireUp automatically wires events based on their name...so it
seems a function Page_Load and automatically hooks it into the OnLoage event
of the page...inline works like that (and only like that)....
karl
--
MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Anders M" <it*****@du.s e> wrote in message
news:ej******** ******@TK2MSFTN GP14.phx.gbl... Hmmmm... It works when I remove AutoEventWireup ="false" from the aspx-page??
Anyone knows why? /Anders "Anders M" <it*****@du.s e> skrev i meddelandet news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
For me the inline Page_Load don't fire! If I remove <@Page Language="c#" codebehind="Web Form1.aspx.cs". ......> The Inline code fires!
Else only the codebehind code.
/Anders
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> skrev i meddelandet news:uy******** ******@TK2MSFTN GP10.phx.gbl... > I guess I still don't understand.. > > Given the following inline: > > <script language="C#" runat="server"> > void Page_Load(objec t sender, EventArgs e){ > Response.Write( "1"); > } > </script> > > and the following codebehind: > > private void Page_Load(objec t sender, EventArgs e) > { > Response.Write( "2"); > } > > both events will fire.... > > Karl > > -- > MY ASP.Net tutorials > http://www.openmymind.net/ - New and Improved (yes, the popup is > annoying) > http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to > come!) > "Anders M" <it*****@du.s e> wrote in message > news:Oc******** *******@TK2MSFT NGP10.phx.gbl.. . > > Because I don't have access to the code behind file! I'm modifying an > > .ascx-file that's using several dll's made third part developers. > > > > Maybe I can make a dll and override Page_Load event? > > /Anders > > > > > > > > "Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net> > > skrev i meddelandet news:uz******** **********@TK2M SFTNGP12.phx.gb l... > >> Anders: > >> I can't see why you HAVE to use both..that doesn't really make sense to > > me. > >> Why not just create a function called "Initialize ()" in codebehind which > > you > >> can call in the inline page_load event? > >> > >> Karl > >> > >> -- > >> MY ASP.Net tutorials > >> http://www.openmymind.net/ - New and Improved (yes, the popup is > >> annoying) > >> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to > >> come!) > >> > >> > >> "Anders M" <it*****@du.s e> wrote in message > >> news:eO******** ******@tk2msftn gp13.phx.gbl... > >> > I'm trying to use Inline-code to call Page_load, Page_Init or > >> > Page_PreRender > >> > methods. > >> > > >> > I've also got a code behind c#-file. > >> > > >> > I can define inline methods for buttons and so on...that works fine. > >> > But > >> > when I try to call Page_load, Page_Init or Page_PreRender methods it > >> > doesn't > >> > work. > >> > > >> > Non of the methods get's triggered !? > >> > > >> > How can I solve this problem with combining code behind and > >> > inline-code? > >> > I just need an action to call my own defined dll-call, it must be done > > in > >> > inlin -code! > >> > > >> > Regards > >> > /Anders > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> > > > > > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: A |
last post by:
Hi,
I'm having problems completing a project in C++. I have been using inline
functions in some of my header files. I have only done so for simple
functions that only have 1 statement (eg. accessor and mutator methods to
access private data members). I would like to know if there are any issues
with using inline functions that may have attributed to my errors before I
start separting them out into "outline functions".
Regards
|
by: Laiverd.COM |
last post by:
Posted this in the MM Dreamweaver group also, but then found this newsgroup,
in which I hope someone knows the answer
What I'd like to do is define a specific style for a link that is in a
specific row. This works, but has a drawback:
tr.homeLatestNews a.newsLink {
font-weight: bold;
display: block;
}
|
by: Mike |
last post by:
We are using:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Using CSS (not html since align=center and <center> are deprecated)
I can get it to work in IE6 (but not NS 7 or Firefox) with.
<div style="text-align:center; display:block; "><img src="myimg.gif"
|
by: Richard Hayden |
last post by:
Hi,
I have the following code:
/******************************** file1.c
#include <iostream>
extern void dummy();
inline int testfunc() {
|
by: Grumble |
last post by:
Hello everyone,
As far as I understand, the 'inline' keyword is a hint for the compiler
to consider the function in question as a candidate for inlining, yes?
What happens when a function with extern linkage is inlined? Should the
compiler still export the function?
Or is an inlined function implicitly static?
| |
by: Tony Johansson |
last post by:
Hello experts!
I reading a book called programming with design pattern revealed
by Tomasz Muldner and here I read something that sound strange.
Here is the whole section:
It says" Because inline functions are expanded at compile time, definitions
of these
functions, unlike other definitions cannot be separately compiled and must
be
|
by: ste.paoletti |
last post by:
hi, I have read that browsers support block element inside inline
element but the css is not valid. Someone can tell me more about?
What do you think? Thanks.
|
by: Schraalhans Keukenmeester |
last post by:
I have tried to collapse a long part of a text on my weblog
using the following construct:
<style>
div.expand { display : none; }
div.expand:hover (display : inline; }
div.expand em {display : inline; }
</style>
<p>Blablabla etc lorem ipsum yadayada</p>
|
by: Barry |
last post by:
Hi, group
First, I write same cases I've already known, I don't concern that
specific compiler really do inline or not.
Please check them if they are right, and add the cases I miss
1.
// a.h
inline void f() {}
|
by: Barry |
last post by:
Hi, group
First, I write same cases I've already known, I don't concern that
specific compiler really do inline or not.
Please check them if they are right, and add the cases I miss
1.
// a.h
inline void f() {}
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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...
| |