Solved

GridView being bound using more than one parameter from other controls

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…

708 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

16 Experts available now in Live!

Get 1:1 Help Now