anoop,
You need to add the javascript as a attribute from the code behind file.
MyButton.Attributes.Add("onClick", "your javascript call here")
If you'd like I've created a javascript project that let's you drop an
object on a page and then use the javascript's it contains. It has quite a
few useful scripts in it now like opening a window, attaching a
confirmation, making the enter key click a button while in a text box, and
stopping a user from clicking submit more than once.
All the code on my website is free and downloadable as Visual Studio.NET
v1.1 projects. You may find the javascript project by clicking the code
library link on the top right corner of my website,
www.aboutfortunate.com,
and then clicking on the Javascript button in the menu on the left.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche
"anoop" <> wrote in message
news:3A8AF886-DD87-4F7D-BC00-...
> hello,
> I have written jscript within the <SCRIPT> and runat="server"
tag in .aspx page and has written a function inside the jscript. the
settings for the page are <% page language="jscript"> and default client
script is "vbscript". Also the project is Visual Basic .Net Project.
> Now if I call that function in html
from <asp: button's Onclick Event, I get an error "invalid procedure call or
argument" , also that's button's attribute is also set to runat="server".
> What
should I do to call that function and solve this problem