View Single Post
  #3 (permalink)  
Old May 23rd, 2005, 12:43 AM
parithi parithi is offline
Registered User
Join Date: May 2005
Location: Chennai, Tamil Nadu, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to parithi

//*This coding developed C.Elamaprithi M.C.A..*\//Mail;, \--------------------------------------------------------
1 first you know one thing,html control and server control is different,using server control to specfic runat="server" inside of tag.
2.inside script block to access the server control using two ways
  a.document.(form name).elements.txtcount.value
  b. document.all.item("control name").value
using script side
function recalStkBal()
    document.all.item("txtStkBal").value=parseFloat(do cument.all.item("txtOpenbal").value)-parseFloat(document.all.item("txtStkDed").value);}
with in code behid using this code
private void Page_Load(object sender, System.EventArgs e)

            txtOpenBal.Attributes.Add("onblur","recalStkBal()" )


Reply With Quote