Solved

GridView being bound using more than one parameter from other controls

Posted on 2013-06-06
1
242 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
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mail.To.Add 5 26
Help with converting xml file to excel using VB.NET 3 20
RLDC Reporting in Visual studio 11 16
Linq asp.net mvc 13 10
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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