Click here to Skip to main content
15,908,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Create Custom Skin and apply Pin
Laddie21-May-08 20:57
Laddie21-May-08 20:57 
QuestionModulus function Pin
usyra4221-May-08 20:43
usyra4221-May-08 20:43 
AnswerRe: Modulus function Pin
laserbaronen21-May-08 20:48
laserbaronen21-May-08 20:48 
AnswerRe: Modulus function Pin
Shree22-May-08 0:18
Shree22-May-08 0:18 
AnswerRe: Modulus function Pin
Peter Josefsson Sweden22-May-08 9:49
Peter Josefsson Sweden22-May-08 9:49 
Questionhow to write a property at designer by propety window at design time of nested control Pin
Guru Call21-May-08 20:12
Guru Call21-May-08 20:12 
AnswerRe: how to write a property at designer by propety window at design time of nested control Pin
gnjunge21-May-08 21:37
gnjunge21-May-08 21:37 
QuestionPassing value from popup to parent page Pin
Abu-Muawiyah21-May-08 19:59
Abu-Muawiyah21-May-08 19:59 
Can anybody tell me how to pass value from Popup window to Parentwindow.
I've a parent.aspx page in which i have three textboxes with each have images for opening ImageSelector Popup window. When I click on the image then popup window open and when i choose image and then click on the save button then after i want to close the popup window and then the selected image name should be display in the textbox.

Note that I have three textbox.
1.txtSmallImage (Img1_ImageSelectorPopUp)
2.txtMediumImage (Img2_ImageSelectorPopUp)
3.txtLargeImage (Img3_ImageSelectorPopUp)

What i did when i click on the image1, image2, image3 then i opened the same popup window. Now i made a fucntion in a javascript name GetImageName(imageName). When i click on the save button then I call this function like that

this.btnSave.Attributes.Add("onclick","javascript:GetImageName('" + ImageName + "')");

the defination of function is here

function GetImageName(ImageName)
{
// ControlID can instead be passed as query string to the popup window
//window.opener.document.getElementById("ctl00_ContentPlaceHolder1_TextBox2").value = ImageName;
window.opener.document.getElementById("ctl00_MainContentPlaceHolder_txtprdTitleImage").value = ImageName;
window.close();
//window.opener.document.all("select1").options(window.opener.document.all("select1").selectedIndex).text=text1.value ;
}

Problem is that I dont understand that how can I access the parent page controls like txtSmallImage, txtMediumImage, txtLargeImage so that I can assigin the value to that controls's text property value.

Please help me or if you understand what i want to do then kindly provide me the complete solution means that when i click on the any imagePopup then value return on the specific txt(Small,large, medium)Image textbox.

Rgds,
Farhan,
Karachi, Pakistan.
AnswerRe: Passing value from popup to parent page Pin
Vikram A Punathambekar21-May-08 20:28
Vikram A Punathambekar21-May-08 20:28 
Questionhow to set an image for tabpage's button Pin
Sababathi Balakrishnan21-May-08 19:44
Sababathi Balakrishnan21-May-08 19:44 
AnswerRe: how to set an image for tabpage's button Pin
dan!sh 21-May-08 20:12
professional dan!sh 21-May-08 20:12 
Answer[Message Deleted] Pin
Laddie21-May-08 20:29
Laddie21-May-08 20:29 
GeneralRe: how to set an image for tabpage's button Pin
dan!sh 21-May-08 20:38
professional dan!sh 21-May-08 20:38 
AnswerRe: how to set an image for tabpage's button Pin
Sababathi Balakrishnan21-May-08 20:46
Sababathi Balakrishnan21-May-08 20:46 
QuestionReg:Image Conversion Pin
Member 384581521-May-08 19:35
Member 384581521-May-08 19:35 
AnswerRe: Reg:Image Conversion Pin
Sababathi Balakrishnan21-May-08 21:12
Sababathi Balakrishnan21-May-08 21:12 
AnswerRe: Reg:Image Conversion Pin
Shree22-May-08 0:46
Shree22-May-08 0:46 
QuestionRemote connection Pin
phantanagu21-May-08 19:23
phantanagu21-May-08 19:23 
AnswerRe: Remote connection Pin
Laddie21-May-08 19:44
Laddie21-May-08 19:44 
GeneralRe: Remote connection Pin
phantanagu21-May-08 20:24
phantanagu21-May-08 20:24 
GeneralRe: Remote connection Pin
Laddie21-May-08 20:31
Laddie21-May-08 20:31 
AnswerRe: Remote connection Pin
Vikram A Punathambekar21-May-08 20:31
Vikram A Punathambekar21-May-08 20:31 
QuestionHow to read value-type property of document? Pin
Prazwol21-May-08 18:54
Prazwol21-May-08 18:54 
QuestionC# Pin
SAGIR AHMAD21-May-08 18:20
SAGIR AHMAD21-May-08 18:20 
AnswerRe: C# Pin
dan!sh 21-May-08 18:21
professional dan!sh 21-May-08 18:21 

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.