C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Ajax extender.


Posted Date: 10 Jan 2009      Posted By: Ramakrishnan      Member Level: Bronze     Points: 1   Responses: 1



Hey

I am unable to use extender functionality for controls in Visual web developer 2008 express edition.

I was using the same some days back in the same. But now its showing some werror like " The operation couldnot be completed. Invalid FORMATETC structure"

What the hell is this ?

Its urgent. Please help me.





Responses

Author: Vijendra Singh Shakya    10 Jan 2009Member Level: BronzeRating: 2 out of 52 out of 5     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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : Avoiding duplicate entries in datagrid
Previous : gridview???
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use