Click here to Skip to main content
15,891,763 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I want to display a Popup Message in GridView(GrdEmp_SelectedIndexChanged) event.I want to take a field value from GridView and display that value as a Popup when SelectedIndexChanged event will happen.

Thanks & Regards,

Taposi.
Posted

 
Share this answer
 
Comments
taposi 23-May-12 7:52am    
Is their any other way to do this.I have already done with MOdalPopExtender Control,but the problem with this control is at the time of page loading the panel is appearing for a second that's not looking good.

Thanks & Regards,
Taposi.
uspatel 23-May-12 7:56am    
You can also use JavaScript popup
http://www.dynamicdrive.com/dynamicindex11/abox2.htm
http://www.dynamicdrive.com/dynamicindex6/popcalendar2.htm
taposi 23-May-12 8:09am    
Through Javascript i am doing like this:

protected void GrdEmp_SelectedIndexChanged(object sender, EventArgs e)
{
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Success", "alert('"+TxtNotes.Text+"')", true);
}

its showing me the message.But when i am working with this event my GridView is Disappearing ,once i click OK button from msgbox then its displaying.why this is Happening.my gridview is under TabContainer.
uspatel 23-May-12 7:58am    
one way to do this that can be useful for you but it only my view.
take a panel.
set its position absolute.
Make panel visible false.
on event make it visible.
Perhaps on selected index changed event, from server side you can do what this tip is suggesting

A Windows Form like MessageBox for ASP.NET Website[^]
 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900