Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > BOOK: Beginning ASP.NET 2.0 and Databases
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 10th, 2009, 04:11 PM
Registered User
 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1 Page 24 Data Grid + Linked List Box not working VS2008

Hi Guys,

I am using Visual Studio 2008 as my IDE and have gotten to the step where you add the "Where" Condition to filter the gridview by the selected index in the listbox which has States in it. Using the described steps everything tests fine in the "test" area before you finalize it, however when I press F5 to go into debug mode the page loads and the gridbox displays the values that match the default value of "CA". When I change the index of the list box the gridView does not change.


The Code looks ok


<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:pubsConnectionString1 %>"
SelectCommand="SELECT DISTINCT [state] FROM [authors]"></asp:SqlDataSource>
<asp:ListBox ID="ListBox1" runat="server" DataSourceID="SqlDataSource2"
DataTextField="state" DataValueField="state" Height="90px"
onselectedindexchanged="ListBox1_SelectedIndexChan ged"></asp:ListBox>


I tried debugging in both IE and Firefox to no avail.

Has anyone else had this issue?


Thanks
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
The debug function now is not working fine in VS2008. Please ~ miaomiaoga ASP.NET 2.0 Basics 1 December 22nd, 2008 12:21 PM
Difference betn Data grid, List, Repeter control cumadhu ADO.NET 2 December 17th, 2004 02:46 AM
Data Grid Drop Down List Column bmains ASP.NET 1.0 and 1.1 Professional 4 September 21st, 2004 09:39 AM
data grid in chapter 17, page 708 gcpeters BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 January 16th, 2004 01:48 AM



All times are GMT -4. The time now is 11:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.