Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: history.back..


Message #1 by "S. Asif Imam" <asifimam@y...> on Tue, 6 Nov 2001 15:42:57 +0500
This is a multi-part message in MIME format.



------=_NextPart_000_00BD_01C166D9.B53F1070

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Is it possible to go to back page using asp:button, some thing like 

ClientValidationFunction..??

Its possible through client side scripting, but i just want to confirm 

if it is impossible and not possible using asp:button .



Thanx.








Message #2 by "Yu, Kevin" <kyu@N...> on Tue, 6 Nov 2001 09:44:05 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C166D1.7C070F40

Content-Type: text/plain;

	charset="ISO-8859-1"



use OnClick event. 



-----Original Message-----

From: S. Asif Imam [mailto:asifimam@y...]

Sent: Tuesday, November 06, 2001 3:43 AM

To: ASP+

Subject: [aspx] history.back..





Is it possible to go to back page using asp:button, some thing like

ClientValidationFunction..??

Its possible through client side scripting, but i just want to confirm if it

is impossible and not possible using asp:button .

 

Thanx.

 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: kyu@n...


$subst('Email.Unsub') 






Message #3 by "Brzeski, Tom" <Tom.Brzeski@o...> on Tue, 6 Nov 2001 17:24:30 -0500
This message is in MIME format. Since your mail reader does not understand

this format, some or all of this message may not be legible.



------_=_NextPart_001_01C16711.CD8A6A70

Content-Type: text/plain



I am using this code 

<asp:imagebutton id="cmdReport" runat="server" ImageUrl="images/print.gif"

OnClick="javascript:reportready()"></asp:imagebutton>

 

and getting error The name 'javascript' is not a member of

'ASP.PageReports_aspx'.

Is it possible to create client onClick event with <asp:imagebutton />

 

 

-----Original Message-----

From: Yu, Kevin [mailto:kyu@N...] 

Sent: Tuesday, November 06, 2001 6:44 AM

To: ASP+

Subject: [aspx] RE: history.back..

 

use OnClick event. 

-----Original Message-----

From: S. Asif Imam [mailto:asifimam@y...]

Sent: Tuesday, November 06, 2001 3:43 AM

To: ASP+

Subject: [aspx] history.back..

Is it possible to go to back page using asp:button, some thing like

ClientValidationFunction..??

Its possible through client side scripting, but i just want to confirm if it

is impossible and not possible using asp:button .

 

Thanx.

 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: kyu@n...


$subst('Email.Unsub') 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: tom.brzeski@o...


$subst('Email.Unsub') 




Message #4 by Tim Heuer <TimH@i...> on Tue, 6 Nov 2001 16:26:58 -0700
If you are going to use an image button this way then in your codebehind or

some other server script you need to set the client side onclick event like

this...



//using codebehind:

cmdReport.Attributes.Add("onclick","javascript:reportready():);



//using server script w/in the page:

<script language="C#" runat="server">

cmdReport.Attributes.Add("onclick","javascript:reportready():);

</script>



or you could use a regular image tag and add it how you have it (unless you

are doing something else with the image button, but it doesn't look like you

are).



The "OnClick" event for WebControls is server side.  To utilize the onclick

for client side you need to use a method above or use HtmlControls:



<input type="button" runat="server" onclick="alert('hello world');">

-----Original Message-----

From: Brzeski, Tom [mailto:Tom.Brzeski@o...] 

Sent: Tuesday, November 06, 2001 3:25 PM

To: ASP+

Subject: [aspx] RE: history.back..





I am using this code 

<asp:imagebutton id="cmdReport" runat="server" ImageUrl="images/print.gif"

OnClick="javascript:reportready()"></asp:imagebutton>

 

and getting error The name 'javascript' is not a member of

'ASP.PageReports_aspx'.

Is it possible to create client onClick event with <asp:imagebutton />

 

 

-----Original Message-----

From: Yu, Kevin [mailto:kyu@N...] 

Sent: Tuesday, November 06, 2001 6:44 AM

To: ASP+

Subject: [aspx] RE: history.back..

 

use OnClick event. 

-----Original Message-----

From: S. Asif Imam [mailto:asifimam@y...]

Sent: Tuesday, November 06, 2001 3:43 AM

To: ASP+

Subject: [aspx] history.back..

Is it possible to go to back page using asp:button, some thing like

ClientValidationFunction..??

Its possible through client side scripting, but i just want to confirm if it

is impossible and not possible using asp:button .

 

Thanx.

 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: kyu@n...


$subst('Email.Unsub') 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: tom.brzeski@o...


$subst('Email.Unsub') 

---

VBug Winter Conference 2001 



Open Forum: Dan Appleman will be hosting an open 

forum at The .NET Developer's Conference on 

29th November 2001. The session will give 

developers the chance to discuss and question 

Dan on his experience with the .NET environment. 

Dan has been programming Visual Basic since the 

alpha version 1.0. And with over 10 years 

Visual Basic experience is well qualified to 

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to 

aspx as: timh@i...


$subst('Email.Unsub') 

Message #5 by "Samuel Engelman" <samuel_engelman@p...> on Wed, 7 Nov 2001 09:18:50 -0500
the codebehind example won't work because the aspx engine creates it's own

onclick event and puts it first





|--------+--------------------------------->

|        |   Tim Heuer <TimH@i...>      |

|        |                                 |

|        |                                 |

|        |   Tuesday November 6, 2001 06:26|

|        |   PM                            |

|        |   Please respond to "ASP+"      |

|        |                                 |

|--------+--------------------------------->

  >----------------------------------------------------------------------------|

  |                                                                            |

  |      To:                                  "ASP+" <aspx@p...>       |

  |      cc:                                                                   |

  |      Subject: [aspx] RE: history.back..                                    |

  >----------------------------------------------------------------------------|









If you are going to use an image button this way then in your codebehind or

some other server script you need to set the client side onclick event like

this...



//using codebehind:

cmdReport.Attributes.Add("onclick","javascript:reportready():);



//using server script w/in the page:

<script language="C#" runat="server">

cmdReport.Attributes.Add("onclick","javascript:reportready():);

</script>



or you could use a regular image tag and add it how you have it (unless you

are doing something else with the image button, but it doesn't look like you

are).



The "OnClick" event for WebControls is server side.  To utilize the onclick

for client side you need to use a method above or use HtmlControls:



<input type="button" runat="server" onclick="alert('hello world');">

-----Original Message-----

From: Brzeski, Tom [mailto:Tom.Brzeski@o...]

Sent: Tuesday, November 06, 2001 3:25 PM

To: ASP+

Subject: [aspx] RE: history.back..





I am using this code

<asp:imagebutton id="cmdReport" runat="server" ImageUrl="images/print.gif"

OnClick="javascript:reportready()"></asp:imagebutton>



and getting error The name 'javascript' is not a member of

'ASP.PageReports_aspx'.

Is it possible to create client onClick event with <asp:imagebutton />





-----Original Message-----

From: Yu, Kevin [mailto:kyu@N...]

Sent: Tuesday, November 06, 2001 6:44 AM

To: ASP+

Subject: [aspx] RE: history.back..



use OnClick event.

-----Original Message-----

From: S. Asif Imam [mailto:asifimam@y...]

Sent: Tuesday, November 06, 2001 3:43 AM

To: ASP+

Subject: [aspx] history.back..

Is it possible to go to back page using asp:button, some thing like

ClientValidationFunction..??

Its possible through client side scripting, but i just want to confirm if it

is impossible and not possible using asp:button .



Thanx.



---

VBug Winter Conference 2001



Open Forum: Dan Appleman will be hosting an open

forum at The .NET Developer's Conference on

29th November 2001. The session will give

developers the chance to discuss and question

Dan on his experience with the .NET environment.

Dan has been programming Visual Basic since the

alpha version 1.0. And with over 10 years

Visual Basic experience is well qualified to

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to

aspx as: kyu@n...


$subst('Email.Unsub')

---

VBug Winter Conference 2001



Open Forum: Dan Appleman will be hosting an open

forum at The .NET Developer's Conference on

29th November 2001. The session will give

developers the chance to discuss and question

Dan on his experience with the .NET environment.

Dan has been programming Visual Basic since the

alpha version 1.0. And with over 10 years

Visual Basic experience is well qualified to

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to

aspx as: tom.brzeski@o...


$subst('Email.Unsub')

---

VBug Winter Conference 2001



Open Forum: Dan Appleman will be hosting an open

forum at The .NET Developer's Conference on

29th November 2001. The session will give

developers the chance to discuss and question

Dan on his experience with the .NET environment.

Dan has been programming Visual Basic since the

alpha version 1.0. And with over 10 years

Visual Basic experience is well qualified to

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to

aspx as: timh@i...


$subst('Email.Unsub')



---

VBug Winter Conference 2001



Open Forum:  Dan Appleman will be hosting an open

forum at The .NET Developer's Conference on

29th November 2001.  The session will give

developers the chance to discuss and question

Dan on his experience with the .NET environment.

Dan has been programming Visual Basic since the

alpha version 1.0.  And with over 10 years

Visual Basic experience is well qualified to

help you on your road to being a .NET Guru.



http://www.vbug.co.uk/redirect.asp?url=39&id=17



---

You are currently subscribed to

aspx as: Samuel_Engelman@p...


$subst('Email.Unsub')








  Return to Index