I have developed a website in C# asp.net
which contains a Master Page
.
I have designed a top menu with Search bar(txtSearch
) and a Button
(LinkButton
).
When I click on search Button
it redirects to the page where searched data is to be displayed but when it redirects it clear's the txtSearch
.
What I want is not to clear the txtSearch
on page redirect or page reload.
Top Menu (Search bar)
<asp:TextBox runat="server" ID="txtSearch" TextMode="SingleLine" CssClass="form-control" Placeholder="Search term..." />
<span class="input-group-btn">
<asp:LinkButton runat="server" ID="btnSearch" CssClass="btn btn-default" type="button" OnClick="btnSearch_Click"><span class="glyphicon glyphicon-search"></span></asp:LinkButton>
</span>
I Hope that the question is clear.