Click here to Skip to main content
15,911,531 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all friends,
I want to use java script popup in C#
How to do it?

Thanks for your help.
Posted
Updated 8-Nov-10 4:10am
v3
Comments
jim lahey 8-Nov-10 10:15am    
the question isn't clear. do you want to trigger a javascript popup from C# in ASP.net?
shakil0304003 8-Nov-10 10:48am    
Not Clear!!!

1 solution

It is not possible. Use message box.
For windows C#
MessageBox.Show("HI");

For asp.net

<asp:ImageButton ID="btnDeleteProduct" runat="server" ImageUrl="/admin/images/btn_delete.jpg"
Width="60" Height="21" AlternateText="Delete" CssClass="btn_delete_content" OnClientClick="return confirm('Are you sure to delete?');" ></asp:ImageButton>
<a href="javascript:alert('hi');">Click</a>
 
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