Click here to Skip to main content
15,892,161 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionlogin.aspx Pin
Ajay Kale New27-Sep-10 0:10
Ajay Kale New27-Sep-10 0:10 
AnswerRepeat and spam Pin
Not Active27-Sep-10 2:29
mentorNot Active27-Sep-10 2:29 
GeneralRe: Repeat and spam Pin
Ajay Kale New27-Sep-10 2:35
Ajay Kale New27-Sep-10 2:35 
GeneralRe: Repeat and spam Pin
5fingers28-Sep-10 1:15
5fingers28-Sep-10 1:15 
GeneralRe: Repeat and spam Pin
Ajay Kale New28-Sep-10 1:22
Ajay Kale New28-Sep-10 1:22 
Questionsending parameter to webmethod - autocomplete extender Pin
rajkumar.326-Sep-10 21:12
rajkumar.326-Sep-10 21:12 
Questionsession fixation Pin
padmanabhan N26-Sep-10 21:06
padmanabhan N26-Sep-10 21:06 
QuestionPage.RegisterStartupScript Pin
Member 387988126-Sep-10 19:33
Member 387988126-Sep-10 19:33 
Hi guys,
Very good morning to all...,
i have a page in tht one image click i opened a pop up window...,

while openeing the popup window i have checked the session of "userid"...,
if session is expired i have to close the popup window and the parent page has to redirect to login page...,

so the popup window page i have declared in page load like this...,

_UserID = Session["UserID"] == null ? string.Empty : Session["UserID"].ToString().Trim();
if (_UserID == string.Empty)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
sb.Append("<script language='javascript'>");
sb.Append("window.opener.location.href='/LoginPT.aspx?msg=se");
sb.Append("';");
sb.Append("self.close();");
sb.Append("</script>");
Page.RegisterStartupScript("FocusScript", sb.ToString());
}


but this is not working for me...,

plz guide me to solve this...,

Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
AnswerRe: Page.RegisterStartupScript Pin
Abhijit Jana26-Sep-10 20:50
professionalAbhijit Jana26-Sep-10 20:50 
GeneralRe: Page.RegisterStartupScript Pin
Not Active27-Sep-10 2:40
mentorNot Active27-Sep-10 2:40 
GeneralRe: Page.RegisterStartupScript Pin
Abhijit Jana27-Sep-10 5:50
professionalAbhijit Jana27-Sep-10 5:50 
AnswerRe: Page.RegisterStartupScript Pin
Not Active27-Sep-10 2:38
mentorNot Active27-Sep-10 2:38 
Questionsql update blank when use use with master page Pin
OUCH NIRAN26-Sep-10 18:21
OUCH NIRAN26-Sep-10 18:21 
AnswerRe: sql update blank when use use with master page Pin
Abhijit Jana26-Sep-10 19:24
professionalAbhijit Jana26-Sep-10 19:24 
GeneralRe: sql update blank when use use with master page Pin
OUCH NIRAN3-Oct-10 18:24
OUCH NIRAN3-Oct-10 18:24 
QuestionDynamic Compilation Pin
Gamzun25-Sep-10 12:10
Gamzun25-Sep-10 12:10 
AnswerRe: Dynamic Compilation Pin
Keith Barrow25-Sep-10 12:13
professionalKeith Barrow25-Sep-10 12:13 
GeneralRe: Dynamic Compilation Pin
Gamzun25-Sep-10 12:26
Gamzun25-Sep-10 12:26 
AnswerRe: Dynamic Compilation Pin
Abhijit Jana25-Sep-10 19:36
professionalAbhijit Jana25-Sep-10 19:36 
GeneralRe: Dynamic Compilation Pin
N a v a n e e t h25-Sep-10 19:50
N a v a n e e t h25-Sep-10 19:50 
GeneralRe: Dynamic Compilation Pin
Abhijit Jana25-Sep-10 20:02
professionalAbhijit Jana25-Sep-10 20:02 
GeneralRe: Dynamic Compilation Pin
Ankur\m/25-Sep-10 23:35
professionalAnkur\m/25-Sep-10 23:35 
GeneralRe: Dynamic Compilation Pin
Abhijit Jana26-Sep-10 6:17
professionalAbhijit Jana26-Sep-10 6:17 
AnswerRe: Dynamic Compilation Pin
N a v a n e e t h25-Sep-10 19:46
N a v a n e e t h25-Sep-10 19:46 
GeneralRe: Dynamic Compilation Pin
Gamzun25-Sep-10 21:24
Gamzun25-Sep-10 21:24 

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.