textfield value empty when i fill it with javascript
        Posted  
        
            by Turi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Turi
        
        
        
        Published on 2010-06-12T08:55:27Z
        Indexed on 
            2010/06/12
            9:03 UTC
        
        
        Read the original article
        Hit count: 308
        
i am using modalpopup to enter some value in a textfield. after the value is selected in the modalpopup view, the modalpopup is closed and the value has taken the propriate value. Even if the value is displyed in the textfield, the textfield1.text returns me string empty. when i see the source code (html), i see that even that the textfield is displaying something it hasn't really this value in it, because the appropriate html input field hasn't value yet.
thats the code i use to fill this textfield.
function CloseRequestModal(s)
    {
        document.getElementById('<%=txtRequest.ClientID%>').value = s;
        var mpu = $find('<%=ModalPopupExtender3.ClientID%>');
        mpu.hide();
    }
Please Help, Thanks in advance.
© Stack Overflow or respective owner