In theory I understand what's going on but I can't find any working solution. I'm not very experienced ASP.NET developer.
I have a FormView which contains some field in EditTemplate. I want to use UpdatePanel and PopupControlExtender to show a grid to lookup values from.
There are many records to select from so I want to allow user to filter grid before making selection. I've placed "FilterByTextBox" and link button to filter records inside gridview. Pretty standard design patterm as I thought.
The problem is "FilterByTextBox" is always empty in linkbutton's OnClick event. I can't get it's value. How and where I can store textbox's value to access it later in OnClick event?
FilterByTextBox, linkbutton and GridView are inside UpdatePanel. Whole page is inside master page.
Maybe there is any good example which uses my pattern?
None
0 Points
1 Post
Problem with TextBox+LinkButton+GridView inside UpdatePanel
Feb 20, 2014 04:36 AM|AlexeiPavlov|LINK
In theory I understand what's going on but I can't find any working solution. I'm not very experienced ASP.NET developer.
I have a FormView which contains some field in EditTemplate. I want to use UpdatePanel and PopupControlExtender to show a grid to lookup values from.
There are many records to select from so I want to allow user to filter grid before making selection. I've placed "FilterByTextBox" and link button to filter records inside gridview. Pretty standard design patterm as I thought.
The problem is "FilterByTextBox" is always empty in linkbutton's OnClick event. I can't get it's value. How and where I can store textbox's value to access it later in OnClick event?
FilterByTextBox, linkbutton and GridView are inside UpdatePanel. Whole page is inside master page.
Maybe there is any good example which uses my pattern?
All-Star
30411 Points
3628 Posts
Re: Problem with TextBox+LinkButton+GridView inside UpdatePanel
Feb 25, 2014 01:35 AM|Fuxiang Zhang - MSFT|LINK
Hi AlexeiPavlov,
Thank you post the issue to asp.net forum.
According to your description, I see that you want to get the "FilterByTextBox" text when LinkButton clicked.
Then based on the text to filter data and bind the filtered data to gridview. Popup show the gridview in the client.
For this issue, I made a simple demo below, please check it.
code behind:
Hope this helps, thanks.
Best Regards!
All-Star
48393 Points
12161 Posts
Re: Problem with TextBox+LinkButton+GridView inside UpdatePanel
Feb 25, 2014 10:32 PM|chetan.sarode|LINK
http://forums.asp.net/t/1225760.aspx?Filtering+Search+control+for+Gridview
Team Lead, Product Development
Approva Systems Pvt Ltd, Pune, India.