Solved

GridView being bound using more than one parameter from other controls

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now