I am currently facing challenges with SharePoint webparts programming. I am unsure about how to trigger a postback for an object at a specific time. I have come across suggestions to use "javascript" for this purpose, but I am having trouble understanding the concept.
Let's consider a scenario:
void BIGenerate_Click(object sender, EventArgs e)
{
if (this.txtPassword.Text != "")
{
bla bla bla code
}
//CODE TO GENERATE POSTBACK
}
What is the correct code that needs to be inserted there? How can I call a JavaScript function at that particular moment? Your assistance is greatly appreciated!