Question: I want to retrieve the value of label field by clicking on link button. it has to be fired only in onclick event only. i have tried with this , but it is giving null value.

```
protected void verifycount_Click(object sender, EventArgs e)
{
      GridViewRow link = ((LinkButton)sender).NamingContainer as GridViewRow;                
      Label qrcode = (Label)link.FindControl("lblqrcode");       
      string result=qrcode.text;
}

```

pls help do solve this

Answer: 
You can delete your old migrations. After you have done this, when you are setting up your app you will need to run: 

```
rake db:schema:load

```

Instead of:

```
rake db:migrate

```
here is what I did, I found the last version migrated on production `ActiveRecord::SchemaMigration.last.version` and deleted all the migrations before that in my source code.

not the best way but I did `find db/migrate -type f`, copied the list of files before the last version and `pbpaste | rm` (macos).