Click here to Skip to main content
15,913,090 members
Home / Discussions / C#
   

C#

 
AnswerRe: Send data to USB ? Pin
Giorgi Dalakishvili26-Mar-09 7:31
mentorGiorgi Dalakishvili26-Mar-09 7:31 
AnswerRe: Send data to USB ? Pin
Luc Pattyn26-Mar-09 7:31
sitebuilderLuc Pattyn26-Mar-09 7:31 
GeneralRe: Send data to USB ? Pin
Mohammad Dayyan26-Mar-09 7:56
Mohammad Dayyan26-Mar-09 7:56 
GeneralRe: Send data to USB ? Pin
Luc Pattyn26-Mar-09 8:04
sitebuilderLuc Pattyn26-Mar-09 8:04 
AnswerRe: Send data to USB ? Pin
Yusuf26-Mar-09 7:46
Yusuf26-Mar-09 7:46 
QuestionLINQ results flatten Pin
ywang55526-Mar-09 6:57
ywang55526-Mar-09 6:57 
AnswerRe: LINQ results flatten Pin
Henry Minute26-Mar-09 10:42
Henry Minute26-Mar-09 10:42 
QuestionPossible to run postback-code before Page_load-code? Pin
sa}{en26-Mar-09 6:10
sa}{en26-Mar-09 6:10 
Hi. I'm running an ASP.NET C# web application. I have a website including some textboxes with a button for editing of some data in my db, and also a datalist for displaying the same data from the db. My trouble is to update both AJAX UpdatePanels with the updated data. The UpdatePanel with the datalist always seem to stay one step behind.

There is a lot of code to copy/paste, but shortly its build up something like this:


website
UpdatePanel1
textboxes and button1 for updating data
/UpdatePanel1
UserControl
UpdatePanel2
datalist to display data from db
/UpdatePanel2
/UserControl
/website


When clicking button1 gode is run as follows:
1. website Page_Load
2. UserControl Page_Load
3. website Button1_click

This means that my UserControl reads from the db before the changes are done in the Button1_Click. Both UpdatePanels are updated. UpdatePanel1 with the new data changed with Button1_click, while UpdatePanel2 still shows the old db data. With saveing changes several times with button1, UpdatePanel2 gets updated with the new data, but it always stays one stem behind.

Now what I've figured needs to be done, is to run the code of Button1_Click before UserControl Page_Load. Something like this:
1. website Page_Load
2. website Button1_click
3. UserControl Page_Load

Is there a way? I can't make it, and I'm soon going crazy. Frown | :(

Any suggestions would be appreciated. Thank...
AnswerRe: Possible to run postback-code before Page_load-code? Pin
Henry Minute26-Mar-09 6:34
Henry Minute26-Mar-09 6:34 
AnswerRe: Possible to run postback-code before Page_load-code? Pin
EliottA26-Mar-09 6:35
EliottA26-Mar-09 6:35 
GeneralRe: Possible to run postback-code before Page_load-code? Pin
sa}{en26-Mar-09 9:12
sa}{en26-Mar-09 9:12 
Question[Message Deleted] Pin
spiritboy26-Mar-09 5:47
spiritboy26-Mar-09 5:47 
AnswerRe: limit internet bandwidth usage Pin
Le centriste26-Mar-09 6:08
Le centriste26-Mar-09 6:08 
GeneralRe: limit internet bandwidth usage Pin
EliottA26-Mar-09 6:38
EliottA26-Mar-09 6:38 
GeneralRe: limit internet bandwidth usage Pin
musefan26-Mar-09 7:05
musefan26-Mar-09 7:05 
JokeRe: limit internet bandwidth usage Pin
musefan26-Mar-09 7:10
musefan26-Mar-09 7:10 
Generalgreat dialogue Pin
Luc Pattyn26-Mar-09 7:34
sitebuilderLuc Pattyn26-Mar-09 7:34 
JokeRe: great dialogue Pin
musefan26-Mar-09 7:51
musefan26-Mar-09 7:51 
GeneralRe: limit internet bandwidth usage Pin
EliottA26-Mar-09 7:14
EliottA26-Mar-09 7:14 
JokeRe: limit internet bandwidth usage Pin
musefan26-Mar-09 7:48
musefan26-Mar-09 7:48 
AnswerRe: limit internet bandwidth usage Pin
Henry Minute26-Mar-09 6:09
Henry Minute26-Mar-09 6:09 
AnswerRe: limit internet bandwidth usage Pin
Dan Neely26-Mar-09 7:05
Dan Neely26-Mar-09 7:05 
AnswerRe: limit internet bandwidth usage Pin
spiritboy26-Mar-09 8:53
spiritboy26-Mar-09 8:53 
QuestionRegistry Issues Pin
Lewis0126-Mar-09 5:31
Lewis0126-Mar-09 5:31 
AnswerRe: Registry Issues Pin
Mirko198026-Mar-09 5:40
Mirko198026-Mar-09 5:40 

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.