Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 25th, 2008, 09:28 AM
Authorized User
 
Join Date: Feb 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing SqlDatasource select command in codebehin

Dear all,

I got a gridview datasource sqldatasource with select command.Just i want to change the select command text with a date selected from a datetime picker..or a date selected from a dropdownlist.i tried to change the sqlcommand text in code behind but paging became problem.How can do this...

Thanks in advance...
AMR.
 
Old March 26th, 2008, 04:49 AM
Authorized User
 
Join Date: Mar 2008
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

you will have paging prob if you pass sqlcommand text in code behind.

As per my point of view you need to write code for custom paging function like framework 1.1

hope you are understanding what i am trying to say.
 
Old March 28th, 2008, 08:02 AM
Authorized User
 
Join Date: Feb 2008
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi imjigu,

I used FilterExpression and i got the solution.

Thank you,
AMR





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the Select Command of a DataAdapter from th Manolis_Perrakis ASP.NET 2.0 Basics 0 October 20th, 2006 10:56 AM
How to call a codebehin function on onblur event?? kv Priya ASP.NET 1.0 and 1.1 Professional 1 June 14th, 2006 02:43 PM
How to store "SELECT" command value? venkikrao VB.NET 1 March 16th, 2006 06:01 AM
Select Command jaucourt ADO.NET 8 January 28th, 2004 11:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.