.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

problem in using Model pop Extender and animation extender

Posted By: Yatin     Posted Date: December 20, 2010    Points:2   Category :ASP.Net

I am working on a design of a homepage. On my page I am trying some ajax control like model popup extender.
I am placing all the contents in a table format.

Collapse | Copy Code
<cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
<asp:Panel ID="Panel3" runat="server">
<table width="100%">
<td style="height:72px; width: 955px;">
<td style="width: 248px; vertical-align:top;" align="center">
<span style=" font-family:Verdana; font-size: 8pt; color:Teal; text-decoration:blink" >
Have An Account</span> <asp:Button ID="Button2" runat="server" Text="Login" onclick="Button2_Click" />
<asp:Panel ID="moveMe" runat="server" HorizontalAlign="Center" Style="display: none" BackColor="Green">
<asp:Label ID="Label1" runat="server" Text="UserName"></asp:Label> : <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<br />
<asp:Label ID="Label2" runat="server" Text="Password"></asp:Label> : <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
<asp:Button ID="lnkBtnCloseColHelp" runat="server" Text="Button" />
The code for Button click is as below:

protected void Button2_Click(object sender, EventArgs e){ AjaxControlToolkit.ModalPopupExtender modalPop = new AjaxControlToolkit.ModalPopupExtender(); modalPop.ID = "popUp"; modalPop.PopupControlID = "moveMe"; modalPop.TargetControlID = "Button2"; modalPop.DropShadow = true; modalPop.BackgroundCssClass = "modalBackground"; modalPop.CancelControlID = "lnkBtnCloseColHelp"; modalPop.Show();}
Here on login button I'm trying to pop up a panel containing Username and password and login button. But, the model pop up is not working. I also tried the animation extender but that also didn't work. I am not getting what the problem is?.

Author: Manas Patnaik             
Posted Date: December 21, 2010     Points: 5   

You need to use Updatepanel to work from code behind.

Manas Patnaik

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend