Click here to Skip to main content
15,889,992 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: logout problem Pin
Oakman11-Apr-09 3:17
Oakman11-Apr-09 3:17 
Rantuser-static ^^ Pin
Eytukan9-Apr-09 20:33
Eytukan9-Apr-09 20:33 
GeneralRe: user-static ^^ Pin
Colin Angus Mackay10-Apr-09 2:07
Colin Angus Mackay10-Apr-09 2:07 
Questionstatic public functions : asp.net c# Pin
VijayVishwakarma9-Apr-09 20:26
VijayVishwakarma9-Apr-09 20:26 
AnswerRe: static public functions : asp.net c# Pin
anilpal9-Apr-09 21:11
anilpal9-Apr-09 21:11 
GeneralRe: static public functions : asp.net c# Pin
VijayVishwakarma9-Apr-09 21:32
VijayVishwakarma9-Apr-09 21:32 
AnswerRe: static public functions : asp.net c# Pin
Eytukan9-Apr-09 21:35
Eytukan9-Apr-09 21:35 
GeneralRe: static public functions : asp.net c# Pin
VijayVishwakarma9-Apr-09 22:43
VijayVishwakarma9-Apr-09 22:43 
Thanks ViNic for your reply.......
Can u focus on the following code is this one is correct?

BinaryTree.cs file inside appcode

public class BinaryTree
{
public static ArrayList dlist = new ArrayList();

public static void FetchDownlineID(long uid)
{
BinaryTree bt = new BinaryTree();

bt = BinaryTree.fetchIdInfo(uid);//fetches user info

if (bt.Aid > 0)
{
dlist.Add(bt.Aid);
BinaryTree.FetchDownlineID(bt.Aid);
}
if (bt.Bid > 0)
{
dlist.Add(bt.Bid);
BinaryTree.FetchDownlineID(bt.Bid);
}
if (bt.Cid > 0)
{
dlist.Add(bt.Cid);
BinaryTree.FetchDownlineID(bt.Cid);
}
}
}

now this function is called on pageload as user's open page & result is bind to gridview...

as follows----------
public partial class User_DownlineLists : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
bindGridView();

}

protected void bindGridView()
{
if (Session["User"] != null)
{
long id = UserDetails.FetchUserId(Session["User"].ToString());
BinaryTree.dlist.Clear();
BinaryTree.FetchDownlineID(id);
Sort();//this function sort list datewise

GridView1.DataSource = BinaryTree.dlist;
GridView1.DataBind();
}
else
{
Response.Redirect("~/Home.aspx");
}
}
}

Vijay V.

Yash Softech

GeneralRe: static public functions : asp.net c# Pin
Eytukan9-Apr-09 23:01
Eytukan9-Apr-09 23:01 
GeneralRe: static public functions : asp.net c# Pin
VijayVishwakarma17-Apr-09 2:11
VijayVishwakarma17-Apr-09 2:11 
QuestionGridView_RowCreated event handler is not working on GridView_PageIndexChanging Pin
Member 29989699-Apr-09 19:35
Member 29989699-Apr-09 19:35 
AnswerRe: GridView_RowCreated event handler is not working on GridView_PageIndexChanging Pin
VijayVishwakarma9-Apr-09 20:31
VijayVishwakarma9-Apr-09 20:31 
GeneralRe: GridView_RowCreated event handler is not working on GridView_PageIndexChanging Pin
Member 29989699-Apr-09 22:06
Member 29989699-Apr-09 22:06 
QuestionHttpHandler (another Could not load type ) Pin
vexi9-Apr-09 17:59
vexi9-Apr-09 17:59 
AnswerRe: HttpHandler (another Could not load type ) Pin
anilpal9-Apr-09 21:32
anilpal9-Apr-09 21:32 
GeneralRe: HttpHandler (another Could not load type ) Pin
vexi9-Apr-09 22:23
vexi9-Apr-09 22:23 
NewsRe: HttpHandler (another Could not load type ) Pin
vexi9-Apr-09 22:45
vexi9-Apr-09 22:45 
Questionhow to do Online custom t-shirt designing using .net Pin
pink9-Apr-09 17:57
pink9-Apr-09 17:57 
AnswerRe: how to do Online custom t-shirt designing using .net Pin
Abhishek Sur9-Apr-09 22:46
professionalAbhishek Sur9-Apr-09 22:46 
GeneralRe: how to do Online custom t-shirt designing using .net Pin
pink10-Apr-09 21:16
pink10-Apr-09 21:16 
QuestionRegistration process for social netwoork [modified] Pin
Shahdat Hosain9-Apr-09 17:32
Shahdat Hosain9-Apr-09 17:32 
AnswerRe: Registration process for social netwoork Pin
Abhijit Jana9-Apr-09 19:20
professionalAbhijit Jana9-Apr-09 19:20 
AnswerRe: Registration process for social netwoork Pin
Abhijit Jana9-Apr-09 20:11
professionalAbhijit Jana9-Apr-09 20:11 
QuestionFTP and datatable VB.net Pin
jjordanc9-Apr-09 14:10
jjordanc9-Apr-09 14:10 
QuestionHow do I implement a DataType property of type System.Type on a User Control? Pin
Brady Kelly9-Apr-09 8:14
Brady Kelly9-Apr-09 8:14 

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.