Showing posts with label project. Show all posts
Showing posts with label project. Show all posts

Wednesday, March 28, 2012

Dynamic Gridview

Hi!

I've got a quetion on dynamic gridview load. In my atlas website project i have a gridview that i want to load dynamically. That is, I don't want to load all the data in my datasource because the web page could charge slowly; so, i want to charge only part of the data as fast as possible then, load the other paghes when the user asks for it. How can I do it? Am I to write a C# class in order to manage the load?

Thanks

hi,

it depends on what level do u want to do this ,at what level is it loading slowly.....1)from the dataserver to the dataobject or 2)the control to the current instance of the page...?


it downloads slowly from the dataserver to the dataobject

where is your select query placed?may be in datasource...... place it in a stored procedure as stored procedures are precompiled..... & call the stored procedure....also set EnablePaging to true of the gridview.


My query select is placed in my datasource and my EnablePaging is set to true

Wednesday, March 21, 2012

DropDownList Events

Hi There,

I started playing ASP.NET AJAX some months ago as part of a Universiy project. I've recently come back to it and have made most of the changes I think I need to make to use the new ASP.NET AJAX beta (I was previously using the Atlas CTP). However, I have a problem with dwopdownlist event names.

I have a basic application that has a drop down list and a repeater. The dropdownlist is bound to the one side of a DB relationship and the repeater is bound to the many. All works fine in terms of displaying the controls on the page but I can't get the repeater control list to change based on the valyue selected in the dropdown list. The last few lines of code within <asp:updatePanel/> are as follows:

<Triggers>

<asp:AsyncPostBackTriggerControlID="DropDownList1"EventName="OnSelectedIndexChange"/></Triggers>

The problem is the EventName attribute not being recognised. I have searched evrywhere for a comprehensive list of Dropdownlist evcent names but I can't find anything. What I have found hasn't worked.

Am I missibg something else or is it simply a case of the dropdownlist event name being incorrect.

Thanks in advance for your help.

Kind Regards

Mike

i was the same question with you before.

try using EventName = "SelectedIndexChanged"