Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 December 6th, 2006, 02:40 PM
Registered User
 
Join Date: Nov 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default the quest is gridView and SQLdataSourse

I have a gridview and a SQLdataSource connected to it. I filtrate my database base like this:

"SELECT ItemID, Name, Category FROM table WHERE Category = @Category";

The variable @Category is DropDownList's selected value

And... then... my default scheme of SQLdatasource's selecting is "SELECT ItemID, Name, Category FROM table", and so, after I've filtrated the data using my dropdownlist, it's ok, it shows what I need, but when I click next page on my gridview (yeah, I NEED paging), it moves onto the next page but the selecting's switched to default, I mean, without conditions, it shows everything from my DB. And how do I fix it? I thought PostBack was the point, but it didn't appear to. Yeap, I'm currently at Web Application


And what should I do in that situation? Perheaps, the whole method is wrong? What should I use then?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Dungeon Quest Question DrGerm BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 April 29th, 2008 07:40 PM
1 quest on view helper hiteshp Struts 0 January 28th, 2008 03:06 AM
Dungeon Quest Collision Issue Ixion BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 0 September 30th, 2007 04:40 AM
Quest Software “TOAD” Corey SQL Language 3 January 23rd, 2007 03:39 PM
Quest: How to select the second tag?! gnesland XSLT 4 November 28th, 2006 11:09 AM





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