Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,


I have textbox "txtincidentnumber".If i click button i want to show if the incident number exists in db it will show alert message in javascript function.Plz any idea for this.
Posted

You have not tagged your question properly. If you are using SQL Server then see this : create the duplicate record, if allready existing record show the message box asp.net[^]
 
Share this answer
 
I have no idea if this is a webforms or a MVC site you are making. However if it is MVC,

Create an action that receives an incident number and then connects to your database and checks.
This action could be called by an AJAX method and then if successful return the results so you can display the appropriate message.
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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