Click here to Skip to main content
15,910,118 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Simple layout question..hopefully Pin
Guffa18-Oct-06 14:53
Guffa18-Oct-06 14:53 
GeneralRe: Simple layout question..hopefully Pin
Member 9619-Oct-06 4:42
Member 9619-Oct-06 4:42 
AnswerRe: Simple layout question..hopefully Pin
Ennis Ray Lynch, Jr.18-Oct-06 15:51
Ennis Ray Lynch, Jr.18-Oct-06 15:51 
GeneralRe: Simple layout question..hopefully Pin
Member 9619-Oct-06 4:42
Member 9619-Oct-06 4:42 
QuestionUser personalized data and webpart Pin
robert11018-Oct-06 7:22
robert11018-Oct-06 7:22 
AnswerRe: User personalized data and webpart Pin
minhpc_bk18-Oct-06 15:49
minhpc_bk18-Oct-06 15:49 
QuestionClient-Side Output caching Pin
5imone18-Oct-06 5:21
professional5imone18-Oct-06 5:21 
QuestionRefresh opening window problem Pin
Thomas Benz18-Oct-06 4:40
Thomas Benz18-Oct-06 4:40 
Hi,
I have the problem of refreshing opening window with server side handling. I have 3 windows; window 1 (file 'CourseSettingPopupFrame.aspx') on it has a javascript button to open a window 2 (file 'EvaluativeEditCommentsPopup.aspx'). Next, window 2 opens window 3 (file 'EvaluativeEditCommentOfManyCourses.aspx') by also using a javascript button. The 3 windows are opened in their own or separate windows. On window 3, I use a server-side asp.net button called "OK" to save data users enter on it after the button is clicked and the button's event handler looks like.

private void btnOK_Click(object sender, EventArgs e){

// do some stuffs
...

// Execute database to save entered data
...

// refresh window 1; close window 2 and window 3 using client-side javascript codes
Page.RegisterClientScriptBlock("msc",
" "
+ " var url = 'CourseSettingPopupFrame.aspx?SessionID=" + Request["SessionID"] + "&SYTermID=" + requestedSYTermID + "&SYCaption=" + SYCaption + "';"
+ " window.opener.opener.location.href = url; " // refresh window 1 with newly user-entered data from window 3
+ " window.opener.close();" // close window 2
+ " window.close(); " // close window 3
+ " </" + "script>");
}

*** The PROBLEM is, for the first time when window 3 and window 2 are opened and the data is saved to database and window 1 hence is refreshed by code segments above, it is OK to refresh window 1. However, if I hit button on window 1 to open window 2, and then window 3, and users enter or change data on window 3 and save, and refresh window 1, then the refreshing process this time causes window 1 freezing or keep doing something (like deadlock) or the mouse cursor has the shape of a clock, that means something keeps doing doing and other web window who opens window 1 is frozen and I must close IE on my computer to start over the application.
Do you guys have any ideas about this problem and how to solve it?
Thanks in advance.
D'Oh! | :doh:

<div class="ForumSig">johnaspnet</div>
QuestionHelp with Datetime! Pin
Dayekh18-Oct-06 4:26
Dayekh18-Oct-06 4:26 
AnswerRe: Help with Datetime! Pin
Christian Graus18-Oct-06 7:50
protectorChristian Graus18-Oct-06 7:50 
GeneralRe: Help with Datetime! Pin
Dayekh18-Oct-06 8:03
Dayekh18-Oct-06 8:03 
GeneralRe: Help with Datetime! Pin
Christian Graus18-Oct-06 8:11
protectorChristian Graus18-Oct-06 8:11 
GeneralRe: Help with Datetime! Pin
Dayekh19-Oct-06 23:06
Dayekh19-Oct-06 23:06 
Questionsite map problem Pin
kitokatakito18-Oct-06 4:09
kitokatakito18-Oct-06 4:09 
QuestionSecuring Web Services Pin
bwhittington18-Oct-06 3:54
bwhittington18-Oct-06 3:54 
AnswerRe: Securing Web Services Pin
Christian Graus18-Oct-06 8:12
protectorChristian Graus18-Oct-06 8:12 
QuestionGetting the previous Selected Index Pin
Rajiya18-Oct-06 2:44
Rajiya18-Oct-06 2:44 
AnswerRe: Getting the previous Selected Index Pin
albCode18-Oct-06 3:18
albCode18-Oct-06 3:18 
AnswerRe: Getting the previous Selected Index Pin
Paddy Boyd18-Oct-06 3:55
Paddy Boyd18-Oct-06 3:55 
GeneralRe: Getting the previous Selected Index Pin
Rajiya18-Oct-06 18:41
Rajiya18-Oct-06 18:41 
GeneralRe: Getting the previous Selected Index Pin
Paddy Boyd18-Oct-06 21:26
Paddy Boyd18-Oct-06 21:26 
QuestionHow to Update ASP.NET 2 sites ??!! Pin
devboycpp18-Oct-06 2:35
devboycpp18-Oct-06 2:35 
AnswerRe: How to Update ASP.NET 2 sites ??!! Pin
Tad McClellan18-Oct-06 8:35
professionalTad McClellan18-Oct-06 8:35 
Questionweb config file Pin
amaneet18-Oct-06 2:32
amaneet18-Oct-06 2:32 
AnswerRe: web config file Pin
J4amieC18-Oct-06 2:50
J4amieC18-Oct-06 2:50 

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.