Click here to Skip to main content
15,896,453 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questioncreate subdomain programmatically??????? Pin
mr.mohsen2-Oct-07 22:39
mr.mohsen2-Oct-07 22:39 
AnswerRe: create subdomain programmatically??????? Pin
N a v a n e e t h2-Oct-07 23:09
N a v a n e e t h2-Oct-07 23:09 
QuestionNeed clarifications regarding ASP.Net AJAX Pin
jmavn2-Oct-07 22:33
jmavn2-Oct-07 22:33 
AnswerRe: Need clarifications regarding ASP.Net AJAX Pin
Urs Enzler2-Oct-07 23:12
Urs Enzler2-Oct-07 23:12 
AnswerRe: Need clarifications regarding ASP.Net AJAX Pin
N a v a n e e t h2-Oct-07 23:24
N a v a n e e t h2-Oct-07 23:24 
Questionshow categories in treeview control Pin
Farhad Eft2-Oct-07 22:30
Farhad Eft2-Oct-07 22:30 
AnswerRe: show categories in treeview control Pin
Parwej Ahamad2-Oct-07 22:50
professionalParwej Ahamad2-Oct-07 22:50 
AnswerRe: show categories in treeview control Pin
Jintal Patel3-Oct-07 0:30
Jintal Patel3-Oct-07 0:30 
hi
call LoadTree() in
if(!ispostBack)
{
LoadTree()
}

here i have conside parentCat ID of Parebts is '-1'


public void LoadTree()
{
trvCategories.Nodes.Clear();
string id = "";
dataset myDataSet;
myDataSet= GetCategoryByParentId(Convert.ToInt32("-1"));
for (int i = 0; i < myDataSet.Tables[0].Rows.Count; i++)
{
id = myDataSet.Tables[0].Rows[i]["Name"].ToString();
TreeNode myNode = new TreeNode();
myNode.Text = id;
myNode.Value = myDataSet.Tables[0].Rows[i]["CategoryID"].ToString();
// myNode.CollapseAll();
trvCategories.Nodes.Add(myNode);

childnode(Convert.ToInt32(myDataSet.Tables[0].Rows[i]["CategoryID"].ToString()), myNode);
}
}
public void childnode(int id, TreeNode tn)
{

DataSet myDataSet = GetChildCategoryByParentId(id);
for (int j = 0; j < myDataSet.Tables[0].Rows.Count; j++)
{
string rootid = myDataSet.Tables[0].Rows[j]["Name"].ToString();
TreeNode tnchild = new TreeNode();
tnchild.Text = Convert.ToString(rootid);
tnchild.Value = myDataSet.Tables[0].Rows[j]["CategoryID"].ToString();
tnchild.CollapseAll();
tn.ChildNodes.Add(tnchild);
childnode(Convert.ToInt32(myDataSet.Tables[0].Rows[j]["CategoryID"].ToString()), tnchild);
}
}

Jintal Patel

QuestionHow to record the voice using asp.net Pin
Tarun Dudhatra2-Oct-07 22:30
Tarun Dudhatra2-Oct-07 22:30 
AnswerRe: How to record the voice using asp.net Pin
Christian Graus2-Oct-07 22:32
protectorChristian Graus2-Oct-07 22:32 
AnswerRe: How to record the voice using asp.net Pin
Farhad Eft2-Oct-07 23:44
Farhad Eft2-Oct-07 23:44 
Questionhow can I get a timer in aspx Pin
Big Ralph2-Oct-07 22:25
Big Ralph2-Oct-07 22:25 
AnswerRe: how can I get a timer in aspx Pin
Christian Graus2-Oct-07 22:33
protectorChristian Graus2-Oct-07 22:33 
GeneralRe: how can I get a timer in aspx Pin
Big Ralph2-Oct-07 22:42
Big Ralph2-Oct-07 22:42 
AnswerRe: how can I get a timer in aspx Pin
varshavmane2-Oct-07 23:15
varshavmane2-Oct-07 23:15 
QuestionHow can I show an image that sent from a webcam through internet Pin
821300122-Oct-07 22:09
821300122-Oct-07 22:09 
AnswerRe: How can I show an image that sent from a webcam through internet Pin
Christian Graus2-Oct-07 22:12
protectorChristian Graus2-Oct-07 22:12 
QuestionErasing content in TextBox Pin
bhattiprolu2-Oct-07 22:01
bhattiprolu2-Oct-07 22:01 
AnswerRe: Erasing content in TextBox Pin
Christian Graus2-Oct-07 22:11
protectorChristian Graus2-Oct-07 22:11 
Questionproblem in opening proj from virtual dir Pin
Virani2-Oct-07 21:50
Virani2-Oct-07 21:50 
AnswerRe: problem in opening proj from virtual dir Pin
Michael Sync2-Oct-07 21:59
Michael Sync2-Oct-07 21:59 
GeneralOK i got solution Pin
Virani2-Oct-07 22:01
Virani2-Oct-07 22:01 
QuestionProblem with Cute editor Pin
yadlaprasad2-Oct-07 21:48
yadlaprasad2-Oct-07 21:48 
AnswerRe: Problem with Cute editor Pin
Michael Sync2-Oct-07 22:01
Michael Sync2-Oct-07 22:01 
QuestionDisplay datagrig in excel File Pin
sanaja2-Oct-07 21:35
sanaja2-Oct-07 21:35 

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.