Click here to Skip to main content
15,886,631 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionWeb services and SoapExceptions Pin
M.H.1.2.315-May-07 10:58
M.H.1.2.315-May-07 10:58 
AnswerRe: Web services and SoapExceptions Pin
Atif Ali Bhatti16-May-07 21:41
Atif Ali Bhatti16-May-07 21:41 
AnswerRe: Web services and SoapExceptions Pin
M.H.1.2.317-May-07 18:39
M.H.1.2.317-May-07 18:39 
QuestionDatakeynames & GridView Pin
aransiola15-May-07 10:05
aransiola15-May-07 10:05 
AnswerRe: Datakeynames & GridView Pin
dotnetcdr16-May-07 0:22
dotnetcdr16-May-07 0:22 
QuestionLifecycle question Pin
MBursill15-May-07 9:21
MBursill15-May-07 9:21 
AnswerRe: Lifecycle question Pin
Uwe Keim15-May-07 10:02
sitebuilderUwe Keim15-May-07 10:02 
GeneralRe: Lifecycle question Pin
MBursill15-May-07 10:26
MBursill15-May-07 10:26 
Reading the MSDN articles I was under the impression that dynamic content (in this case the template of my DataList has a custom control) needs to be created during the init event.

But, if you say you can do it through the Page_Load I believe ya. However, so far that has not worked.

This is what I have now tried:

protected void Page_Load(object sender, EventArgs e)
{
    if (!IsPostBack)
    {
        if (SearchResults != null)
        {
            SearchResultsList.DataSource = SearchResults;
        SearchResultsList.DataBind();
    }
    }
}

protected void btnSearch_Click(object sender, EventArgs e)
{
    SearchResults = Search();
}

private List<Customer> SearchResults
{
    get
    {
        return Session["SearchResults"] as List<Customer>;
    }

    set
    {
        Session["SearchResults"] = value;
    }
}


When I hit search, nothing shows up. It doesn't appear as though the bind is ever happening.

It's probably something obvious. Usually is the case. Poke tongue | ;-P

-Mike.
GeneralRe: Lifecycle question Pin
Uwe Keim15-May-07 17:56
sitebuilderUwe Keim15-May-07 17:56 
GeneralRe: Lifecycle question Pin
MBursill16-May-07 7:56
MBursill16-May-07 7:56 
QuestionTreeView needs client side code... Pin
just3ala215-May-07 8:45
just3ala215-May-07 8:45 
QuestionAbout Ajax Pin
Aaanand15-May-07 6:44
Aaanand15-May-07 6:44 
AnswerRe: About Ajax Pin
Not Active15-May-07 7:56
mentorNot Active15-May-07 7:56 
AnswerRe: About Ajax Pin
Christian Graus15-May-07 13:18
protectorChristian Graus15-May-07 13:18 
QuestionProblems with data Pin
TAK7815-May-07 5:40
TAK7815-May-07 5:40 
QuestionUK/GB Dates Pin
Aaron Hudson15-May-07 5:29
Aaron Hudson15-May-07 5:29 
AnswerRe: UK/GB Dates Pin
-Dr_X-15-May-07 5:35
-Dr_X-15-May-07 5:35 
GeneralRe: UK/GB Dates Pin
Guffa15-May-07 15:10
Guffa15-May-07 15:10 
AnswerRe: UK/GB Dates Pin
Christian Graus15-May-07 13:19
protectorChristian Graus15-May-07 13:19 
QuestionGridView Problem Pin
Bajrang Singh15-May-07 5:29
Bajrang Singh15-May-07 5:29 
QuestionRe: GridView Problem Pin
Venkatesh Mookkan15-May-07 18:22
Venkatesh Mookkan15-May-07 18:22 
AnswerRe: GridView Problem [modified] Pin
Bajrang Singh15-May-07 19:55
Bajrang Singh15-May-07 19:55 
GeneralRe: GridView Problem Pin
Venkatesh Mookkan15-May-07 22:13
Venkatesh Mookkan15-May-07 22:13 
GeneralRe: GridView Problem Pin
Bajrang Singh16-May-07 1:25
Bajrang Singh16-May-07 1:25 
QuestionGridView columns HeaderText from a function Pin
-Dr_X-15-May-07 5:27
-Dr_X-15-May-07 5:27 

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.