ConvincingMail - Email Marketing SoftwareConvincingMail
 
Email Marketing Software

Welcome Guest Search | Active Topics | Members | Log In | Register

Postback with autosuggest Options · View
Guest
Posted: Thursday, July 31, 2008 5:00:05 AM
Rank: Guest
Groups: Guest

Joined: 11/18/2007
Posts: -328
I want the autosuggest to do the postback after i select item from the list.
I used __doPostBack function in javascript but after that update field which contains selected ID was empty.
Any idea how to implement a postback and fill update field after it?
trooper
Posted: Tuesday, August 05, 2008 4:55:29 AM
Rank: Administration
Groups: Administration

Joined: 11/18/2007
Posts: 25
Hi,
you can use OnClientItemSelected property

Code:
<script language="JavaScript" type="text/javascript">
function MyPostbackClientSideFunction(sender, item){
//do a postback or whatever you want here
    __doPostBack();
}
</script>
<cc1:AdvancedAutoSuggestExtender SuggestOnEmptyField="true" TargetControlID="StateTextBox" ServiceUrl="~/Suggestions.asmx/StateSuggest" ID="StateAASE" SuggestionsDivId="suggestionsDiv" runat="server"  OnClientItemSelected="MyPostbackClientSideFunction" />


Thanks
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.
This page was generated in 0.061 seconds.