Tuesday, 17 August 2010

DropDownList Autopostback Problem with Chrome

I was trying to perform Autopostback on Asp.net DropDownList, Selection and found that it was working in IE and Firefox, but not working in Chrome.


Cause of Problem
Required field Validator control is not working as expected for DropDownList Control

Solution to perform Page Postback on making selection to DropDownList
You need to set EnableClientScript="false" in order to make it work in Chrome.

Example:
ToolTip="Select Language" Width="190" AutoPostBack="true"
onselectedindexchanged="ddlLanguage_SelectedIndexChanged">

EnableClientScript="false" ControlToValidate="ddlLanguage" InitialValue="0" TabIndex="1" Text="*" ErrorMessage="Please Select Language" Display="None">

No comments:

Post a Comment