i have three buttons in my view page says “Button1”, “Button2” & “Button3” and i have three TextBoxes corresponds to each button says “TextBox1“,“TextBox2” & “TextBox3” . When clicking on any one button i m able to open one pop up window. Now i want to pass some values to the parent view from POP up view and pass that value to the TextBox associate with the button which is being clicked. How can i do this?
Edit
<input type="button" value="Buuton1" id="Button1" style="width:100px;font-family:Verdana; font-size:9px; onclick="window.open( '<%= Url.Action( "Popup", "Home" ) %>');" />
<input type="button" value="Button2" id="Button2" style="width:100px;font-family:Verdana; font-size:9px;" onclick="window.open( '<%= Url.Action( "Popup", "Home" ) %>');" />
<input type="button" value="Button3" id="Button3" style="width:100px;font-family:Verdana; font-size:9px;" onclick="window.open( '<%= Url.Action( "Popup", "Home" ) %>');" />
Give an id to the textboxes (for example
textBox1), then try this..it’s a simple JavaScript.You don’t need jQuery for this.