Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Ajax in dotnetnuke modulsAjax in dotnetnuke moduls
Previous
 
Next
New Post
5/10/2007 10:55 PM
 

I created moduls using ajax controls tools kit.

I created  PanelContainer and some TabContainer for show address imformation. 

In TabContainer i created :

Textbox: get email address

Button: submit email address imformation:

asp:ScriptManager ID="ScriptManager2" runat="server" EnablePartialRendering="True" />script type="text/javascript">

 

 

Highlight(Messages);

}

 

 

CurrentTab.innerHTML = sender.get_activeTab().get_headerText();

Highlight(CurrentTab);

}

 

 

 

HighlightAnimations[el.uniqueID] = AjaxControlToolkit.Animation.createAnimation({

AnimationName :

duration : 0.5,

property :

propertyKey :

startValue :

endValue :

function PanelClick(sender, e) {var Messages = $get('<%=Messages.ClientID%>');function ActiveTabChanged(sender, e) {var CurrentTab = $get('<%=CurrentTab.ClientID%>');var HighlightAnimations = {};function Highlight(el) {if (HighlightAnimations[el.uniqueID] == null) {"color","style","backgroundColor","#FFFF90","#FFFFFF"

}, el);

}

HighlightAnimations[el.uniqueID].stop();

HighlightAnimations[el.uniqueID].play();

}

 

 

$find(

}

 

function ToggleHidden(value) {'<%=Tabs.ClientID%>').get_tabs()[2].set_enabled(value);</script>

 

<div class="demoarea">

 

<div class="demoheading">Tabs Demonstration</div>

The following user profile is presented in Tab format. You can click on the tab

and modify specific fields.

 

<br /><br />

 

Toolkit User Profile:

 

<cc1:TabContainer runat="server" ID="Tabs" Height="150px" OnClientActiveTabChanged="ActiveTabChanged">

 

<cc1:TabPanel runat="Server" ID="Panel1" HeaderText="Signature and Bio">

 

<ContentTemplate>

 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">

 

<ContentTemplate>

 

<table>

 

<tr>

 

<td>Signature:</td>

 

<td><asp:TextBox ID="signatureText" runat="server" /></td>

 

</tr>

 

<tr>

 

<td>Bio:</td>

 

<td><asp:TextBox ID="bioText" runat="server" /></td>

 

</tr>

 

</table>

 

<asp:Button ID="Button3" runat="Server" Text="Save" OnClick ="Click"/>

 

<br /><br />

Hit Save to cause a postback from an update panel inside the tab panel.

<br />

 

</ContentTemplate>

 

</asp:UpdatePanel>

 

</ContentTemplate>

 

</cc1:TabPanel>

 

 

<cc1:TabPanel runat="Server" ID="Panel3" HeaderText="Email" >

 

<ContentTemplate>

Email:

<asp:TextBox ID="emailText" runat="server" />

 

<br /><br />

 

<asp:Button ID="Button1" runat="Server" Text="Save" OnClick ="Click" />

 

<br /><br />

Hit Save to cause a full postback.

 

</ContentTemplate>

 

</cc1:TabPanel>

 

 

<cc1:TabPanel runat="Server" ID="Panel2" OnClientClick="PanelClick" HeaderText="Controls">

 

<ContentTemplate>

 

<div>Controls authored by Toolkit User (read-only - demo purposes):</div>

 

<ul>

 

<li>Calendar</li>

 

<li>MaskedEdit</li>

 

<li>Accordion</li>

 

<li>Calendar</li>

 

<li>Calendar</li>

 

</ul>

 

<br />

 

</ContentTemplate>

 

</cc1:TabPanel>

 

</cc1:TabContainer>

 

<br />

 

 

<asp:CheckBox runat="server" ID="showComponents" Checked="true"

 

Text=" Show Controls Owned" onclick="ToggleHidden(this.checked)" />

 

<br /><br />

 

Current Tab:

 

<asp:Label runat="server" ID="CurrentTab" /><br />

 

<asp:Label runat="server" ID="Messages" />

 

</div>

 

When run moduls error:

 

Unhandled error loading module.
DotNetNuke.Services.Exceptions.ModuleLoadException: Unhandled Error Adding Module to ContentPane ---> System.InvalidOperationException: Only one instance of a ScriptManager can be added to the page. at System.Web.UI.ScriptManager.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Skins.Skin.InjectModule(Control objPane, ModuleInfo objModule, PortalSettings PortalSettings) --- End of inner exception stack trace ---

 Web page dont show textbox and Button for input and submit email information on server!!!!!

 Help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

<

<

 
New Post
5/11/2007 12:06 AM
 

The error points out "Only one instance of a ScriptManager can be added to the page"

see: Using the ASP.NET AJAX Control Toolkit



Michael Washington
http://ADefWebserver.com
www.ADefHelpDesk.com
A Free Open Source DotNetNuke Help Desk Module
 
New Post
5/11/2007 9:33 AM
 

Basically just add the Script Manager in the "default.aspx" page and then you just have to code the ajax in your modules.  I use Ajax in basically all of the modules that I create and they work just fine if you just add the instance of hte script manager to the default page of dnn.

 
New Post
5/11/2007 12:27 PM
 

Thanks! Do you share to me that moduls ? Can I see codes of  that moduls? HELP ME!!!!!!!!!!!

 
New Post
5/11/2007 1:44 PM
 

In your module instead of adding a scriptManager add a scriptManagerProxy to the page.  That will fix the error.


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Ajax in dotnetnuke modulsAjax in dotnetnuke moduls


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out