What I want is after inserting a comment, I want to call an jquery to fade in the message telling the user if the insertion was successfull or not. How can be is done. I now that in the jquery I want to use the fade in effect but I don't know how to link these two together. The server side script is onClick of the button
Currently what I have is this
bool result = true
if (result)
{
}
else
{
}
Thanks
You never exactly say whether you're using asp classic or asp.net, but we can make a guess based on part of your question (now tagged better). Here's the key phrase:
The server side script is onClick of the button
That tells me you're likely using asp.net. It also tells me that you're doing a full postback to your server code. That means that when you click the button, the DOM currently loaded in your browser is destroyed, and an entirely new page is retrieved from the server. This is how asp.net events work. And that means that way you call your jQuery effect to load after the result is the use the ClientScriptManager on the page to register your javascript to run on startup (load) of the page.