Click here to Skip to main content
15,903,203 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Spunky Coder10-Oct-07 20:04
Spunky Coder10-Oct-07 20:04 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Aavesh Agarwal10-Oct-07 20:07
Aavesh Agarwal10-Oct-07 20:07 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 20:18
kavithapuranik10-Oct-07 20:18 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Aavesh Agarwal10-Oct-07 20:48
Aavesh Agarwal10-Oct-07 20:48 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Aavesh Agarwal10-Oct-07 21:09
Aavesh Agarwal10-Oct-07 21:09 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 21:16
kavithapuranik10-Oct-07 21:16 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik11-Oct-07 2:23
kavithapuranik11-Oct-07 2:23 
AnswerRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Imran Khan Pathan10-Oct-07 21:09
Imran Khan Pathan10-Oct-07 21:09 
yes.you can get all the values without refreshing page and also you dont need to get value in session.

follow step

suppose i have two textbox in form1 and one link button to open popup window.
now i am passing these textboxes id to popup window(Form2)

Javascript code

function OpenWindow(id1,id2)
{
ref = "Form2.aspx?id="+id1+"&id2="+id2;
var strFeatures="toolbar=no,status=no,menubar=no,location=no"
	strFeatures=strFeatures+",scrollbars=no,resizable=no,addressbar=no,height=250,width=220"
newWin = window.open(ref,"TellObj",strFeatures);
newWin.opener = top; 
}


Pass Id1 and Id2 to openWindow function
linkButton.Attributes.Add("onclick","OpenWindow("+txt1.ClientID+","+txt2.ClientID+");");



Onclick of linkButon,popWindow will be open.

Now in form2, i have two textboxes and one button.
now onPageload event,save these two ids in hidden field, called hid1,hid2

onPage Load event
hid1.value=Request.QueryString["Id1"];
hid2.value=Request.QueryString["Id2"];



on click of button call javascript
function setValues()<br />
{<br />
opener.document.getElementById('hid1').value=document.getElementById('TextBox1').value;<br />
opener.document.getElementById('hid2').value=document.getElementById('TextBox2').value; self.close();<br />
}


best regard

pathan

please don't forget to vote on the post that helped you.

GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 21:23
kavithapuranik10-Oct-07 21:23 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 22:14
kavithapuranik10-Oct-07 22:14 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Imran Khan Pathan10-Oct-07 22:28
Imran Khan Pathan10-Oct-07 22:28 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 22:41
kavithapuranik10-Oct-07 22:41 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Imran Khan Pathan10-Oct-07 22:53
Imran Khan Pathan10-Oct-07 22:53 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik11-Oct-07 2:21
kavithapuranik11-Oct-07 2:21 
QuestionFileUpload FilePath Problem in Mozilla Pin
N a r e s h P a t e l10-Oct-07 19:07
N a r e s h P a t e l10-Oct-07 19:07 
AnswerRe: FileUpload FilePath Problem in Mozilla Pin
Sandeep Akhare10-Oct-07 20:05
Sandeep Akhare10-Oct-07 20:05 
AnswerRe: FileUpload FilePath Problem in Mozilla Pin
Dhyanga10-Oct-07 23:58
Dhyanga10-Oct-07 23:58 
GeneralRe: FileUpload FilePath Problem in Mozilla Pin
Sandeep Akhare11-Oct-07 1:06
Sandeep Akhare11-Oct-07 1:06 
Questiondistribute the application Pin
SUDHAKAR PALLAM10-Oct-07 17:33
SUDHAKAR PALLAM10-Oct-07 17:33 
AnswerRe: distribute the application Pin
Aavesh Agarwal10-Oct-07 18:12
Aavesh Agarwal10-Oct-07 18:12 
GeneralRe: distribute the application Pin
SUDHAKAR PALLAM10-Oct-07 18:18
SUDHAKAR PALLAM10-Oct-07 18:18 
GeneralRe: distribute the application Pin
Aavesh Agarwal10-Oct-07 18:37
Aavesh Agarwal10-Oct-07 18:37 
GeneralRe: distribute the application Pin
Sandeep Akhare10-Oct-07 20:08
Sandeep Akhare10-Oct-07 20:08 
GeneralRe: distribute the application Pin
Aavesh Agarwal10-Oct-07 20:11
Aavesh Agarwal10-Oct-07 20:11 
QuestionHashTable getting null between requests Pin
C.Sharp.Mage10-Oct-07 14:14
C.Sharp.Mage10-Oct-07 14:14 

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.