By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,408 Members | 1,914 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,408 IT Pros & Developers. It's quick & easy.

Client/Server-side execution of code

P: n/a
Hi,

1) is it possible for an asp-button control to execute client-side scripting
as well ?

2) and for an HTML-server control ? I would like to execute client-side code
, and then execute server-side code.

Thnx

Chris
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Chris,
1) is it possible for an asp-button control to execute client-side scripting as well ?
of course you can have a client side script on asp:button control.

in the page load you can add this line for having client side validation
btnMyButton.Attributes.Add("onclick","javascript:m yJavaScriptFunctionToExecu
te();");
2) and for an HTML-server control ? I would like to execute client-side code , and then execute server-side code. for adding the check on the server you need to add the event on the server
and do the necessacary stuff.
Ex:
private void btnMyButton_Click(object Sender,EventArgs e)
{
// code to execute on server
}

HTH
Regards
Ashish M Bhonkiya
"Chris" <ch********@pandora.be> wrote in message
news:hS**********************@phobos.telenet-ops.be... Hi,

1) is it possible for an asp-button control to execute client-side scripting as well ?

2) and for an HTML-server control ? I would like to execute client-side code , and then execute server-side code.

Thnx

Chris

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.