Solved

GridView being bound using more than one parameter from other controls

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 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