Solved

GridView being bound using more than one parameter from other controls

Posted on 2013-06-06
1
251 Views
Last Modified: 2013-06-11
I know that the GridView can be populated with parameter values from other controls.  i.e I have written stuff so that if an item was selected from a DropDownList, the GridView was rebound using that parameter.  I now have a search form but I don't want the GridView to be rebound until the user clicks the Search button and there will be parameters from 3 DropDownLists.  How do I do this without using code behind?  At the moment I'm doing it from codebehind but the paging is not working when I bind from the code behind - this is why I'm looking for a different solution.  I'm using .Net 4.
0
Comment
Question by:Lorna70
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 23

Accepted Solution

by:
Ioannis Paraskevopoulos earned 250 total points
ID: 39228083
Hi,

I think what you need is setting the AutoPostBack property of the ddls to False. Check the documentation here http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listcontrol.autopostback.aspx.

As you may see, when this property is set to True, it automatically fires a post back to the server when a selection is made.

Giannis
0

Featured Post

Stressed Out?

Watch some penguins on the livecam!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question