without refresh web page display alert box

Posted by Gow.Net under ASP.NET on 9/18/2012 | Points: 10 | Views : 2103 | Status : [Member] | Replies : 2
how to display without page refresh display alert box

my code
  if (Icollection.Count == 0)
{
Response.Write("<script>alert('no data');</script>");
}
else
{
foreach (SearchBo search in Icollection)
{
string fname = search.Filename;
int id = search.E_id;
Response.Write("<script>alert('" + fname + "');</script>");
}
}


gowthaman8870226416


Responses

Posted by: Jayakumars on: 9/18/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

Gow.Net
put your Jscript Body onload or client side script using return

Mark as Answer if its helpful to you

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 9/20/2012 [Member] [MVP] Gold | Points: 25

Up
0
Down
You can use AJAX Update Panel

Gow.Net, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response