I have tried using several things one of which was QueryString. Here is my code:
function () { var tid = $(this).text();
var url = "SearchResult.aspx?about=" + encodeURIComponent(tid) + "";
window.location = url;
}
protected void Page_Load(object sender, EventArgs e)
{
string arg = Request.QueryString["about"];
}
But the problem is all we know that data can be seen in url and can be modified by any user.
Now what to do so that i could pass my data and it won't be visible to any user.
Is there some way using __doPostBack() or Not?
POSTdata to the server you can hide it from view by using hidden fields, but you cannot prevent users from altering the posted data if they want to. Besides, if this is a search function ("SearchResult.aspx suggests to me that it is), you might want to stick with the query string so that users can bookmark the search result. To get a better answer, I think you need to be more specific in what it is that you're trying to achieve.