Click here to Skip to main content
16,003,216 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: When i Build Solution i get this type of error ...why ? Pin
Sandeep Akhare10-Oct-07 20:35
Sandeep Akhare10-Oct-07 20:35 
AnswerRe: When i Build Solution i get this type of error ...why ? Pin
aswini10-Oct-07 21:09
aswini10-Oct-07 21:09 
AnswerRe: When i Build Solution i get this type of error ...why ? Pin
Sathesh Sakthivel10-Oct-07 22:45
Sathesh Sakthivel10-Oct-07 22:45 
AnswerRe: When i Build Solution i get this type of error ...why ? Pin
Dhyanga10-Oct-07 23:53
Dhyanga10-Oct-07 23:53 
QuestionDistinct objects from NHibernate Method Pin
Malayil alex10-Oct-07 20:06
Malayil alex10-Oct-07 20:06 
QuestionGridView Paging Problem Pin
Faisal S.P10-Oct-07 19:33
Faisal S.P10-Oct-07 19:33 
AnswerRe: GridView Paging Problem Pin
fukchai200010-Oct-07 20:28
fukchai200010-Oct-07 20:28 
GeneralRe: GridView Paging Problem Pin
Faisal S.P10-Oct-07 21:11
Faisal S.P10-Oct-07 21:11 
AnswerRe: GridView Paging Problem Pin
Naik A2Ze10-Oct-07 21:11
Naik A2Ze10-Oct-07 21:11 
GeneralRe: GridView Paging Problem Pin
Faisal S.P10-Oct-07 21:38
Faisal S.P10-Oct-07 21:38 
QuestionAvoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 19:14
kavithapuranik10-Oct-07 19:14 
AnswerRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
Aavesh Agarwal10-Oct-07 19:27
Aavesh Agarwal10-Oct-07 19:27 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 19:45
kavithapuranik10-Oct-07 19:45 
GeneralRe: Avoid refreshing page while fetching data from the other form in asp.net Pin
kavithapuranik10-Oct-07 19:56
kavithapuranik10-Oct-07 19:56 
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 

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.