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

HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Link and Click button is not workinLink and Click button is not workin
Previous
 
Next
New Post
5/1/2010 3:05 AM
 

I have create new module for DNN 5.4, when i try to use click event of button its not work me any Idea.

 

<%@ Control language="vb" Inherits="YourCompany.Modules.QuoteBuilderAdmin.ViewQuoteBuilderAdmin" CodeFile="ViewQuoteBuilderAdmin.ascx.vb" AutoEventWireup="false" Explicit="True" EnableViewState="false"  %>

 

<div>

    <div>

        <div> 

            <asp:Button ID="btnManufacture" runat="server" Text="Manufacture" />

            <asp:LinkButton ID="lnkManufacture" runat="server" Text="Manufacture" /> 

        </div>

        <div> <asp:LinkButton ID="lnkProduct" runat="server" Text="Manufacture" /> </div>

   </div>

    <div>

        <asp:UpdatePanel ID="upnlLoadControl" RenderMode="Inline" ChildrenAsTriggers="false" UpdateMode="Conditional"  runat="server">

        <ContentTemplate>

        <asp:PlaceHolder ID= "plcLoadControl" runat="server"  >

        

        

        </asp:PlaceHolder>

        </ContentTemplate>

        <Triggers>

            <asp:AsyncPostBackTrigger ControlID="btnManufacture" EventName="Click" />

        </Triggers>

        </asp:UpdatePanel>

    </div>

</div>

Code Behind:
Protected Sub LoadUserControl()
            Dim ControlPath As String = "Manufacture.ascx"
            plcLoadControl.Controls.Clear()
            Dim uc As UserControl = CType(LoadControl(ControlPath), UserControl)
            plcLoadControl.Controls.Add(uc)
        End Sub
        
        Protected Sub btnManufacture_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnManufacture.Click
            LoadUserControl()
        End Sub
 

 
New Post
5/2/2010 4:34 PM
 
What exactly not working for you? Page not refreshed or you have some errors?

Team Leader
CodingStaff Development Company
Check our dnn modules and dotnetnuke skins to see where you can start.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Using Modules a...Using Modules a...Link and Click button is not workinLink and Click button is not workin


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