Click here to Skip to main content
15,885,546 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Datagrid Update Command Pin
Sathesh Sakthivel15-May-07 17:51
Sathesh Sakthivel15-May-07 17:51 
QuestionHow to read the servicemodel client section from the web.config file? Pin
moazzamahmed15-May-07 11:44
moazzamahmed15-May-07 11:44 
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 
Probably a simple question.

I have a form with a search button. The click event of the button calls a method for preforming a search. The search method returns a collection of business objects which I bind to a DataList.

The binding only appears to work properly when done in the OnInit event. That's fine.

The issue is in the order of the events. When the user clicks the search button the buttons click event isn't fired until after the init event.

<br />
    protected void btnSearch_Click(object sender, EventArgs e)<br />
    {<br />
        List<Customers> customersList = Search();<br />
                     <br />
        // now what? It's not bound because the OnInit (where the binding code is) has already fired<br />
    }<br />


I need to trigger a second post back to get the OnInit to fire again. Or do I? Confused | :confused:

-Mike.
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 
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 

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.