Click here to Skip to main content
15,867,453 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 11:54
amistry_petlad12-Jan-09 11:54 
AnswerRe: The best overloaded method match for 'System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(string, string)' has some invalid arguments Pin
pmarfleet12-Jan-09 12:01
pmarfleet12-Jan-09 12:01 
QuestionASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 8:52
SmartSpider12-Jan-09 8:52 
AnswerRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 9:18
pmarfleet12-Jan-09 9:18 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 9:33
SmartSpider12-Jan-09 9:33 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 9:45
pmarfleet12-Jan-09 9:45 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider12-Jan-09 10:25
SmartSpider12-Jan-09 10:25 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet12-Jan-09 11:35
pmarfleet12-Jan-09 11: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 17:41
SmartSpider12-Jan-09 17:41 
QuestionRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider20-Jan-09 9:13
SmartSpider20-Jan-09 9:13 
AnswerRe: ASP.NET - Create a questionnaire/test on the fly. Pin
pmarfleet20-Jan-09 11:09
pmarfleet20-Jan-09 11:09 
GeneralRe: ASP.NET - Create a questionnaire/test on the fly. Pin
SmartSpider20-Jan-09 11:44
SmartSpider20-Jan-09 11:44 
QuestionFormsAuthentication Failing in IE6 Pin
Robymon12-Jan-09 6:44
Robymon12-Jan-09 6:44 
Questionsession Expire Pin
mohit_p2212-Jan-09 5:49
mohit_p2212-Jan-09 5:49 
AnswerRe: session Expire Pin
Not Active12-Jan-09 5:53
mentorNot Active12-Jan-09 5:53 
AnswerRe: session Expire Pin
Colin Angus Mackay12-Jan-09 11:20
Colin Angus Mackay12-Jan-09 11:20 
QuestionError while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Jadhav Ajay12-Jan-09 5:02
professionalJadhav Ajay12-Jan-09 5:02 
AnswerRe: Error while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Paddy Boyd12-Jan-09 5:26
Paddy Boyd12-Jan-09 5:26 
GeneralRe: Error while exporting PPT 2007 on Windows 2008 using ASP.NET Pin
Jadhav Ajay12-Jan-09 5:32
professionalJadhav Ajay12-Jan-09 5:32 
QuestionApp showing inbox for wrong user Pin
marky77712-Jan-09 3:39
marky77712-Jan-09 3:39 
AnswerRe: App showing inbox for wrong user Pin
Abhijit Jana12-Jan-09 3:56
professionalAbhijit Jana12-Jan-09 3:56 
GeneralRe: App showing inbox for wrong user Pin
marky77712-Jan-09 4:03
marky77712-Jan-09 4:03 
AnswerRe: App showing inbox for wrong user Pin
Paddy Boyd12-Jan-09 5:27
Paddy Boyd12-Jan-09 5:27 
QuestionAsp.net with vb.net using wizard control Pin
naseer_8412-Jan-09 1:48
naseer_8412-Jan-09 1:48 
Questionhow to handle validation control manually? Pin
mr_muskurahat12-Jan-09 1:30
mr_muskurahat12-Jan-09 1: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.