Click here to Skip to main content
15,792,337 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
  1. I have a button. When I click it, it triggers client side validation, then it does postback.
  2. Postback is triggered and all functionalities inside that function also get executed but I want to show some popup. I registered script.
  3. I do not get any alert and no console error.
  4. It happens only if I trigger click function using postback.

What I have tried:

I added the same script in onload, there I get alert.
Why is script not registered if it's called from postback.
Updated 15-Sep-23 4:00am
OriginalGriff 15-Sep-23 7:21am    
Without access to your code, we have no idea how to help you - we just don't know what you have tried!

So edit your question, and show us the relevant code fragments - server side and client - and explain what you have tried to find out why it isn't doing what you expect - plus what it actually does do instead. Don;t forget to tell us how you found out what it was doing.
Just saying "it don't work" helps no one!

Use the "Improve question" widget to edit your question and provide better information.

1 solution

Google Search is your friend ... show alert from code behind - Google Search[^] ... there are tonnes of examples.

If you can't find what you are looking for in the above search, then modify it to get different search results.
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