Results 1 to 4 of 4
  1. #1
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah

    Need Help WEBPART: FaceBook SQL-Database -> LinkButton Array (C#) <EVENTHANDLERS>

    K i have coded quite allot for now here is my basic coding:

    ( for those who dont know what Medewerkers means: "Employees" )
    [php]

    public int counterBezoekerArray = 0;
    public int i_1 = 0;
    public int i_2 = 0;
    public int i_3_CountPage = 0;

    facebookDirectoryDataContext FBAccs = new facebookDirectoryDataContext();

    protected override void CreateChildControls()
    {
    }

    public override void RenderControl(HtmlTextWriter writer)
    {

    Table<Badge> ACC = FBAccs.Badges;

    Badge b = new Badge();

    /*String[] Member = (from accounts in ACC orderby accounts.Bezoeker select accounts).ToString[(b.Bezoeker.Length)]();
    foreach (int i in (Member.To))
    {
    }*/
    foreach (char text in b.Bezoeker)
    {
    counterBezoekerArray++;
    }

    //FOR EACH!!!!!!
    List<Badge> Member = (from accounts in ACC orderby accounts.Bezoeker select accounts).ToList();
    /*foreach (int i in (Member.To))
    {
    }*/
    //int lwgt =Member.Count;
    //string[] blah = Member.ToString[Member];

    LinkButton[] Medewerkers = new LinkButton[counterBezoekerArray];


    char Medewerkers2 = Convert.ToChar("Medewerkers2_" + i_1 + "_Click");



    if (counterBezoekerArray > 0)
    {
    Medewerkers[i_1] = new LinkButton();
    Medewerkers[i_1].Text = Member[i_2].Bezoeker;
    char Medewerkers2_ = Convert.ToChar("Medewerkers2_");
    char _Click = Convert.ToChar("_Click");
    Medewerkers[i_1].Click += new EventHandler((Medewerkers2_ + i_1 + _Click));

    Controls.Add(Medewerkers[i_1]);

    counterBezoekerArray--;
    i_1++;
    i_2++;
    i_3_CountPage++;
    }
    }
    [/php]

    the thing that doesnt want to co-operate is this line:
    Code:
    Medewerkers[i_1].Click += new EventHandler((Medewerkers2_ + i_1 + _Click));
    i need an EventHandler Value to change because i can change it back to:
    Medewerkers[i_1].Click += new EventHandler(Medewerkers_Click);

    but every new button will overwrite it... so it aint possible to acces it.
    i tried EventHandler Medewerkers2 = ... mothods with string/char/ new EventHandler.
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    http://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    http://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

  2. #2
    H3ARTbreaker's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    (̅_̅(̅_̅_̅_̅_̅_̅̅_̅()ڪے
    Posts
    2,402
    Reputation
    57
    Thanks
    155
    Good job i have no idea how to code, willing to teach?


  3. #3
    Threadstarter
    I'm the fallen angel from heaven.
    MPGH Member
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    Quote Originally Posted by _InstincT View Post
    Good job i have no idea how to code, willing to teach?
    only C# tut i have now is an tut for basic form apps and such @ the C# section.

    and i needed help :3 the code works fornow i think 0 error's i can build it though my webpart doesnt really get attached to the xml page Web.config

    when im done in 3 months (1month has past) ill create some webpart developers tutorials. ;D
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    http://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    http://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

  4. #4
    Threadstarter
    I'm the fallen angel from heaven.
    MPGH Member
    Kuro Tenshi's Avatar
    Join Date
    Jan 2009
    Gender
    male
    Location
    Playing Eroges/DigiArt sculpting (No ... At internship)
    Posts
    3,635
    Reputation
    70
    Thanks
    746
    My Mood
    Blah
    /double post Solved though the another mistory occured when i solved it (child controls where empty)...over @ C# section...
    DigiDrawing|+ ( (Elfen Archer) )
    Link:
    http://www.mpgh.net/forum/148-showro...en-archer.html


    @ Anime Section,Otaku/weeabo (orz.) @Graphics Section, Novice DigiArtist


    neuest gift from Yura~Chan:
    http://bakyurayuu.deviantart.com/#/d372taw
    2nd Place MOTM#9 Theme: CharMods - Combat Arms [No - Thanks] button
    come on you know that don't want to push that ordinary button

Similar Threads

  1. hi need help hacking facebook page
    By buckfastgaz in forum General
    Replies: 12
    Last Post: 05-31-2011, 09:13 PM
  2. [Help Request] Need Help
    By shane11 in forum CrossFire Help
    Replies: 49
    Last Post: 05-03-2011, 05:29 AM
  3. [Help Request] Need help finding a Vindictus injector
    By VpChris in forum Vindictus Help
    Replies: 2
    Last Post: 05-01-2011, 11:51 PM
  4. [Help Request] I need help~~!!!!
    By c834606877 in forum Alliance of Valiant Arms (AVA) Help
    Replies: 1
    Last Post: 05-01-2011, 02:12 AM
  5. [Help Request] need help with modding
    By BayBee Alyn in forum Combat Arms Help
    Replies: 0
    Last Post: 04-27-2011, 10:06 PM