473,383 Members | 1,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

C# ASP:SqlDataSource - Repeater

My question is: How do I keep the page from auto querying on page load.

I have a ASP:SqlDataSource bound to a Repeater. This repeater replicates tables beneath a search form. The Search form is a postback. I want to page to load with no search results until they actively enter data into the search form and click the search button. There are so many results when the page loads, thousands :(
i dont think my users would like that much.

Thanks in advance to anyone that might be able to help with this
May 31 '07 #1
6 2200
nateraaaa
663 Expert 512MB
You could turn the Visible property to false on page load. Then when the user clicks search turn the Visible property to true to show the results of the search.

Nathan
May 31 '07 #2
You could turn the Visible property to false on page load. Then when the user clicks search turn the Visible property to true to show the results of the search.

Nathan

True, but does hiding the results keep the results from processing and being rendered on the page? That is the performance issue I am having. There are thousands of records processing when the page loads instead of waiting for a search form to post back. I do not know if this makes any sense :-D i hope.
May 31 '07 #3
Okay, I guess I could have tried to do it before I asked. I tried the visible thing and it solved the problem perfectly! Thanks for your great idea.
May 31 '07 #4
Plater
7,872 Expert 4TB
It may still execute the query
You should be looking at the IsPostBack value and possibly whether or not the correct event has been fired
May 31 '07 #5
It may still execute the query
You should be looking at the IsPostBack value and possibly whether or not the correct event has been fired
it might be executing the query, but that's okay as long as it doesn't hold the page up from loading, which it is not. As long as the page loads fast for my customers i think i will be fine. thanks for the input.
May 31 '07 #6
nateraaaa
663 Expert 512MB
You could execute your search query in the button click event if the page starts getting slow while loading. That is what I do on some of my forms. I let the user enter items to customize the search then pass what they entered as parameters to a search proc in the button click event. The proc returns results that are then shown to the user in a datagrid.

Nathan
May 31 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Joe Fawcett | last post by:
I'm having a problem binding an asp:repeater control to a Hashtable. Originally my code was: <asp:Repeater id="rptFamily" runat="server" DataSource="<%# family %>"> <ItemTemplate> <%#...
5
by: Scott Lyon | last post by:
I am having a strange problem. The program is a bit complex, but I'll try to simplify what I can. I apologize if this is complicated, but I think this would still be simpler than posting a bunch of...
3
by: Kelly Leahy | last post by:
I'm using an Asp:Repeater control with a text box in the item templates. This is for a system that has a number of items that the user can edit and I'd like to generate them based on a list. ...
3
by: Joe Fawcett | last post by:
Sorry about the multi post, I thought I'd sent to both groups simultaneously but somehow it failed to find this one the first time. I'm having a problem binding an asp:repeater control to a...
2
by: alain.hogue | last post by:
I have a table "tblCards" with a field "Titre" that contain french words (Hébert, Gagné, Hélène, etc....) in an database with SQLEXPRESS 2005. I have used the asp:SqlDataSource to filter the...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
2
by: bissatch | last post by:
Hi, I am trying to output a list of checkboxes. Using ASP .NET controls, I was able to create the following: <label for="colour_red">Red: </label><asp:CheckBox ID="colour_red" runat="server"...
1
by: Jon Paal | last post by:
how does a querystring value get passed to the selectcommand statement of an asp:SqlDataSource? <asp:SqlDataSource id="propertyDataSource" Runat="Server" ConnectionString="<%$...
6
by: =?Utf-8?B?TWFyaw==?= | last post by:
Hi... I'm trying to implement roles in various components (i.e. using different sets of configuration depending, in this case, on which environment your in). Pretty easy to add an AppSettings...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.