Hi,
I have two dropdown controls on my user contorl and two ListSearchExtenders are being used for the dropdowns. The user control is in an update panel. And the user control is being used in myPage.aspx page. By the time the myPage.aspx loads one of the dropdown list controls gets focus. When clicked on any where on the page to make its focus loss it is doing a postback. I.e the postabck happens even when no option was selected.
We do not want this unnecessary postback back to happen. Below is the code I have on my user control. When I commented the ListSearchExtenders it doesn't do a postback when dropdowns lost the focus. But we still want to keep the ListSearchExtender functionality.
<%-- <cc1:ListSearchExtender ID="LSE" runat="server" TargetControlID="ClientName" PromptText="Type to search"
PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top"/>--%>
<%--
<cc1:ListSearchExtender ID="ListSearchExtender3" runat="server" TargetControlID="LabName"
PromptText="Type to search" PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top" />--%>
<asp:DropDownList ID="LabName" TabIndex="1" runat="server" Width="400px" AutoPostBack="true" />
<asp:DropDownList ID="ClientName" TabIndex="2" AutoPostBack="True" runat="server" Width="400px"
Enabled="false"/>
The .NET version we are using is 3.5 and we are using the latest November release Ajax Control Toolkit version , 3.5.51116.0. I am not sure if there is a fix for this issue in the latest Ajax Control Toolkit (may be 4.1) but I can't use this version because we are still using .NET 3.5. So upgrading is ruled out.
I am writing this to see if there is a workaround or a fix have already been provided. Can you please point me to right direction.
Hope my explanation is understandable. If you have any questions or need further info please email me.
Email: movvap@yahoo.com
Thanks in advance,
Dev Movva
Comments: Would you provide a complete sample project?
I have two dropdown controls on my user contorl and two ListSearchExtenders are being used for the dropdowns. The user control is in an update panel. And the user control is being used in myPage.aspx page. By the time the myPage.aspx loads one of the dropdown list controls gets focus. When clicked on any where on the page to make its focus loss it is doing a postback. I.e the postabck happens even when no option was selected.
We do not want this unnecessary postback back to happen. Below is the code I have on my user control. When I commented the ListSearchExtenders it doesn't do a postback when dropdowns lost the focus. But we still want to keep the ListSearchExtender functionality.
<%-- <cc1:ListSearchExtender ID="LSE" runat="server" TargetControlID="ClientName" PromptText="Type to search"
PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top"/>--%>
<%--
<cc1:ListSearchExtender ID="ListSearchExtender3" runat="server" TargetControlID="LabName"
PromptText="Type to search" PromptCssClass="ListSearchExtenderPrompt" PromptPosition="Top" />--%>
<asp:DropDownList ID="LabName" TabIndex="1" runat="server" Width="400px" AutoPostBack="true" />
<asp:DropDownList ID="ClientName" TabIndex="2" AutoPostBack="True" runat="server" Width="400px"
Enabled="false"/>
The .NET version we are using is 3.5 and we are using the latest November release Ajax Control Toolkit version , 3.5.51116.0. I am not sure if there is a fix for this issue in the latest Ajax Control Toolkit (may be 4.1) but I can't use this version because we are still using .NET 3.5. So upgrading is ruled out.
I am writing this to see if there is a workaround or a fix have already been provided. Can you please point me to right direction.
Hope my explanation is understandable. If you have any questions or need further info please email me.
Email: movvap@yahoo.com
Thanks in advance,
Dev Movva
Comments: Would you provide a complete sample project?