Hi all,
I have an user control(UC) which have an input text and a button, when i pressed the button it opens a rad window that returns a value to the input control.
The problem is that all the code is in the client side but i need a property in the code behind of the UC that helps me get the value of the input text here is the code i have:
<script type="text/javascript">
function openWin(url)
{
var oWnd = radopen(url, "RadWindow1");
oWnd.setSize(500,500);
oWnd.add_close(OnClientClose);
}
function OnClientClose(oWnd)
{
var returnValue = oWnd.argument.retValue;
var txt1 = document.getElementById("txt");
txt1.value = returnValue;
}
</script>
<input id="txt" type="text" runat="server" />
here is working great, but the form that contains the UC need to get he value of the input text, so there i need a property that returns that value. if y add runat="server" to the input text it wont take the return value and doesnt rewrite anything over it.
How can i get this value in the server side? how can i create the property to obtain the value in the form that contains the control?.
Thanks a lot .. it is really important for me to do that.
Pls help!!!
I have an user control(UC) which have an input text and a button, when i pressed the button it opens a rad window that returns a value to the input control.
The problem is that all the code is in the client side but i need a property in the code behind of the UC that helps me get the value of the input text here is the code i have:
<script type="text/javascript">
function openWin(url)
{
var oWnd = radopen(url, "RadWindow1");
oWnd.setSize(500,500);
oWnd.add_close(OnClientClose);
}
function OnClientClose(oWnd)
{
var returnValue = oWnd.argument.retValue;
var txt1 = document.getElementById("txt");
txt1.value = returnValue;
}
</script>
<input id="txt" type="text" runat="server" />
here is working great, but the form that contains the UC need to get he value of the input text, so there i need a property that returns that value. if y add runat="server" to the input text it wont take the return value and doesnt rewrite anything over it.
How can i get this value in the server side? how can i create the property to obtain the value in the form that contains the control?.
Thanks a lot .. it is really important for me to do that.
Pls help!!!