Click here to Skip to main content
15,887,966 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionimage filepath name not stored Pin
kannan 26-Apr-11 1:34
kannan 26-Apr-11 1:34 
AnswerRe: image filepath name not stored Pin
Pete O'Hanlon6-Apr-11 2:12
mvePete O'Hanlon6-Apr-11 2:12 
AnswerRe: image filepath name not stored Pin
dpkchhirang6-Apr-11 2:20
dpkchhirang6-Apr-11 2:20 
QuestionGoogle map with multiple markers Pin
venu6565-Apr-11 21:21
venu6565-Apr-11 21:21 
AnswerRe: Google map with multiple markers Pin
De_Novice8-Apr-11 11:32
De_Novice8-Apr-11 11:32 
QuestionWill you please post some code. Pin
Sheikh Sajid Ali5-Apr-11 20:20
Sheikh Sajid Ali5-Apr-11 20:20 
AnswerRe: Will you please post some code. Pin
Pete O'Hanlon6-Apr-11 2:19
mvePete O'Hanlon6-Apr-11 2:19 
QuestionRefresh Parent Window And Close Popup Window Pin
Orcun Iyigun5-Apr-11 15:09
Orcun Iyigun5-Apr-11 15:09 
Hello all,

I am having a problem while refreshing my parent window.

I have a webform and I am using a viewstate on this form. on the viewstate's 3rd activeform I have a table. In a row of this table when the radiobutton's value is equal to No(I am doing an autopostback here) a popup window opens. Here on the popup window I make user to select some items in the checkbox list and carry the data to a textbox in the parent form. Till here everything is fine.

My problem is I can not close the popup. What happens is;

I can successfully pass the data to my parent window, refresh it but the popup windows closes and it popups again.

I am trying to do it with this code;

Page.RegisterStartupScript("CLOSE", "<script language='javascript'>window.opener.document.forms(0).submit();self.close();</script>");


What I also tried;
ClientScript.RegisterStartupScript(typeof(Page), "closePage", "window.onunload = CloseWindow();");
Page.RegisterStartupScript("CLOSE", "<script language='javascript'>window.opener.location.reload();self.close();</script>");
Page.RegisterStartupScript("CLOSE", "<script language='javascript'>window.opener.location.href = window.opener.location.href;self.close();</script>");
Page.RegisterStartupScript("CLOSE", "<script language='javascript'>window.opener.history.go(0) = window.opener.location.href;self.close()</script>");

These three doesnt work the way I want. They either popup the popup again, or close the popup, reload the parent but then parent goes back to Viewstate's active viewindex 1 instead of staying in 3.

Any ideas how can I fix this? Thanks
Questiononly get one last record with the same field value during sorting database records Pin
Farhad Eft5-Apr-11 7:46
Farhad Eft5-Apr-11 7:46 
AnswerRe: only get one last record with the same field value during sorting database records Pin
Wendelius5-Apr-11 8:34
mentorWendelius5-Apr-11 8:34 
AnswerRe: only get one last record with the same field value during sorting database records Pin
Viral Upadhyay5-Apr-11 8:35
Viral Upadhyay5-Apr-11 8:35 
QuestionProblem with DropDownList and RequiredFieldValidator Pin
kbalias5-Apr-11 3:10
kbalias5-Apr-11 3:10 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Not Active5-Apr-11 7:00
mentorNot Active5-Apr-11 7:00 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Parwej Ahamad5-Apr-11 8:47
professionalParwej Ahamad5-Apr-11 8:47 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Prasanta_Prince14-Apr-11 0:59
Prasanta_Prince14-Apr-11 0:59 
GeneralRe: Problem with DropDownList and RequiredFieldValidator Pin
kbalias27-Apr-11 21:06
kbalias27-Apr-11 21:06 
GeneralRe: Problem with DropDownList and RequiredFieldValidator Pin
Prasanta_Prince28-Apr-11 3:42
Prasanta_Prince28-Apr-11 3:42 
QuestionPaypal Tax Pin
Ramkumar_S5-Apr-11 2:28
Ramkumar_S5-Apr-11 2:28 
QuestionNeed help in implementing new skin for AuctionWorx Pin
NetMan20125-Apr-11 1:50
NetMan20125-Apr-11 1:50 
AnswerRe: Need help in implementing new skin for AuctionWorx Pin
Pete O'Hanlon5-Apr-11 2:33
mvePete O'Hanlon5-Apr-11 2:33 
QuestionAspx Login and Sql Server Problem - Help Me :( Pin
De_Novice4-Apr-11 10:01
De_Novice4-Apr-11 10:01 
AnswerRe: Aspx Login and Sql Server Problem - Help Me :( Pin
Wendelius4-Apr-11 10:15
mentorWendelius4-Apr-11 10:15 
AnswerRe: Aspx Login and Sql Server Problem - Help Me :( Pin
SamRST4-Apr-11 21:08
SamRST4-Apr-11 21:08 
QuestionPaypal testing.. Pin
Ramkumar_S4-Apr-11 1:09
Ramkumar_S4-Apr-11 1:09 
QuestionWhy this code does not run correctly on Linux server Pin
Abbas Fatshidi4-Apr-11 0:32
professionalAbbas Fatshidi4-Apr-11 0:32 

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.