when i pass the data manually by giving a string to a colum it updates the database but when the textbox is mention it does not get the value from textbox for updation using linq to sql.
e.g:
user.email = "Khattak"; <---- this works fine and updates the database.
user.email = _Email.Text.ToString(); <----- This does not update the database.
This is the code which i am using:
if(IsPostBack)
{
using (Property_dbDataContext context = new Property_dbDataContext())
{
var user = (from a in context.User_profiles
where a.user_id == Convert.ToInt32(Request.QueryString["user_id"])
select a).FirstOrDefault();
if (user != null)
{
user.email = _Email.Text;
...
Go to the complete details ...