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

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICan I update another label on DNNEditLabel Update?Can I update another label on DNNEditLabel Update?
Previous
 
Next
New Post
6/12/2008 12:50 AM
 

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 7:33 PM
 

Any ideas anyone?


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
6/16/2008 8:57 AM
 

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 9:26 AM
 

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.


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
6/18/2008 8:43 AM
 

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>

 


Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsClientAPIClientAPICan I update another label on DNNEditLabel Update?Can I update another label on DNNEditLabel Update?


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