Click here to Skip to main content
15,917,709 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to clear data from All textbox in a form Pin
l0kke16-Nov-06 1:16
l0kke16-Nov-06 1:16 
GeneralRe: How to clear data from All textbox in a form Pin
dj.rock16-Nov-06 1:19
dj.rock16-Nov-06 1:19 
QuestionSystem.IO.IOException: The device is not ready. [modified] Pin
d_wang15-Nov-06 23:28
d_wang15-Nov-06 23:28 
AnswerRe: System.IO.IOException: The device is not ready. Pin
l0kke15-Nov-06 23:32
l0kke15-Nov-06 23:32 
QuestionPassing Values between 2 forms Pin
just3ala215-Nov-06 23:23
just3ala215-Nov-06 23:23 
AnswerRe: Passing Values between 2 forms Pin
Deepak the Cool15-Nov-06 23:35
Deepak the Cool15-Nov-06 23:35 
GeneralRe: Passing Values between 2 forms Pin
just3ala215-Nov-06 23:52
just3ala215-Nov-06 23:52 
AnswerRe: Passing Values between 2 forms Pin
l0kke15-Nov-06 23:50
l0kke15-Nov-06 23:50 
This is my code, where I open modal dialog to create new category entry (in parent page):

public static string OpenCreateCategoryModalDialog(string url)<br />
{<br />
	return @"<script type='text/javascript'>"<br />
	+ "function CreateCategory(){"<br />
	+ "ret = window.showModalDialog('" + url + "');"<br />
	+ "document.getElementById('hdnCategoryReturn').value = ret;}"<br />
	+ "</script>";<br />
}


you have to register it using

Page.RegisterClientScriptBlock("OpenMocalDialog", MyJavascript.OpenCreateCategoryModalDialog(modalDialogUrl));<br />


and call it when user clicks on button.

then in child modal dialog, you have to add to your submit button attribute:

submitButton.Attributes.Add("OnClick", "javascript:window.returnValue = #myreturnValue#")

replace #myReturnValue# with javascript that gets values from your textboxes. you can separate these values by semicolon or something, so you can get them from hidden field and split them on parent page in event handler.

I hope you understand what I mean Smile | :)

Pilo
GeneralRe: Passing Values between 2 forms Pin
just3ala215-Nov-06 23:58
just3ala215-Nov-06 23:58 
GeneralRe: Passing Values between 2 forms Pin
l0kke16-Nov-06 0:50
l0kke16-Nov-06 0:50 
GeneralRe: Passing Values between 2 forms Pin
just3ala216-Nov-06 2:36
just3ala216-Nov-06 2:36 
GeneralRe: Passing Values between 2 forms Pin
l0kke17-Nov-06 0:51
l0kke17-Nov-06 0:51 
AnswerRe: Passing Values between 2 forms Pin
Tamimi - Code16-Nov-06 0:01
Tamimi - Code16-Nov-06 0:01 
QuestionHow to make child page will auto refresh ? Pin
cheeken2u15-Nov-06 23:10
cheeken2u15-Nov-06 23:10 
AnswerRe: How to make child page will auto refresh ? Pin
Imran Khan Pathan15-Nov-06 23:23
Imran Khan Pathan15-Nov-06 23:23 
GeneralRe: How to make child page will auto refresh ? Pin
cheeken2u15-Nov-06 23:30
cheeken2u15-Nov-06 23:30 
GeneralRe: How to make child page will auto refresh ? Pin
Imran Khan Pathan15-Nov-06 23:49
Imran Khan Pathan15-Nov-06 23:49 
AnswerRe: How to make child page will auto refresh ? Pin
Deepak the Cool15-Nov-06 23:23
Deepak the Cool15-Nov-06 23:23 
AnswerRe: How to make child page will auto refresh ? Pin
l0kke15-Nov-06 23:54
l0kke15-Nov-06 23:54 
QuestionMulti dimensional arrays in webservices Pin
Phanindra Kumar15-Nov-06 23:01
Phanindra Kumar15-Nov-06 23:01 
AnswerRe: Multi dimensional arrays in webservices Pin
gardia10-May-12 5:09
gardia10-May-12 5:09 
Questionadding data through textbox Pin
pranavcool15-Nov-06 22:10
pranavcool15-Nov-06 22:10 
AnswerRe: adding data through textbox Pin
_AK_15-Nov-06 22:13
_AK_15-Nov-06 22:13 
QuestionPassing messages from javascript function in errormessage property of CustomValidatioin control Pin
Varun Arora15-Nov-06 22:02
Varun Arora15-Nov-06 22:02 
AnswerRe: Passing messages from javascript function in errormessage property of CustomValidatioin control Pin
ayeleteric15-Nov-06 22:23
ayeleteric15-Nov-06 22:23 

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.