hi everyone ,i want to sent value of textbox in listview use button to another page,i use this code but program take an error that:
Object reference not set to an instance of an object.
protected void addtobasket_Click(object sender, System.EventArgs e)
{
string count2 = (((sender as Button).Parent as ListViewItem).FindControl("txtcount") as TextBox).Text;
}
Manoj BhoirPosted Jun 7, 2015, 11:27 AM