Click here to Skip to main content
15,890,438 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionpopulatemenu Pin
mylogics13-Oct-09 22:13
professionalmylogics13-Oct-09 22:13 
AnswerRe: populatemenu Pin
Abhijit Jana14-Oct-09 8:25
professionalAbhijit Jana14-Oct-09 8:25 
QuestionResult of web requst in a Fram on the same page Pin
ptr_Electron13-Oct-09 21:48
ptr_Electron13-Oct-09 21:48 
AnswerRe: Result of web requst in a Fram on the same page Pin
nagendrathecoder14-Oct-09 0:17
nagendrathecoder14-Oct-09 0:17 
QuestionResult of web request in a frame of current page Pin
ptr_Electron13-Oct-09 21:46
ptr_Electron13-Oct-09 21:46 
AnswerRe: Result of web request in a frame of current page Pin
Abhijit Jana14-Oct-09 8:27
professionalAbhijit Jana14-Oct-09 8:27 
QuestionMulti-Level-Marketing (MLM) Asp.net [modified] PinPopular
kirankkk200913-Oct-09 19:31
kirankkk200913-Oct-09 19:31 
QuestionWhy Next button of Wizard control is disabled always? Pin
meeram39513-Oct-09 19:17
meeram39513-Oct-09 19:17 
There is a wizard control in my form. In one of the step, I put a treeview inside an update panel.

Issue is, I disabled the next button while loading the treeview because for selection atleast one node in treeview. Upon selecting any node, the next button of Wizard control should be enabled. Since the wizard button may likely of outside the update panel, I am not able to enable the next button again. Any idea how to enable it again once any treenode is checked?

Following is my code:
<asp:WizardStep ID="BusinessUnitWizardsStep" runat="server" StepType="Step" Title="BusinessUnits">
                   <br />
                   <table class="FormTable">
                       <tr>
<div id ="BusinessUnitsPanel1" runat="server" style="width:100%;height:330px;overflow:auto;">
                                  <asp:Label ID="emptyTextLabel" runat="server" CssClass="ErrorMessagesLabel" Text="No Records found" />
                                   <asp:UpdatePanel ID="TreeViewUpdate" runat="server" ChildrenAsTriggers="true">
                                       <ContentTemplate>
                                           <asp:TreeView onclick="postbackOnCheck(event,'ctl00_PCMSMainContent_CreateDocumentWizard_TreeViewUpdate')" ID="AvailableBusinessUnitsTreeView"
                                               runat="server" Height="100%" Width="50%" ShowLines="true" ShowCheckBoxes="All" ExpandDepth="1"
                                               OnTreeNodePopulate="AvailableBusinessUnitsTreeView_TreeNodePopulate"
                                               OnTreeNodeCheckChanged="AvailableBusinessUnitsTreeView_TreeNodeCheckChanged" EnableClientScript="false">
                                               <ParentNodeStyle Font-Bold="False" />
                                               <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                                               <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" HorizontalPadding="0px"
                                               VerticalPadding="0px" />
                                               <NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="2px"
                                               NodeSpacing="0px" VerticalPadding="2px" />
                                           </asp:TreeView>
                                       </ContentTemplate>
                                   </asp:UpdatePanel>
                              </div>


cs file:
protected void CreateDocumentWizard_ActiveStepChanged(object sender, EventArgs e)
{
   if (CreateDocumentWizard.ActiveStep == BusinessUnitWizardsStep)
   {
      EnableDisableNextButton(false);
   }
}

 private void EnableDisableNextButton(bool isEnable)
    {
        Button btnnext = (Button)CreateDocumentWizard.FindControl("StepNavigationTemplateContainerID").FindControl("StepNextButton");
        if (btnnext != null)
        {
            btnnext.Enabled = isEnable ? true : false;
        }
          
    }

 protected void AvailableBusinessUnitsTreeView_TreeNodeCheckChanged(object sender, TreeNodeEventArgs e)
{
   if (e.node.Checked)
   {
      //Code for what to do if checked.
    } 
    EnableDisableNextButton(true);


Can anybody please help me on this?

Thanks,

Success is the good fortune that comes from aspiration, desperation, perspiration and inspiration.

Questiondropdownlist customization Pin
harshitha200613-Oct-09 19:14
harshitha200613-Oct-09 19:14 
AnswerRe: dropdownlist customization Pin
nagendrathecoder13-Oct-09 19:24
nagendrathecoder13-Oct-09 19:24 
AnswerRe: dropdownlist customization Pin
sashidhar13-Oct-09 19:42
sashidhar13-Oct-09 19:42 
AnswerRe: dropdownlist customization Pin
ToddHileHoffer14-Oct-09 4:32
ToddHileHoffer14-Oct-09 4:32 
QuestionPopulate dropdown list with sql values Pin
asphaltninja13-Oct-09 18:43
asphaltninja13-Oct-09 18:43 
AnswerRe: Populate dropdown list with sql values Pin
nagendrathecoder13-Oct-09 19:12
nagendrathecoder13-Oct-09 19:12 
Questionhow to set the session timeout infinite in asp.net?? Pin
santu32113-Oct-09 18:30
santu32113-Oct-09 18:30 
AnswerRe: how to set the session timeout infinite in asp.net?? Pin
Abhijit Jana13-Oct-09 20:59
professionalAbhijit Jana13-Oct-09 20:59 
QuestionFunny characters when exporting data to excel Pin
Member 270789013-Oct-09 17:49
Member 270789013-Oct-09 17:49 
AnswerRe: Funny characters when exporting data to excel Pin
sashidhar13-Oct-09 18:23
sashidhar13-Oct-09 18:23 
AnswerRe: Funny characters when exporting data to excel Pin
Abhijit Jana13-Oct-09 18:23
professionalAbhijit Jana13-Oct-09 18:23 
Questionclient side Validators did not work Pin
Maher Elsayed13-Oct-09 6:12
Maher Elsayed13-Oct-09 6:12 
AnswerRe: client side Validators did not work Pin
sashidhar13-Oct-09 18:26
sashidhar13-Oct-09 18:26 
QuestionDotNetNuke Pin
nithydurai13-Oct-09 2:19
nithydurai13-Oct-09 2:19 
AnswerRe: DotNetNuke Pin
N a v a n e e t h13-Oct-09 2:21
N a v a n e e t h13-Oct-09 2:21 
AnswerRe: DotNetNuke Pin
sashidhar13-Oct-09 2:23
sashidhar13-Oct-09 2:23 
AnswerRe: DotNetNuke Pin
Abhijit Jana13-Oct-09 2:38
professionalAbhijit Jana13-Oct-09 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.