i have a very annoying problem...
i had a textbox and a link in my master page. i wanted to use the link button to pass the text of textbox as a query string for some filtring stuff.
but i understood that the cod behind of link bottun doesnt work at all and it just refresh the page.
i tried to do it by jquery by window.location.href but it only worked at the first page and other pages couldnt get the postback.
i changed everything and tried to use radsearchbox.
this control works fine but it only works in every page except the main page.
let me be more clear:
it works great onhttp://kalashabakeh.ir/product.aspx?groupID=1&subgroupID=0
but it doesnt work at www.kalashabakeh.ir
i really dont know what can couse so many problems. maybe my script manager or a js file or something?
plz help me!
here is my current code with radsearchbox:
in masterpage.master:
<telerik:RadSearchBox runat="server" ID="RadSearchBox2"
CssClass="searchBox" Skin="Silk"
Width="200" DropDownSettings-Height="300"
DataSourceID="SqlDataSource_search"
DataTextField="product_name"
DataValueField="product_key"
EmptyMessage="جستجو..."
Filter="Contains"
MaxResultCount="20"
OnSearch="RadSearchBox2_Search">
</telerik:RadSearchBox>
in master page codebehind:
protected void RadSearchBox2_Search(object sender, SearchBoxEventArgs e)
{
Response.Redirect("product.aspx?searchID="+ e.Text.ToString(),false);
}