Skip to content
Loading
0
  • 0
    Hi,
      i m making web application is it working ah?
    0
  • Sanjeeb Lenka
    0
    hi,

    if you are not able to do it n javascript try to do it in textchanged event of textbox...
    0
  • 0
    it is for web application only

    Regards,
    Iftikar
    0
  • 0
    Hai,

    How to  call  can u liittle provide as on



       
    like these ?
    0
  • 0
    Hi,




        Travel Details





    Lodging
    Food 
    Dailyallownce
    add(button)




    when i choose loging not working as i m expected?
    0
  • 0
    wht issue you are getting?
    0
  • 0
    Hi,

       textbox wont be goes on read only mode
    0
  • 0
    for me it is working. can you check your textbox id again? weather is it related to same option or not
    0
  • 0
    Hi ,




        Travel Details
       






    window.onload = function()
    {
       EnableDisable();
    };
    function EnableDisable()
     {
            var lodging = document.getElementById("<%= TxtLdg.ClientID %>").value;
            var foodClaim = document.getElementById("<%= TxtFoAl.ClientID %>").value;
            var dailyAllow = document.getElementById("<%= TxtFdAl.ClientID %>").value;
     
            if (lodging != "" && foodClaim != "" && dailyAllow=="")
            {
                EnableDisableTextBox("<%= TxtFdAl.ClientID %>", false);
                EnableDisableTextBox("<%= TxtLdg.ClientID  %>", true);
                EnableDisableTextBox("<%= TxtFoAl.ClientID %>", true);
            } else if (lodging == "" && foodClaim == "" && dailyAllow != "") {
                EnableDisableTextBox("<%= TxtLdg.ClientID  %>", false);
                EnableDisableTextBox("<%= TxtFoAl.ClientID %>", false);
                EnableDisableTextBox("<%= TxtFdAl.ClientID %>", true);
            } else {
                EnableDisableTextBox("<%= TxtLdg.ClientID  %>", true);
                EnableDisableTextBox("<%= TxtFoAl.ClientID %>", true);
                EnableDisableTextBox("<%= TxtFdAl.ClientID %>", true);
            }           
    }
       
     
     
     
     
     
     }







       

       

        Welcome :
        

       

         
         
         
         
       
                                       
                                   
            
              
             
              
                
              
             
                 
             
              
    Travel Request Bills
          
          

                                          
                                       

              
                
                
                   
                    
                    
                    
                    
                    
                   
                   
                   
                     
                     
                     
                     
                   
                
                   
                     
                     
                     
                     
                   
                   
                     
                     
                     
                     
                    
                   
                     
                     
                     
                     
                   
                   
                     
                     
                     
                     
                   
               
               
    Departure Date
                    
                    
    No.Of.days
                    <%-- //--%>
                    
                    
    From
                     
                     
    To
                     
                     
    Rail/Bus Fare
                     
                     
    Bill No Only Train
                     
                     
    Lodging
                     
                     
    Food Allowance
                     
                     
    Fixed Allowance
                     
                     
    Transit Allowance
                     
                     
    Postal/Courier
                     
                     
    Internet Bills
                     
                     

             

                   
                   
             
                     
             
                   
                   
                 

                               AllowPaging="false" onrowcommand="GridView1_RowCommand"  onrowdeleting="GridView1_RowDeleting" EmptyDataText="No Records Found"   >
                 
                  
                  
                
                
                
                   <%#Eval("claim_id")%> 
                  

                
                  

                  
                   
                     
                   

                  
                   
                     
                   

                   
                     
                   

                    
                     
                   

                   
                     
                   

                   
                     
                   

                   
                     
                   

                   
                     
                   

                   
                     
                   

                   
                     
                     
                   

                   
                     
                   

                   
                     
                   

                   
                      
                    
                        Edit
                      
                       
                        
                   

                   

                  

                  

                 

       

       







    check my code and let me back?
    0
  • 0
    try like this

    onkeypress="javascript:EnableDisable();"  />
                     
                      Food Allowance
                     
                      onkeypress="javascript:EnableDisable();"  />
                     
                    
                   
                      Fixed Allowance
                     
                      onkeypress="javascript:EnableDisable();" />
    0