Click here to Skip to main content
15,887,821 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP .NET Custom Validation client side code not Working Pin
JHizzle14-Feb-16 23:36
JHizzle14-Feb-16 23:36 
GeneralRe: ASP .NET Custom Validation client side code not Working Pin
Member 1218422115-Feb-16 4:15
Member 1218422115-Feb-16 4:15 
GeneralRe: ASP .NET Custom Validation client side code not Working Pin
JHizzle16-Feb-16 1:07
JHizzle16-Feb-16 1:07 
AnswerRe: ASP .NET Custom Validation client side code not Working Pin
Wayne Stewart_17-Feb-16 3:41
Wayne Stewart_17-Feb-16 3:41 
Questionhow to implement unit measrements using asp.net webservices Pin
Member 1231070411-Feb-16 23:41
Member 1231070411-Feb-16 23:41 
AnswerRe: how to implement unit measrements using asp.net webservices Pin
Nathan Minier12-Feb-16 1:49
professionalNathan Minier12-Feb-16 1:49 
AnswerRe: how to implement unit measrements using asp.net webservices Pin
aarif moh shaikh15-Feb-16 19:59
professionalaarif moh shaikh15-Feb-16 19:59 
QuestionAccess the Public Property of User Control in the ASP.Net web farms page Pin
indian14310-Feb-16 14:01
indian14310-Feb-16 14:01 
Hi,

I have a user control as below
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HealthTopicTreeUC.ascx.cs" Inherits="ResearchStudiesAdmin.Website.Controls.Framework.HealthTopicTreeUC" %>

<asp:Panel ID="pnlRadTreeHealthTopic" runat="server" EnableViewState="true">
    <div class="formInputs">
        <div style="width:90%">
        </div>
        <div class="clearfix"></div>    
        <telerik:RadTreeList 
            ID="rtlManageHealthTopics" 
            runat="server"
            Height="400px" 
            Width="500px"
            Skin="Silk"
            CssClass="ControlOverrideText"                                                                                          
            OnNeedDataSource="rtlManageHealthTopics_NeedDataSource"
            ParentDataKeyNames="ParentHealthTopicId" 
            DataKeyNames="HealthTopicId"
            DataTextField="Name"
            ClientSettings-Scrolling-AllowScroll="true" 
            AllowPaging="false" 
            PageSize="30"
            AllowSorting="false"
            EditMode="PopUp"
            GridLines="Both"
            AutoGenerateColumns="false" 
            AllowMultiColumnSorting="false" 
            OnSelectedIndexChanged="rtlManageHealthTopics_SelectedIndexChanged"
            ClientSettings-AllowPostBackOnItemClick="true">
            <EditFormSettings EditFormType="AutoGenerated" />
            <ClientSettings Selecting-AllowItemSelection="true" />
            <Columns>
                <telerik:TreeListBoundColumn DataField="Name" UniqueName="Name" HeaderText="<%$Resources:HealthTopics,LabelHealthTopicTreeHealthTopic %>" HeaderStyle-Font-Bold="true" HeaderStyle-Font-Size="Small" />
                <telerik:TreeListBoundColumn DataField="HealthTopicLevel" UniqueName="HealthTopicLevel" Visible="false" />
            </Columns>   
        </telerik:RadTreeList>
    </div>
    <div class="clearfix"></div>
</asp:Panel>
Then I have a variable: public TaxanomySelectedItem _healthTopicSelectedItem;

Now when I try to access this in the web page as below
if (HealthTopicTreeUC1._healthTopicSelectedItem != null)
   {
      var _selectedHealthTopicId = HealthTopicTreeUC1._healthTopicSelectedItem.TaxanomyChildIdSelected;
   }

The HealthTopicTreeUC1._healthTopicSelectedItem becomes null, when it is not null in the user control but in the asp.net page it is showing as null.

How can I access the variable or property that's in the user control in the aspx code behind?

Any help like a link, code snippet or even a suggestion would be very very helpful.

Thanks in advance.
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
Richard Deeming11-Feb-16 0:45
mveRichard Deeming11-Feb-16 0:45 
GeneralRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
indian14312-Feb-16 13:01
indian14312-Feb-16 13:01 
GeneralRe: Access the Public Property of User Control in the ASP.Net web farms page Pin
Richard Deeming15-Feb-16 1:49
mveRichard Deeming15-Feb-16 1:49 
QuestionChange attributes value of web form user control in div by using jquery Pin
koklimabc10-Feb-16 6:47
koklimabc10-Feb-16 6:47 
AnswerRe: Change attributes value of web form user control in div by using jquery Pin
ZurdoDev10-Feb-16 9:44
professionalZurdoDev10-Feb-16 9:44 
QuestionError "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
indian1438-Feb-16 20:38
indian1438-Feb-16 20:38 
AnswerRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
Richard MacCutchan8-Feb-16 21:51
mveRichard MacCutchan8-Feb-16 21:51 
AnswerRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
Afzaal Ahmad Zeeshan9-Feb-16 9:10
professionalAfzaal Ahmad Zeeshan9-Feb-16 9:10 
GeneralRe: Error "Access to the path 'D:\Projects\SXXXXX\Source\SH.XXXXXXX.WebUI\App_GlobalResources\Glossary.resx' is denied." Pin
indian14310-Feb-16 13:54
indian14310-Feb-16 13:54 
QuestionHow do I apply these restrictions? Pin
samflex8-Feb-16 6:12
samflex8-Feb-16 6:12 
AnswerRe: How do I apply these restrictions? Pin
F-ES Sitecore8-Feb-16 23:50
professionalF-ES Sitecore8-Feb-16 23:50 
GeneralRe: How do I apply these restrictions? Pin
Richard MacCutchan9-Feb-16 5:29
mveRichard MacCutchan9-Feb-16 5:29 
GeneralRe: How do I apply these restrictions? Pin
F-ES Sitecore9-Feb-16 5:32
professionalF-ES Sitecore9-Feb-16 5:32 
GeneralRe: How do I apply these restrictions? Pin
Richard MacCutchan9-Feb-16 6:04
mveRichard MacCutchan9-Feb-16 6:04 
QuestionMVC Razor, routevalues Pin
jkirkerx4-Feb-16 12:11
professionaljkirkerx4-Feb-16 12:11 
AnswerRe: MVC Razor, routevalues [solved] Pin
jkirkerx4-Feb-16 12:22
professionaljkirkerx4-Feb-16 12:22 
SuggestionRe: MVC Razor, routevalues [solved] Pin
Richard Deeming5-Feb-16 4:37
mveRichard Deeming5-Feb-16 4:37 

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.