|
Friday, 27 January 2012 11:44 |
// how to access server side function using javascript
protected string ServerFunciton()
{
string toppltip= string.Format("I am a server side function");
return tooltip;
}
 Read more: |
|
Tuesday, 20 December 2011 00:15 |
I’ve noticed a lot of discussion lately regarding methods to refresh an UpdatePanel via client script. This is very easy on the server side, of course. You can just call UpdatePanel.Update(). However, on the client side, the most common solutions is
OnLoad="UpdatePanel1_Load">
protected void UpdatePanel1_Load(object sender, EventArgs e)
{
Label1.Text = DateTime.Now.ToString();
}
__doPostBack() call is an async trigger of an UpdatePanel, the ASP.NET AJAX framework will intercept the postback and fire a partial postback instead. For purposes of demonstration, I’m going to add that to the OnClick event of the container div:
 Read more: |