Click here to Skip to main content
15,897,704 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow to add user control to tool box Pin
Vikram.....11-Jul-07 23:34
Vikram.....11-Jul-07 23:34 
AnswerRe: how to add user control to tool box Pin
Imran Khan Pathan11-Jul-07 23:38
Imran Khan Pathan11-Jul-07 23:38 
GeneralRe: how to add user control to tool box Pin
Vikram.....11-Jul-07 23:46
Vikram.....11-Jul-07 23:46 
QuestionAccessing registry Pin
Blue_Boy11-Jul-07 23:20
Blue_Boy11-Jul-07 23:20 
AnswerRe: Accessing registry Pin
Vikram.....12-Jul-07 0:32
Vikram.....12-Jul-07 0:32 
GeneralRe: Accessing registry Pin
Blue_Boy12-Jul-07 1:18
Blue_Boy12-Jul-07 1:18 
GeneralRe: Accessing registry Pin
Blue_Boy12-Jul-07 1:46
Blue_Boy12-Jul-07 1:46 
Questionrefreshing a parent page after closing child page Pin
salmonraju11-Jul-07 23:10
salmonraju11-Jul-07 23:10 
hi,

I am facing a problem with window.showModalDialog() when working with
parent child pages in asp, my problem is ,i am unable to get the values

that
set on the child page to paent page

the scenerio is


(Parent page)
parent.aspx --contains a button say ShowChildBtn,a label

MessageFromChildLabel

------------------------------------------
in the button click I wrote the following code

protected void ShowChildBtn_Click(object sender, EventArgs e)
{
session["Var1"]="Page 1";
string script = "<script


language="\"JavaScript\"">window.showModalDialog('Child.aspx');";
Page.RegisterStartupScript("tempscript",script);
}

page_load of parent contains

if(session["Var2"]!=null)
{
MessageFromChildLabel.Text=session["Var2"].tostring();
}


Child.aspx --contains a button say ReturnToParentBtn,a label

MessageFromParentLabel
---------------------------------------------------
in the button click I wrote the following code

protected void ReturnToParentBtn_Click(object sender, EventArgs e)
{
MessageFromParentLabel.Text=session["Var1"].tostring();
session["Var2"]="Child Page";
string script = "<script
language="\"JavaScript\"">window.close();";
Page.RegisterStartupScript("tempscript",script);
}

when iam running the application
clicking the ShowChildBtn in parent.aspx
child window is getting popup with label containing "Page 1";

when i am clicking ReturnToParentBtn
session["Var2"] is storing a value and returning to parent.aspx

my PROBLEM IS HERE I WANT TO REFRESH THE PAGE AUTOMATICALLY,
SO THAT THE MessageFromChildLabel DISPLAYS A VALUE WITHOUt
manually refreshing the page



salmon
AnswerRe: refreshing a parent page after closing child page Pin
N a v a n e e t h12-Jul-07 1:50
N a v a n e e t h12-Jul-07 1:50 
Questioncalendar popup not working in master page Pin
regin11-Jul-07 23:02
regin11-Jul-07 23:02 
AnswerRe: calendar popup not working in master page Pin
Michael Sync11-Jul-07 23:27
Michael Sync11-Jul-07 23:27 
AnswerRe: calendar popup not working in master page Pin
Imran Khan Pathan11-Jul-07 23:31
Imran Khan Pathan11-Jul-07 23:31 
GeneralRe: calendar popup not working in master page Pin
regin12-Jul-07 1:48
regin12-Jul-07 1:48 
AnswerRe: calendar popup not working in master page Pin
baselanfouqa24-Dec-09 1:15
baselanfouqa24-Dec-09 1:15 
Questionpopup window... Pin
moomoooomoo11-Jul-07 22:06
moomoooomoo11-Jul-07 22:06 
AnswerRe: popup window... Pin
_AK_11-Jul-07 22:14
_AK_11-Jul-07 22:14 
GeneralRe: popup window... Pin
moomoooomoo12-Jul-07 17:23
moomoooomoo12-Jul-07 17:23 
GeneralRe: popup window... Pin
_AK_12-Jul-07 18:46
_AK_12-Jul-07 18:46 
Questionlogin and logout Pin
aditya.net11-Jul-07 21:57
aditya.net11-Jul-07 21:57 
AnswerRe: login and logout Pin
_AK_11-Jul-07 22:17
_AK_11-Jul-07 22:17 
GeneralRe: login and logout Pin
aditya.net12-Jul-07 1:09
aditya.net12-Jul-07 1:09 
GeneralRe: login and logout Pin
_AK_12-Jul-07 1:16
_AK_12-Jul-07 1:16 
AnswerRe: login and logout Pin
N a v a n e e t h11-Jul-07 22:50
N a v a n e e t h11-Jul-07 22:50 
Questionhow to close a web page using a button... Pin
moomoooomoo11-Jul-07 21:55
moomoooomoo11-Jul-07 21:55 
AnswerRe: how to close a web page using a button... Pin
Vasudevan Deepak Kumar11-Jul-07 21:59
Vasudevan Deepak Kumar11-Jul-07 21:59 

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.