how to pop up dropdownlist using modelpopupExtender......

Posted by See29ram under ASP.NET AJAX on 11/28/2011 | Points: 10 | Views : 1528 | Status : [Member] | Replies : 1
here my code,did i make any mistake...


<asp:Button ID="btnassign" runat="server" Text="Assign"
onclick="btnassign_Click" />
<asp:Panel ID="option" runat="server" >
<asp:DropDownList ID="ddlnwkeng" runat="server" AutoPostBack="True">
<asp:ListItem>--select--</asp:ListItem>
<asp:ListItem>Abdul</asp:ListItem>
</asp:DropDownList>
</asp:Panel>
<asp:ModalPopupExtender ID="ModalPopupnwkeng" DropShadow="true" TargetControlID="btnassign" PopupControlID="option" runat="server">
</asp:ModalPopupExtender>




Responses

Posted by: Varung on: 12/5/2011 [Member] Starter | Points: 25

Up
0
Down
remove autopostback=true for dropdownlist

if that doesnot work write the below snipnet in btnassign click event

ModalPopupnwkeng.show();

G.Varun

See29ram, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response