how to solve this error

Posted by Parthibansk under ASP.NET on 12/6/2012 | Points: 10 | Views : 760 | Status : [Member] | Replies : 2
i get this error

//Object reference not set to an instance of an object.// when i execute this code

txtquantity.Attributes.Add("onkeyup", "CalcSellPrice2(" + Txtprice + ", '" + txtquantity.ClientID + "','" + lbltotalprice.ClientID + "')");




Responses

Posted by: Mutturaj on: 12/6/2012 [Member] Starter | Points: 25

Up
0
Down
Hi,

Add ClientID for Txtprice in ur code...

txtquantity.Attributes.Add("onkeyup", "CalcSellPrice2(" + Txtprice + ", '" + txtquantity.ClientID + "','" + lbltotalprice.ClientID + "')");


Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mutturaj on: 12/6/2012 [Member] Starter | Points: 25

Up
0
Down
If that is not the answer u r looking for,
Please mention in detail about ur code and for what purpose u have written that part of code...

-Muttu

Parthibansk, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response