Postback question

    Date: 01/28/08 (Asp Dot Net)    Keywords: database

    How do I run a piece of code each time a page is displayed ?

    I thought I could just put it in the page_load and not use a page.ispostback and that would mean the code is called each time the page is displayed.

    However, I have a linkbutton that modifies a customer in the database. When the user clicks the linkbutton, the customer is modified and the page is redisplayed BUT I dont see the updated information for the customer.

    (I have another page that displays a grid that shows the latest data whenever it is called).

    Should I create a function to load the customer that the page_load and linkbutton both call ?

    Source: https://aspdotnet.livejournal.com/94877.html

« Using DataRelation in DataSet || It's the newest post


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home