how to clear binded input tag on button click

Posted by Bhavna81 under Regular Expressions on 10/18/2009 | Views : 1527 | Status : [Member] | Replies : 1
i m using the input tag in my program and bind it like:

<input type="text" id="txtPCC" name="txtPCC" value="<%=ds.Tables["abc"].Rows[0].ItemArray[6].ToString()%>" onchange="checkInput(this,'<%=txtPCC_DUE.ClientID%>')" />

now the problem is,when i click the add button it gives error System.NullReferenceException: Object reference not set to an instance of an object.

i want input be blank when i click the add button... how can i?????/

please help


Posted by: Vuyiswamb on: 10/23/2009 [Member] [MVP] [Administrator] NotApplicable

Why Do you use an input tag ? Why dont you use the Hidden Field

Thank you for posting at Dotnetfunda

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

Login to post response