Connecting Tech Pros Worldwide Forums | Help | Site Map

how to display an alert message in ajax

Needs Regular Fix
 
Join Date: Jan 2007
Posts: 365
#1: Feb 26 '08
Hi,

I am working in asp.net+ajax. I do not know where to put this question. I guess i am in the right place

I am using ajax update control panel. I have three dropdownlist inside it. Now the user has to choose values from the three dropdownlist. If he chooses the same item as that of previous dropdownlist. I want to display an alert message.

I cannot use response.write("<script> alert("dfs")</script>");

I am supposed to write in dropdownlist selected change event

please help me out

regards

cmrhema

hsriat's Avatar
Expert
 
Join Date: Jan 2008
Location: Bath, UK
Posts: 1,609
#2: Feb 26 '08

re: how to display an alert message in ajax


Quote:

Originally Posted by cmrhema

Hi,

I am working in asp.net+ajax. I do not know where to put this question. I guess i am in the right place

I am using ajax update control panel. I have three dropdownlist inside it. Now the user has to choose values from the three dropdownlist. If he chooses the same item as that of previous dropdownlist. I want to display an alert message.

I cannot use response.write("<script> alert("dfs")</script>");

I am supposed to write in dropdownlist selected change event

please help me out

regards

cmrhema

Try doing validation before sending the HTTP request with AJAX.
Reply