|
 |
aspx thread: <form runat="server">
Message #1 by "Kristoufiol" <schristy@l...> on Mon, 25 Nov 2002 13:56:52
|
|
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=btn_click, or something like that....)
Thanks in advance.
Message #2 by "Harvey, James" <James.Harvey@b...> on Mon, 25 Nov 2002 13:50:46 -0000
|
|
Why not OnClick button run a function.
Then at the end of the page load run the function.
James
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: 25 November 2002 13:57
To: ASP.NET
Subject: [aspx] <form runat=3D"server">
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=3Dbtn_click, or something like that....)
Thanks in advance.
**********************************************************************
This electronic mail message, including any attachments, is a confidential
communication exclusively between Babcock International BES Division and th
e intended recipient(s) indicated as the addressee(s).
It contains information which is private and may be proprietary or covered
by legal professional privilege.
If you receive this message in any form and you are not the intended recipi
ent you must not review, use, disclose or disseminate it.
We would be grateful if you could contact the sender upon receipt and in an
y event you should destroy this message without delay.
Anything contained in this message that is not connected with the business
of Babcock International BES Division is neither endorsed by nor is the lia
bility of this company.
Babcock International BES Division
Telephone: +44 (0) 1383 412131
Website: www.babcockbes.co.uk
**********************************************************************
Message #3 by "Kristoufiol" <schristy@l...> on Mon, 25 Nov 2002 14:17:22
|
|
I agree, but I want that, only when the page is PostBack (without a click
on the button )!!!
> Why not OnClick button run a function.
Then at the end of the page load run the function.
James
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: 25 November 2002 13:57
To: ASP.NET
Subject: [aspx] <form runat=3D"server">
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=3Dbtn_click, or something like that....)
Thanks in advance.
**********************************************************************
This electronic mail message, including any attachments, is a confidential
communication exclusively between Babcock International BES Division and
th
e intended recipient(s) indicated as the addressee(s).
It contains information which is private and may be proprietary or covered
by legal professional privilege.
If you receive this message in any form and you are not the intended
recipi
ent you must not review, use, disclose or disseminate it.
We would be grateful if you could contact the sender upon receipt and in
an
y event you should destroy this message without delay.
Anything contained in this message that is not connected with the business
of Babcock International BES Division is neither endorsed by nor is the
lia
bility of this company.
Babcock International BES Division
Telephone: +44 (0) 1383 412131
Website: www.babcockbes.co.uk
**********************************************************************
Message #4 by "Josh Withrow - IT Dept." <JoshWithrow@C...> on Mon, 25 Nov 2002 09:10:51 -0500
|
|
Just do a"
Sub Page_Load()
If Page.isPostBack then
(blah blah)
End If
End Sub
______________________________
Josh Withrow
Information Technology Tech.
JoshWithrow@C...
www.ChampionRealtyINFO.com
541B Baltimore Annapolis Blvd.
Severna Park, MD 21146
Office Phone - xxx-xxx-xxxx
Direct Phone - xxx-xxx-xxxx
Fax - xxx-xxx-xxxx
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: Monday, November 25, 2002 2:17 PM
To: ASP.NET
Subject: [aspx] RE: <form runat="server">
I agree, but I want that, only when the page is PostBack (without a
click
on the button )!!!
> Why not OnClick button run a function.
Then at the end of the page load run the function.
James
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: 25 November 2002 13:57
To: ASP.NET
Subject: [aspx] <form runat=3D"server">
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=3Dbtn_click, or something like that....)
Thanks in advance.
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20 to
unsubscribe send a blank email to
**********************************************************************
This electronic mail message, including any attachments, is a
confidential
communication exclusively between Babcock International BES Division and
th
e intended recipient(s) indicated as the addressee(s).
It contains information which is private and may be proprietary or
covered
by legal professional privilege.
If you receive this message in any form and you are not the intended
recipi
ent you must not review, use, disclose or disseminate it. =20 We would
be grateful if you could contact the sender upon receipt and in
an
y event you should destroy this message without delay. =20 Anything
contained in this message that is not connected with the business
of Babcock International BES Division is neither endorsed by nor is the
lia
bility of this company.
Babcock International BES Division
Telephone: +44 (0) 1383 412131
Website: www.babcockbes.co.uk
**********************************************************************
Message #5 by "Josh Withrow - IT Dept." <JoshWithrow@C...> on Mon, 25 Nov 2002 09:13:58 -0500
|
|
I had the same problem...
Sub Page_Load()
If Page.isPostBack OR btn_Clicked then
If Page.IsValid then
(code here)
End If
End If
End Sub
OR maybe you could...
Sub Page_Load()
If (Page.IsPostBack AND Page.IsValid) OR (btn_Clicked AND
Page.IsValid) then
(code here)
End If
End Sub
______________________________
Josh Withrow
Information Technology Tech.
JoshWithrow@C...
www.ChampionRealtyINFO.com
541B Baltimore Annapolis Blvd.
Severna Park, MD 21146
Office Phone - xxx-xxx-xxxx
Direct Phone - xxx-xxx-xxxx
Fax - xxx-xxx-xxxx
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: Monday, November 25, 2002 2:17 PM
To: ASP.NET
Subject: [aspx] RE: <form runat="server">
I agree, but I want that, only when the page is PostBack (without a
click
on the button )!!!
> Why not OnClick button run a function.
Then at the end of the page load run the function.
James
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: 25 November 2002 13:57
To: ASP.NET
Subject: [aspx] <form runat=3D"server">
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=3Dbtn_click, or something like that....)
Thanks in advance.
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20 to
unsubscribe send a blank email to
**********************************************************************
This electronic mail message, including any attachments, is a
confidential
communication exclusively between Babcock International BES Division and
th
e intended recipient(s) indicated as the addressee(s).
It contains information which is private and may be proprietary or
covered
by legal professional privilege.
If you receive this message in any form and you are not the intended
recipi
ent you must not review, use, disclose or disseminate it. =20 We would
be grateful if you could contact the sender upon receipt and in
an
y event you should destroy this message without delay. =20 Anything
contained in this message that is not connected with the business
of Babcock International BES Division is neither endorsed by nor is the
lia
bility of this company.
Babcock International BES Division
Telephone: +44 (0) 1383 412131
Website: www.babcockbes.co.uk
**********************************************************************
Message #6 by "Kristoufiol" <schristy@l...> on Mon, 25 Nov 2002 14:31:19
|
|
I alreday test it !
Public Sub Page_PreRender(sender As Object, e as EventArgs)
Load_List()
Liste_def()
if Page.IsPostBack then
Btn_Click
end if
End Sub
I've alreday test it because it's a button control....
Public Sub Page_PreRender(sender As Object, e as EventArgs)
Load_List()
Liste_def()
if Page.IsPostBack then
Btn_Click(Sender as Object, e as CommandEventArgs)
end if
End Sub
> Just do a"
Sub Page_Load()
If Page.isPostBack then
(blah blah)
End If
End Sub
______________________________
Josh Withrow
Information Technology Tech.
JoshWithrow@C...
www.ChampionRealtyINFO.com
541B Baltimore Annapolis Blvd.
Severna Park, MD 21146
Office Phone - xxx-xxx-xxxx
Direct Phone - xxx-xxx-xxxx
Fax - xxx-xxx-xxxx
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: Monday, November 25, 2002 2:17 PM
To: ASP.NET
Subject: [aspx] RE: <form runat="server">
I agree, but I want that, only when the page is PostBack (without a
click
on the button )!!!
> Why not OnClick button run a function.
Then at the end of the page load run the function.
James
-----Original Message-----
From: Kristoufiol [mailto:schristy@l...]
Sent: 25 November 2002 13:57
To: ASP.NET
Subject: [aspx] <form runat=3D"server">
Hi Guys,
I've got a pb :
I want to simulate a click on the button of my form when my page is
loaded... or when I send my form (I would something like :
OnSubmit=3Dbtn_click, or something like that....)
Thanks in advance.
---
Change your mail options at http://p2p.wrox.com/manager.asp or=20 to
unsubscribe send a blank email to
**********************************************************************
This electronic mail message, including any attachments, is a
confidential
communication exclusively between Babcock International BES Division and
th
e intended recipient(s) indicated as the addressee(s).
It contains information which is private and may be proprietary or
covered
by legal professional privilege.
If you receive this message in any form and you are not the intended
recipi
ent you must not review, use, disclose or disseminate it. =20 We would
be grateful if you could contact the sender upon receipt and in
an
y event you should destroy this message without delay. =20 Anything
contained in this message that is not connected with the business
of Babcock International BES Division is neither endorsed by nor is the
lia
bility of this company.
Babcock International BES Division
Telephone: +44 (0) 1383 412131
Website: www.babcockbes.co.uk
**********************************************************************
|
|
 |