is your password column column is numeric??
probably not. so it should be p_word='" + TextBox2.Text + "' .you have to give password in quoate as it is a string .copy and enjoy :
string str1 = "update Login_Table set p_word='" + TextBox2.Text + "' where user_name='" + Session["name"].ToString() + "'";