Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 30th, 2003, 01:22 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default help me!

Is it possible to call a javascript function from a webcontrol textbox?
if so,how?
Thanks

Jie
__________________
Jie
 
Old June 30th, 2003, 01:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

Yes!
YOURCONTROL.Attributes["EVENT"]="JavaScript function";
ex:
Button1.Attributes["OnClick"]="do_something_in_clinet_side();";

Always:),
Hovik Melkomian.
 
Old June 30th, 2003, 01:53 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

TextBox???
Event:onblur???

Jie
 
Old June 30th, 2003, 01:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

TextBox.Attributes["onblur"]="do_something_in_clinet_side();";

Always:),
Hovik Melkomian.
 
Old June 30th, 2003, 02:05 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

´ó¸ç£¬Ð»Ð»£¡£¡£¡

Jie
 
Old June 30th, 2003, 02:08 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

TextBox.Attributes["onblur"]="do_something_in_clinet_side();";
this is C#
vb.net?



Jie
 
Old June 30th, 2003, 02:42 AM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

TextBox2.Attributes("onblur") = "myfunction(this);"
I see!

Jie









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.