Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can I update another label on DNNEditLabel Update?
Previous Previous
 
Next Next
New Post 6/11/2008 10:50 PM
User is offline Rodney Joyce (Can't Post with old Account)
52 posts
10th Ranked


Can I update another label on DNNEditLabel Update? 

Hi Jon,

 

I'm trying to update another label in the UpdateLabel event of the LabelEdit control, but it does not update. I have set EnablePartialRendering on the usercontrol to true (and confirmed that this is working) but it doesnt seem to recognise that the other label has changed and update it. This is not a dynamic control - do you have any suggestions please?


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 6/15/2008 5:33 PM
User is offline Rodney Joyce
1641 posts
www.smart-thinker.com
5th Ranked




Re: Can I update another label on DNNEditLabel Update? 

Any ideas anyone?


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 6/16/2008 6:57 AM
User is offline Jon Henning
1622 posts
www.codeendeavors.com
5th Ranked










Re: Can I update another label on DNNEditLabel Update? 

If you mean another control other than the one firing the event, you are not able to cause the refresh of the other label via this event, however you can easily update it so the next page refresh catches it.  If you went down the sloppy update panel version of ajax you could accomplish this with a trigger.  However, my recommended way would be to take the approach I offer in my DNN AJAX module video found here.


 
New Post 6/16/2008 7:26 AM
User is offline Rodney Joyce
1641 posts
www.smart-thinker.com
5th Ranked




Re: Can I update another label on DNNEditLabel Update? 

Yes, it's just another label next to it.

Thanks for the tip - I assumed that because my control was using Enabled Partial Rendering then it would automatically be wrapped in a panel and the panel would update the other label. I'll definitely check out your vid and try to understand the core workings a bit more.


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
New Post 6/18/2008 6:43 AM
User is offline Rodney Joyce
1641 posts
www.smart-thinker.com
5th Ranked




Re: Can I update another label on DNNEditLabel Update? 

Jon, I'm battling to figure out how to do a simple label update. Basically, I want to have my DNNEditLabel update another label. I am declaring everything, but once I get this working I will do it all progamatically - unforunately I can't even get my label to update with a (dirty ;) UpdatePanel.

Here is my markup (simple as possible):

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <DNN:DNNLabelEdit id="editLabel" Text="click on me to edit" CallBackType="ProcessPage" runat="server" CssClass="label" LabelEditCssClass="labeledit" WorkCssClass="labeleditwork" MouseOverCssClass="labelhover" OnUpdateLabel="lblStatus_UpdateLabel" /> 
        <br />
        <asp:Label ID="lblIntegration" runat="server" Text="Integration" />
    </ContentTemplate>
</asp:UpdatePanel>

lblStatus_UpdateLabel just has

            lblIntegration.Text = "Updated " + DateTime.UtcNow.ToString();

and I've debugged it and it is defiintely being called.

Things I have tried:

CallBackType of  ProcessPage instead of Simple (as per your template tutorial)

I read somewhere that both controls have to be inside the same UP container, which they are, but I also tried an asyncronous trigger but that did not work.

Am I being really thick or is there more to it than this? Other controls (like a button) next to the DNNEditLabel update the label fine, just not the DNNEditLabel! Once I get this working I can look at your more efficient way.

ps - here is another attempt (using a Trigger):

<DNN:DNNLabelEdit id="editLabel" Text="click on me to edit" CallBackType="ProcessPage" runat="server" CssClass="label" LabelEditCssClass="labeledit" WorkCssClass="labeleditwork" MouseOverCssClass="labelhover" OnUpdateLabel="lblStatus_UpdateLabel" /> 

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <asp:Label ID="lblIntegration" runat="server" Text="Integration" />
    </ContentTemplate>
    <Triggers>
    <asp:AsyncPostBackTrigger ControlID="editLabel" EventName="UpdateLabel" />
    </Triggers>
</asp:UpdatePanel>

 


Thanks,
Rodney
Smart-Thinker - Social Networking modules for DotNetNuke
The DotNetNuke Directory - Are you listed?
PokerDIY - Example Implementation of DNN Social Network
Do use DNN a lot? Try the DotNetNuke Toolbar to save you time!
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  ClientAPI Compo...  Can I update another label on DNNEditLabel Update?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP