W
William Buchanan
Hi folks
I have a "Search" text box and LinkButton in my master page. When this is
submitted, I do a Server.Transfer to a page which contains a gridview. The
gridview is filtered on a hidden field which I set in the page load method
(from the search text box text).
Now, the grid view appears to filter correctly, however, when I select a
record in the gridview to populate a DetailsView, I loose the original
filter and so the returned page just contains an un-filtered grid view. When
I put a breakpoint on page load I can see that the search text box is
cleared and doesn't seem to keep it's value between this call and the last
one. I have got ViewState turned on.
Any ideas how I can get around this? I guess it is something to do with the
Server.Transfer, but I need to do this to get me onto the right page (since
the text box doesn't have a postbackurl - (or is it the link button)).
Thanks
Will
I have a "Search" text box and LinkButton in my master page. When this is
submitted, I do a Server.Transfer to a page which contains a gridview. The
gridview is filtered on a hidden field which I set in the page load method
(from the search text box text).
Now, the grid view appears to filter correctly, however, when I select a
record in the gridview to populate a DetailsView, I loose the original
filter and so the returned page just contains an un-filtered grid view. When
I put a breakpoint on page load I can see that the search text box is
cleared and doesn't seem to keep it's value between this call and the last
one. I have got ViewState turned on.
Any ideas how I can get around this? I guess it is something to do with the
Server.Transfer, but I need to do this to get me onto the right page (since
the text box doesn't have a postbackurl - (or is it the link button)).
Thanks
Will