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


Top 5 Contributors of the Month
david stephan

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
Hello,

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">
</cc1:ToolkitScriptManager>
<asp:Panel ID="Panel3" runat="server">
<table width="100%">
<tr>
<td style="height:72px; width: 955px;">
<table>
<tr>
<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" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</asp:Panel>
<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" />
</asp:Panel>
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?.

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

You need to use Updatepanel to work from code behind.

Manas Patnaik
http://manaspatnaik.com/blog


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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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