protected void timer1_Tick(object sender, EventArgs e)
{
foreach (RepeaterItem item in rpChat.Items)
{
TextBox txt = item.FindControl("txtChatMessage") as TextBox;
if (txt != null)
{
message[i] = txt.Text;
i--;
}
}
lblStatusChat.Text = "";
RepeaterBind();
string javaScript = "<script language=JavaScript>\n" + "alert('Button1_Click client-side');\n" + "</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "myKey", javaScript);
}
timer_click
ट्रिगर और अद्यतन पैनल। और चेतावनी संदेश timer_tick घटना पर दिखाई नहीं करता हैरजिस्टरस्टार्टअपस्क्रिप्ट स्क्रिप्ट मैनेजर, अपडेट पैनेल के साथ काम नहीं करता है। ऐसा क्यों है?
मैं एएसपी.नेट 2.0 के साथ फंस गया हूं जहां आप पैनल आईडी नहीं दे सकते हैं, इसलिए यह काम नहीं करेगा। कोई सुझाव? –
अद्यतन पैनल आईडी और प्रकार को पास करना गलत है, इसके बजाय 'this.Page' और 'this.GetType()' को पास करें। – modiX