Click here to Skip to main content
15,910,886 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionNetTiers is creating Delete methods twice need some help Pin
indian14317-Feb-16 14:35
indian14317-Feb-16 14:35 
QuestionASP.Net VB: Dynamic refresh of webpage after completion of asynchronous task Pin
ajaysh7317-Feb-16 14:20
ajaysh7317-Feb-16 14:20 
Questioncascading with javascript Pin
Luis Oliveira 196617-Feb-16 5:40
Luis Oliveira 196617-Feb-16 5:40 
QuestionGridView behaving Strangely in an asp.net web page. Pin
Member 1221350616-Feb-16 7:08
Member 1221350616-Feb-16 7:08 
AnswerRe: GridView behaving Strangely in an asp.net web page. Pin
Richard Deeming16-Feb-16 7:27
mveRichard Deeming16-Feb-16 7:27 
GeneralRe: GridView behaving Strangely in an asp.net web page. Pin
Member 1221350616-Feb-16 7:33
Member 1221350616-Feb-16 7:33 
QuestionHow to create a language translator in asp.net using c#? Pin
Raja Ganapathy16-Feb-16 2:15
Raja Ganapathy16-Feb-16 2:15 
AnswerRe: How to create a language translator in asp.net using c#? Pin
Richard MacCutchan16-Feb-16 3:15
mveRichard MacCutchan16-Feb-16 3:15 
Questionhave a problem in custom control with javascript Pin
Member 1207470715-Feb-16 18:57
Member 1207470715-Feb-16 18:57 
SuggestionRe: have a problem in custom control with javascript Pin
Kornfeld Eliyahu Peter15-Feb-16 20:06
professionalKornfeld Eliyahu Peter15-Feb-16 20:06 
QuestionTelerik TreeList Child Level Items are not retrievable by using FindItemByKeyValue method Pin
indian14312-Feb-16 16:53
indian14312-Feb-16 16:53 
Questionproper use of System.Web.HttpContext.Current.User Pin
jkirkerx12-Feb-16 12:56
professionaljkirkerx12-Feb-16 12:56 
AnswerRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
jkirkerx13-Feb-16 13:53
professionaljkirkerx13-Feb-16 13:53 
SuggestionRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
Richard Deeming15-Feb-16 2:26
mveRichard Deeming15-Feb-16 2:26 
GeneralRe: proper use of System.Web.HttpContext.Current.User [Not Solved but I get it now] Pin
jkirkerx15-Feb-16 7:15
professionaljkirkerx15-Feb-16 7:15 
QuestionASP .NET Custom Validation client side code not Working Pin
Member 1218422112-Feb-16 9:24
Member 1218422112-Feb-16 9:24 
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 

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.