I"m trying to read a cookie from the clinet machine using the code:
If not Request.Cookies("shoresh")("newmasinblogs") is nothing Then
If Request.Cookies("shoresh")("newmasinblogs") = "כן" Then
massagenum.Text = dataset.Tables("massages").Rows.Count
CheckBox1.Checked = True
End If
End If
the problem is that i get error massege:
"Object reference not set to an instance of an object."
i just can't solve the problem,
i tried to rewrite the cookies, i tried to set it to nothing and then to rewrite it... nothing working.
do somebody knows what the problem is?
If not Request.Cookies("shoresh")("newmasinblogs") is nothing Then
If Request.Cookies("shoresh")("newmasinblogs") = "כן" Then
massagenum.Text = dataset.Tables("massages").Rows.Count
CheckBox1.Checked = True
End If
End If
the problem is that i get error massege:
"Object reference not set to an instance of an object."
i just can't solve the problem,
i tried to rewrite the cookies, i tried to set it to nothing and then to rewrite it... nothing working.
do somebody knows what the problem is?