Hi,
in this live demo http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx you opening a dialog from another dialog and ensuring the communication between them and the parent page.
But you are using "normal controls" without masterpage eg.
My question is how to send value to asp.net control which has a code:
When I looked at the source code on the actual webpage the textbox id changed from TextBox1 to ctl00_EditPH_TextBox1.
Why id is changed (master pages?)?
Therefore I can't use javascript function (error):
It works fine when I wrote: getElementById("ctl00_EditPH_TextBox1").
But I have lots controls and look every time to source page is annoying.
How to avoid this?
in this live demo http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx you opening a dialog from another dialog and ensuring the communication between them and the parent page.
But you are using "normal controls" without masterpage eg.
<input type="text" style="width: 100px;" id="cityName" value="Sofia" /> |
My question is how to send value to asp.net control which has a code:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
Why id is changed (master pages?)?
Therefore I can't use javascript function (error):
function populateCityName(arg) |
{ |
var cityName = document.getElementById("TextBox1"); |
cityName.value = arg; |
} |
It works fine when I wrote: getElementById("ctl00_EditPH_TextBox1").
But I have lots controls and look every time to source page is annoying.
How to avoid this?