F
Frag
Hi guys,
I searched around without any clear answer. Tons of stuff, but nothing concrete.
I am trying to call this Javascript function:
function ButtonClicked()
{
alert("The button has been clicked.");
}
Calling it from an HTML button is no problem at all. But there is no way I can call that function from an ASP button. I tried from the HTML side or the aspx side.
I understood that an ASP button run only on the server. But I can't believe you can't make that simple call. I really hate to use HTML button when the design with ASP on a Web Form is so fast and easy.
Since I am a newbie, some code example will be appreciated.
Briefly, I have an ASP button that I want to call the Javascript function "ButtonClicked"
Thanks
Frag
I searched around without any clear answer. Tons of stuff, but nothing concrete.
I am trying to call this Javascript function:
function ButtonClicked()
{
alert("The button has been clicked.");
}
Calling it from an HTML button is no problem at all. But there is no way I can call that function from an ASP button. I tried from the HTML side or the aspx side.
I understood that an ASP button run only on the server. But I can't believe you can't make that simple call. I really hate to use HTML button when the design with ASP on a Web Form is so fast and easy.
Since I am a newbie, some code example will be appreciated.
Briefly, I have an ASP button that I want to call the Javascript function "ButtonClicked"
Thanks
Frag