Click here to Skip to main content
15,888,984 members

Comments by Anusha Sridhar (Top 16 by date)

Anusha Sridhar 22-Apr-13 5:51am View    
sorry for the late reply.. yes. its working fine with the sp/..
Anusha Sridhar 22-Apr-13 3:44am View    
As a newbie to .net , I have no idea on how to give that if not exists condition in c#.. so am hanging in the middle struggling what to do.
Anusha Sridhar 1-Feb-13 1:51am View    
i am using a custom grid and i am performing this functionality in code behind. So its not working here.
Anusha Sridhar 17-Oct-12 0:05am View    
Hi. Thaks much for ur answer. I will try the same. :)
Anusha Sridhar 16-Oct-12 5:09am View    
yeah. I have the code behind whic is shown below :

protected void PopulateNode(TreeNode node1) {

decimal order = Convert.ToDecimal(node1.Value);

drText = dsSOW.Tables["Tableofcontents" + "$"].Select("Mappingcode='" + order + "'");

if (drText.Length > 0) {

foreach (DataRow drItem in drText) {

string ss = drItem.ItemArray[1].ToString();

string ss1 = drItem.ItemArray[0].ToString();

//decimal order1 = Convert.ToDecimal(ss1.ToString());

TreeNode node = new TreeNode(ss, ss1);

DataRow[] drText1 = dsSOW.Tables["Content" + "$"].Select("contentcode='" + ss1 + "'");

if (drText1.Length > 0) {

foreach (DataRow drItem1 in drText1)

{

node.ToolTip = node.ToolTip + drItem1.ItemArray[1].ToString();

} }

//DataRow[] drText1 = dsSOW.Tables["Content" + "$"].Select("Mappingcode='" + order1 + "'");

// if (drText1.Length > 0) // {

// foreach (DataRow drItem1 in drText1)

// {

// node.ToolTip = node.ToolTip+ drItem1.ItemArray[1].ToString();

// } // }

node1.ChildNodes.Add(node);

snode = node.Value;

if (snode != string.Empty) {

drText = dsSOW.Tables["Tableofcontents$"].Select("Mappingcode='" + snode + "'");

if (drText.Length > 0) {

PopulateNode(node); }

} } }

TVContent.Attributes.Add("OnClick", "OnTreeClick(event)");

//TVContent.Attributes.Add("onmouseover", "showToolTip(event)");

}