Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
Hi, I am able to select any item in the List and save it Properly, but when I load the page again, what I want is User should be able to see previously selected item as selected rather than selected nothing. For that, it is happening when I select the parent level item but not happening if the selected item is Child.

I am using the below code to retrieve the selected item, as TaxanomyChildIdSelected value would be coming from database and depending upon that value I want to show the user which item has has selected Previously. I am using below code to do that. But FindItemByKeyValue function returns null when I am trying to retrieve the Child level item. Any help a code snippet, link or even suggestion would be very very helpful. Thanks in advance.
TreeListDataItem item = rtlManageHealthTopics.FindItemByKeyValue("HealthTopicId", TaxanomyChildIdSelected.ToString());
if ((item != null) && !DBNull.Value.Equals(item))
item.Selected = true;

​Below is the full code

WebAdmTopicHealthTopicService _objWebAdmTopicHealthTopicService = new WebAdmTopicHealthTopicService();
var _listOfWebAdmTopicHealthTopic = _objWebAdmTopicHealthTopicService.Find(" TopicId= " + _topic.TopicId.ToString());
if((_listOfWebAdmTopicHealthTopic!=null) && !DBNull.Value.Equals(_listOfWebAdmTopicHealthTopic) && (_listOfWebAdmTopicHealthTopic.Count>=1))
{
     WebAdmHealthTopicViewService _objWebAdmHealthTopicViewService = new WebAdmHealthTopicViewService();
     var _listOf_objWebAdmHealthTopicView = _objWebAdmHealthTopicViewService.Get(" HealthTopicId = " + _listOfWebAdmTopicHealthTopic[0].HealthTopicId.ToString() , " Name ");

    if ((_listOf_objWebAdmHealthTopicView != null) && !DBNull.Value.Equals(_listOf_objWebAdmHealthTopicView) && (_listOf_objWebAdmHealthTopicView.Count() >= 1)
        && (_listOf_objWebAdmHealthTopicView != null) && (_listOf_objWebAdmHealthTopicView[0].HealthTopicId > 0))
    {
        var _objOf_objWebAdmHealthTopicView = _listOf_objWebAdmHealthTopicView[0];
        TaxanomyChildIdSelected = _listOfWebAdmTopicHealthTopic[0].HealthTopicId;

        TreeListDataItem item = rtlManageHealthTopics.FindItemByKeyValue("HealthTopicId", TaxanomyChildIdSelected.ToString());
        if ((item != null) && !DBNull.Value.Equals(item))
            item.Selected = true;
    }
}
Thanks,

Abdul Aleem

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

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 
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 

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.