Click here to Skip to main content
15,885,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How get message without post back in ASP.Net
Posted
Comments
Ra-one 10-Jun-11 7:24am    
What kind of message you want... Alert .... Confirm .... or any message from database operation.... ?
alpeshPatel_87 13-Jun-11 1:04am    
Alert message
Sandeep Mewara 10-Jun-11 11:49am    
Not clear.
parmar_punit 11-Jun-11 8:16am    
please clear your question or accept the answer that is listed here..

<asp:Button ID="btnJa" runat="server" Text="Check javascript" OnClientClick="return a();" />

 <script language="javascript" type="text/javascript">
function a()
{
  alert('hi');
  return false;
}
</script>
 
Share this answer
 
v2
Hope this[^] might help you.

For Ex:

Use this:
OnClientClick = "return confirm('Do you want to delete?');"
 
Share this answer
 
v2
Comments
parmar_punit 11-Jun-11 8:16am    
good answer, my 5
[no name] 12-Jun-11 23:44pm    
Thanks.
alpeshPatel_87 13-Jun-11 1:06am    
Thanks.
Show it in a label. so that it will not post back
 
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