Click here to Skip to main content
15,509,706 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionThe best overloaded method match for 'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' has some invalid arguments Pin
amistry_petlad12-Jan-09 12:54
amistry_petlad12-Jan-09 12:54 
AnswerRe: The best overloaded method match for 'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' has some invalid arguments Pin
pmarfleet12-Jan-09 13:01
pmarfleet12-Jan-09 13:01 
QuestionASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 9:52
SmartSpider12-Jan-09 9:52 
AnswerRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 10:18
pmarfleet12-Jan-09 10:18 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 10:33
SmartSpider12-Jan-09 10:33 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 10:45
pmarfleet12-Jan-09 10:45 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 11:25
SmartSpider12-Jan-09 11:25 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 12:35
pmarfleet12-Jan-09 12:35 
Bind your parent ListView control that is displaying the categories to a SELECT query that fetches these categories.

Handle the ItemDataBound[^] event for your parent ListView control. This will fire each time data for an individual category is bound to the list control.

The following code demonstrates how to handle this event and use LINQ to get all orders for the child list control associated with a customer from the parent list control. It uses data from the Northwind database. The parent list control is bound to a SqlDataSource control.

protected void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e)
    {
        string customerID = ((System.Data.DataRowView)((ListViewDataItem)e.Item).DataItem)["CustomerID"].ToString();
        ListView listView2 = e.Item.FindControl("ListView2") as ListView;

        using (NorthwindModel.NorthwindEntities context = new NorthwindModel.NorthwindEntities())
        {
            var orders = (from o in context.Orders
                          where o.Customers.CustomerID == customerID
                          select o).ToList();

            listView2.DataSource = orders;
            listView2.DataBind();
        }
    }


Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 18:41
SmartSpider12-Jan-09 18:41 
QuestionRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider20-Jan-09 10:13
SmartSpider20-Jan-09 10:13 
AnswerRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet20-Jan-09 12:09
pmarfleet20-Jan-09 12:09 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider20-Jan-09 12:44
SmartSpider20-Jan-09 12:44 
QuestionFormsAuthentication Failing in IE6 Pin
Robymon12-Jan-09 7:44
Robymon12-Jan-09 7:44 
Questionsession Expire Pin
mohit_p2212-Jan-09 6:49
mohit_p2212-Jan-09 6:49 
AnswerRe: session Expire Pin
Not Active12-Jan-09 6:53
mentorNot Active12-Jan-09 6:53 
AnswerRe: session Expire Pin
Colin Angus Mackay12-Jan-09 12:20
Colin Angus Mackay12-Jan-09 12:20 
QuestionError while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Jadhav Ajay12-Jan-09 6:02
professionalJadhav Ajay12-Jan-09 6:02 
AnswerRe: Error while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Paddy Boyd12-Jan-09 6:26
Paddy Boyd12-Jan-09 6:26 
GeneralRe: Error while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Jadhav Ajay12-Jan-09 6:32
professionalJadhav Ajay12-Jan-09 6:32 
QuestionApp showing inbox for wrong user Pin
marky77712-Jan-09 4:39
marky77712-Jan-09 4:39 
AnswerRe: App showing inbox for wrong user Pin
Abhijit Jana12-Jan-09 4:56
professionalAbhijit Jana12-Jan-09 4:56 
GeneralRe: App showing inbox for wrong user Pin
marky77712-Jan-09 5:03
marky77712-Jan-09 5:03 
AnswerRe: App showing inbox for wrong user Pin
Paddy Boyd12-Jan-09 6:27
Paddy Boyd12-Jan-09 6:27 
QuestionAsp.net with vb.net using wizard control Pin
naseer_8412-Jan-09 2:48
naseer_8412-Jan-09 2:48 
Questionhow to handle validation control manually? Pin
mr_muskurahat12-Jan-09 2:30
mr_muskurahat12-Jan-09 2:30 

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.