| Author: Vijendra Singh Shakya 10 Jan 2009 | Member Level: Bronze | Rating:  Points: 6 |
hi Ramakrishnan Please use the ajax modelpopupextender in the following way.
<ajaxToolkit:ModalPopupExtender ID="mpeUploadAticleImage" runat="server" TargetControlID="lnkShowPopup" PopupControlID="pnlUploadAticleImage" DropShadow="true" BackgroundCssClass="modalBackground" CancelControlID="btnCancelPopup" EnableViewState="false"> </ajaxToolkit:ModalPopupExtender> <asp:Panel ID="pnlUploadAticleImage" runat="server" Width="350px" Height="150px" Style="display: none"> <table class="sidebarBox" border="0"> <tr class="sidebarHead"> <td> <asp:Image ID="imglogo" runat="server" ImageUrl="~/image/images/logo.gif" Width="350px" /> </td> </tr> <tr> <td style="padding-right: 35px"> <asp:FileUpload ID="fludArticleImage" runat="server" /> </td> </tr> <tr> <td style="padding-right: 35px"> <asp:Button ID="btnUploadImage" runat="server" Text="Upload" CausesValidation="false" OnClick="btnUploadImage_OnClick" /> <asp:Button ID="btnCancelPopup" runat="server" Text="Cancel" CausesValidation="false" /> </td> </tr> </table> </asp:Panel>
on the btnUploadImage_OnClick u need to show the modelpopup with show property. i hope this is the solution of ur problem.
Vijendra Shakya
|