I wont to send a popup message to the web page.

  • Thread starter Thread starter Steve Westwood
  • Start date Start date
S

Steve Westwood

I have a WebForm button. Depending on calculation I wont to send a popup
message to the web page. I am not sure of the approach. From the server
side code I don't seem to be able to access the client side script. Can
anyone help?



I am using the VS .net C# environment





Thank you,





Steve
 
private void ButtonChangePassword_Click(object sender, System.EventArgs e)

{

string Message;

Message = Tool.ChangeName(oldName, NewName);

/****Here is where I wont to send a popup to the web page. An Alert would
work fine.

}

How do I send a client side command, from a server side function.


Thank you
 
Use ASP Button's Attributes collection and put the JavaScript for onclick
event.
 
Back
Top