Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: quick easy question regarding url vairables Pin
Sherin Iranimose7-Jul-08 4:30
Sherin Iranimose7-Jul-08 4:30 
AnswerRe: quick easy question regarding url vairables Pin
eyeseetee7-Jul-08 4:52
eyeseetee7-Jul-08 4:52 
Questionconvert vb to javascript Pin
farabba7-Jul-08 4:05
farabba7-Jul-08 4:05 
AnswerRe: convert vb to javascript Pin
Christian Graus7-Jul-08 4:08
protectorChristian Graus7-Jul-08 4:08 
GeneralRe: convert vb to javascript Pin
farabba7-Jul-08 4:15
farabba7-Jul-08 4:15 
GeneralRe: convert vb to javascript Pin
Christian Graus7-Jul-08 4:56
protectorChristian Graus7-Jul-08 4:56 
QuestionC# create Ajax Accordion and panes? Pin
countnazgul7-Jul-08 4:00
countnazgul7-Jul-08 4:00 
AnswerRe: C# create Ajax Accordion and panes? Pin
countnazgul8-Jul-08 22:50
countnazgul8-Jul-08 22:50 
I finally get it Smile | :) and it was so simple ... as usual Big Grin | :-D
OK. I've got accordion control added in designer and two datatables with two columns (one for title and one for link). The idea is in accordion to have two panes (for each datatable) and in content to have "title" column whith link. So here is the code that work for me:
        // create first pane
        AccordionPane ap1 = new AccordionPane();

        //Add header container and define label on it
        ap1.HeaderContainer.Controls.Add(new LiteralControl("UnRead Items"));

        // define css for header (if you have)
        ap1.HeaderCssClass = "header1";

        // create and fill content
        for (int a = 0; a < myDataTable.Rows.Count; a++)
        {
        // for each row in first datatable add in content firs column text(title) and second  
        //column value is hyper link
            ap1.ContentContainer.Controls.Add(new LiteralControl("<a href=" + myDataTable.Rows[a] [1].ToString() + ">" + myDataTable.Rows[a][0].ToString() + "</a>" + "<br>"));

       // define css for container (if you have)        
            ap1.ContentContainer.CssClass = "container";

       // add pane to accordion
            acc1.Panes.Add(ap1);
        }

// the same situation is and for second pane
        AccordionPane ap2 = new AccordionPane();
        ap2.HeaderContainer.Controls.Add(new LiteralControl("Archived Items"));
        ap2.HeaderCssClass = "header1";

        for (int z = 0; z < myDataTable1.Rows.Count; z++)
        {
            ap2.ContentContainer.Controls.Add(new LiteralControl("<a href=" + myDataTable1.Rows[z][1].ToString() + ">" + myDataTable1.Rows[z][0].ToString() + "</a>" + "<br>"));
            ap2.ContentContainer.CssClass = "container";
            acc1.Panes.Add(ap2);
        }
</br></br>



So the result looks like this (depending on css):
http://img78.imageshack.us/img78/7405/caccordionfy6.jpg

Have a nice day!

King Regards!
countNazgul

Questionsession Pin
rajeev22337-Jul-08 3:20
rajeev22337-Jul-08 3:20 
AnswerRe: session Pin
Christian Graus7-Jul-08 3:35
protectorChristian Graus7-Jul-08 3:35 
GeneralRe: session Pin
tina->newcoder7-Jul-08 8:03
tina->newcoder7-Jul-08 8:03 
GeneralRe: session Pin
Christian Graus7-Jul-08 8:16
protectorChristian Graus7-Jul-08 8:16 
QuestionCheckBox is not available in the User Control Pin
dwadasi7-Jul-08 2:39
dwadasi7-Jul-08 2:39 
AnswerRe: CheckBox is not available in the User Control Pin
Sherin Iranimose7-Jul-08 2:54
Sherin Iranimose7-Jul-08 2:54 
QuestionGet the Website Physical Path Pin
Brendan Vogt7-Jul-08 2:17
Brendan Vogt7-Jul-08 2:17 
AnswerRe: Get the Website Physical Path Pin
sumit70347-Jul-08 2:26
sumit70347-Jul-08 2:26 
AnswerRe: Get the Website Physical Path Pin
N a v a n e e t h7-Jul-08 2:27
N a v a n e e t h7-Jul-08 2:27 
AnswerRe: Get the Website Physical Path Pin
Guffa7-Jul-08 2:36
Guffa7-Jul-08 2:36 
Questionhow to work with .net and Flex. Pin
Piyush Vardhan Singh7-Jul-08 2:09
Piyush Vardhan Singh7-Jul-08 2:09 
AnswerRe: how to work with .net and Flex. Pin
Imran Khan Pathan7-Jul-08 2:15
Imran Khan Pathan7-Jul-08 2:15 
GeneralRe: how to work with .net and Flex. Pin
Piyush Vardhan Singh7-Jul-08 2:21
Piyush Vardhan Singh7-Jul-08 2:21 
QuestionHow to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 1:32
professionalAbhijit Jana7-Jul-08 1:32 
AnswerRe: How to select a range of text using java script ? Pin
Sherin Iranimose7-Jul-08 2:18
Sherin Iranimose7-Jul-08 2:18 
QuestionRe: How to select a range of text using java script ? Pin
Abhijit Jana7-Jul-08 3:20
professionalAbhijit Jana7-Jul-08 3:20 
AnswerRe: How to select a range of text using java script ? [modified] Pin
Sherin Iranimose7-Jul-08 3:35
Sherin Iranimose7-Jul-08 3: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.